private void ibuttonSave_Click(object sender, EventArgs e) { GetData(ref newData); SaveVarsForMailMerge(); savedData = new modelProject(); savedData = newData.DeepClone(); this.Hide(); }
public formEditProject(modelProject project) { InitializeComponent(); originalData = new modelProject(); originalData = project.DeepClone(); newData = new modelProject(); newData = project.DeepClone(); savedData = null; ShowTopics(comboTopic); ShowTopics(comboTopic2); ShowTopics(comboTopic3); ShowData(originalData); gridActivities.SetupLinq += GridActivities_SetupLinq; gridActivities.SetupGrid += GridActivities_SetupGrid; gridActivities.LoadGrid(); gridVariations.SetupLinq += GridVariations_SetupLinq; gridVariations.SetupGrid += GridVariations_SetupGrid; gridVariations.LoadGrid(); }