void deleteProject_Click(object sender, EventArgs e) { String item = ProjectList.SelectedItems[0].Text; Project project = new Project(item); DeleteProjectChooser del = new DeleteProjectChooser(project.getName()); del.ShowDialog(); MessageBox.Show( del.delType ); }
void openProject_Click(object sender, EventArgs e) { String item = ProjectList.SelectedItems[0].Text; Project project = new Project(item); if (project.open()) { //this.Hide(); // figure this one out later } else { MessageBox.Show("Could not open project"); } }