void openFiledialog_FileOk(object sender, CancelEventArgs e) { NewProject(); Project = ProjectModel.Load(((OpenFileDialog)sender).FileName); projectModelBindingSource.DataSource = Project; modelsBindingSource.DataSource = Project.Models; }
void CloseProject() { Project = null; }
void NewProject() { Project = new ProjectModel(); modelsBindingSource.DataSource = Project.Models; projectNameTextBox.Text = Project.Name; }