Given a public instantiation of a class in WinForm1, I attempt to open WinForm2 and eliciting DB parms do a query the results of which I would like use to fill the class instance in WinForm1. However, I cannot figure out how to access the class instance in WinForm1 from WinForm2.
The class instance in WinForm1 is coded as a private member / public property:
private theClass _classInstance;
public theClass ClassInstance {get; set;}
I am calling WinForm2 as a modal form.
WinForm2 wf2 = new WinForm2();
wf2.ShowDialog(this);
Is there way I can refer to ClassInstance (modifying its value) while in wf2 ??