Beispiel #1
0
        private void CreateNewProject()
        {
            ProjectModel project = null;
            using (var frmProperties = new ProjectProperties())
            {
                if (frmProperties.ShowDialog(this) == DialogResult.OK)
                {
                    project = frmProperties.Project;

                    var projectWindow = new ZebraProject();
                    projectWindow.MdiParent = this;
                    projectWindow.Project = project;
                    projectWindow.Show();
                }
            }
        }
 private void ShowProjectProperties()
 {
     using (var propsWindow = new ProjectProperties())
     {
         propsWindow.Project = Project;
         if (propsWindow.ShowDialog(this) == DialogResult.OK)
         {
             Project = propsWindow.Project;
         }
     }
 }