private void cmdInsertStiffenerMany(object sender, System.EventArgs e) { string str1 = this.stiffenerPosNumTextBox.Text; GSFStiffenerControl.CloseForm(); InsertMany(str1); GSFStiffenerControl.ShowForm(m_addIn); }
/// <summary>The AddIn loader creates an instance of a class /// derived from Bentley.MicroStation.AddIn and invokes Run. /// </summary> protected override int Run(System.String[] commandLine) { s_comApp = BMI.Utilities.ComApp; // Register reload and unload events, and show the form this.ReloadEvent += new ReloadEventHandler(AddInMain_ReloadEvent); this.UnloadedEvent += new UnloadedEventHandler(AddInMain_UnloadedEvent); GSFStiffenerControl.ShowForm(this); return(0); }
private void cmdInsertStiffenerOne(object sender, System.EventArgs e) { PsUnits psUnits = new PsUnits(); string stiffenerLabel = this.stiffenerNameTextBox.Text; string stiffenerMaterial = this.stiffenerMaterialComboBox.Text; double stiffenerThickness = psUnits.ConvertToNumeric(this.stiffenerThicknessComboBox.Text); int positionIndex = this.stiffenerPositionComboBox.SelectedIndex; SaveInToTemplate(); GSFStiffenerControl.CloseForm(); InsertOne(stiffenerLabel, stiffenerMaterial, stiffenerThickness, positionIndex); GSFStiffenerControl.ShowForm(m_addIn); }
/// <summary>Handles MDL LOAD requests after the application has been loaded. /// </summary> private void AddInMain_ReloadEvent(Bentley.MicroStation.AddIn sender, ReloadEventArgs eventArgs) { GSFStiffenerControl.ShowForm(this); }