Winform, the main form to the child form by value, not pop-up window, just to save values, and then open the child form when to receive the main window to get the value of the intermediate is passed through what can? (a form of the background data, the main form of the value of a field change, child form after receive the value will be the new value shown) I in model layer defines a new model, inherit the child form to show the background information of the model, in the main form of assignment with the new model and child form to receive the value of the new model, but have not received, could you tell me how to write should be? Child form to show the background information call model: Public partial class testModel { Public testModel () {} # region Model
///no. Public int testId {get; The set; }
///name Public string testName {get; The set; }
/// Public string testVal {get; The set; }
# endregion Model } Create a new model inherits the above model, used for main form will be handed over the new value Public partial class newtestModel: testModel { Public newtestModel () {} # region Model
/// Public string newtestVal {get; The set; }
# endregion Model } Main form of the combination of a new model of value: Public List Newlist=new List (a); Foreach (Model. TestModel aa in the list)//(the list is to testModel backstage data) { Model. NewtestModel b=new Model. NewtestModel (); B.t estId=aa. TestId; B.t estName=aa. TestName; B.n ewtestVal=1; Newlist. Add (b); } Child form receiving: Fmain fe=new fmain ();//main form List List=fe. Newlist;//the result is null I want to change the main form of value to the child form, present child form, should be how to write? Wish you a great god for help, thank you ~