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