Пример #1
0
        private void cmProjectEditor_Click(object sender, EventArgs e)
        {
            ProjectPreferenceForm form = new ProjectPreferenceForm();

            form.StartPosition = FormStartPosition.CenterParent;
            form.Saved        += delegate(object s, EventArgs arg)
            {
                ProjectPreferenceForm f = s as ProjectPreferenceForm;
                if (MainForm.CurrentProject != null)
                {
                    this.LoadDevProject(MainForm.CurrentProject.Name, MainForm.CurrentProject.DevSite);
                }
            };
            form.ShowDialog();
        }
Пример #2
0
 private void cmProjectEditor_Click(object sender, EventArgs e)
 {
     ProjectPreferenceForm form = new ProjectPreferenceForm();
     form.StartPosition = FormStartPosition.CenterParent;
     form.Saved += delegate(object s, EventArgs arg)
     {
         ProjectPreferenceForm f = s as ProjectPreferenceForm;
         if (MainForm.CurrentProject != null)
             this.LoadDevProject(MainForm.CurrentProject.Name, MainForm.CurrentProject.DevSite);
     };
     form.ShowDialog();
 }