Пример #1
0
        private void ibuttonSave_Click(object sender, EventArgs e)
        {
            GetData(ref newData);

            SaveVarsForMailMerge();

            savedData = new modelProject();
            savedData = newData.DeepClone();
            this.Hide();
        }
Пример #2
0
        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();
        }