private void createNewToolStripMenuItem_Click(object sender, EventArgs e) { FormCreateProject frm = new FormCreateProject(); frm.ShowDialog(); if (frm.Project != null) { CurrentProject = frm.Project; SaveProjectToFile(); DisplayProject(); } }
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(); }