Exemplo n.º 1
0
 private void TextBoxButton_Click(object sender, RibbonControlEventArgs e)
 {
     ThisAddIn.DrawTextBox();
     if (Globals.Ribbons.UnnotateRibbon.showHideToggleButton.Checked)
     {
         ThisAddIn.ToggleShowHideObjects(false);
     }
     else
     {
         ThisAddIn.ToggleShowHideObjects(true);
     }
 }
Exemplo n.º 2
0
 private void ToggleButton1_Click(object sender, RibbonControlEventArgs e)
 {
     if (Globals.Ribbons.UnnotateRibbon.showHideToggleButton.Checked)
     {
         ThisAddIn.ToggleShowHideObjects(false);
         Globals.Ribbons.UnnotateRibbon.showHideLabel.Label = "Status: Hidden";
     }
     else
     {
         ThisAddIn.ToggleShowHideObjects(true);
         Globals.Ribbons.UnnotateRibbon.showHideLabel.Label = "Status: Shown";
     }
 }