private void Button1_Click_1(object sender, RibbonControlEventArgs e) { Tabl_odnolin t1 = new Tabl_odnolin(); t1.Draw(); // t1.Draw(Globals.ThisAddIn.Application.ActiveSheet); }
// public event Action ButtonClicked; public void Ribbon1_Load(object sender, RibbonUIEventArgs e) { //MessageBox.Show("Hello, world!"); bool b = CheckCircuitGenerator(); if (b) { Tabl_odnolin t1 = new Tabl_odnolin(); t1.Check(); } }
private void button1_Click(object sender, EventArgs e) { try { Globals.ThisAddIn.Application.ActiveSheet.Name = maskedTextBox1.Text; Tabl_odnolin t1 = new Tabl_odnolin(); t1.Check(); Dispose(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }