Esempio n. 1
0
 private void createApplyCancel1_CreateClicked(object sender, EventArgs e)
 {
     try
     {
         this.Apply();
         workInProgress    = true;
         data              = new DrawingNumberingPlugin_StructuresData();
         data._Prefix      = this.prefix_textBox.Text;
         data._StartNumber = (int)this.startNumber_numericUpDown.Value;
         data._Digits      = (int)this.digits_numericUpDown.Value;
         data._Postfix     = this.postfix_textBox.Text;
         data._Title       = this.title_comboBox.SelectedIndex;
         data._OnlyPrefix  = this.onlyPrefix_checkBox.Checked ? 1 : 0;
         data.CorrectValues();
         backgroundWorker.RunWorkerAsync();
     }
     catch (Exception ex)
     {
         HandleException(ex);
     }
 }
Esempio n. 2
0
 public DrawingNumbering(DrawingNumberingPlugin_StructuresData data)
 {
     this._model = new Model();
     this.data   = data;
 }
 public DrawingNumberingPlugin(DrawingNumberingPlugin_StructuresData data)
 {
     _data = data;
 }
 public DrawingNumberingPlugin(DrawingNumberingPlugin_StructuresData data)
 {
     _model = new Model();
     _data  = data;
 }