public ChangePropertyForm(Project Project, SWFile File)
 {
     InitializeComponent();
     project = Project;
     file = File;
     this.valueGroupBox.Text = Settings.Default.propertyName;
     this.valueTextBox.Text = this.file.name;
 }
 public NumberInputForm(Project project, string prefix, string suffix)
 {
     InitializeComponent();
     _project = project;
     nameGroupBox.Text = Settings.Default.propertyName;
     prefixTextBox.Text = prefix;
     suffixTextBox.Text = suffix;
     for (int i = 1; i <= 9999; i++)
     {
         if (!_project.numbers.Exists(element => element == i))
         {
             numericUpDown1.Value = i;
             break;
         }
     }
 }
Пример #3
0
 private void onProjectCloseUI()
 {
     this.workDirTextBox.Text = "";
     this.partPrefixTextBox.Text = "";
     this.partSuffixTextBox.Text = "";
     this.assyPrefixTextBox.Text = "";
     this.assySuffixTextBox.Text = "";
     this.activateUI(true);
     this.project = new Project();
     if (this.dbForm.Visible)
     {
         this.dbForm.Close();
     }
 }
Пример #4
0
 private void loadProject(String path)
 {
     if (this.project != new Project())
     {
         this.askSave();
         this.project = new Project();
         this.onProjectCloseUI();
     }
     try
     {
         this.project.open(path);
     }
     catch (ProjectReadException exception)
     {
         MessageBox.Show("XML parse error: " + exception.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
         return;
     }
     this.populateRecent();
     this.onProjectOpenUI();
 }
Пример #5
0
 public CSVExporter(Project Project)
 {
     project = Project;
 }