Beispiel #1
0
 private void projectEditMenu_Click(object sender, EventArgs e)
 {
     NewProjectForm np = new NewProjectForm(active_project);
     if (np.ShowDialog(this) == DialogResult.OK)
     {
         this.Text = "Shop processor: " + active_project.Title;
         InitOpenProjectMenu();
         RemoveInputs();
         MakeInputs();
         lbProducts.SelectedIndex = -1;
     }
 }
Beispiel #2
0
        private void projectCreateMenu_Click(object sender, EventArgs e)
        {
            NewProjectForm np = new NewProjectForm();
            if (np.ShowDialog(this) == DialogResult.OK)
            {
                String pn = np.ProjectName;
                if (pn == "") pn = "new_project";
                Project project = ProjectHelper.CreateProject(pn, FileHelper.ProjectsDir());
                project.FieldIDs = np.FieldIDs;

                projects.Add(project);
                if (active_project == null) LoadProject(project);
                InitOpenProjectMenu();
            }
        }