コード例 #1
0
        private void createNewToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormCreateProject frm = new FormCreateProject();

            frm.ShowDialog();
            if (frm.Project != null)
            {
                CurrentProject = frm.Project;
                SaveProjectToFile();
                DisplayProject();
            }
        }
コード例 #2
0
        private void editProjectToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormCreateProject project = new FormCreateProject();

            project.Project = CurrentProject;
            project.ShowDialog();

            CurrentProject.ProjectName = project.Project.ProjectName;
            CurrentProject.Company     = project.Project.Company;
            CurrentProject.ProjectDesc = project.Project.ProjectDesc;

            SaveProject(CurrentProject.Filename);

            DisplayProject();
        }