Esempio n. 1
0
 public void MyAction(string parameter)
 {
     if (parameter.Equals("Modal"))
     {
         Ribbon.ShowModalTab("printpreview");
     }
     else if (parameter.Equals("CloseModal"))
     {
         Ribbon.CloseModalTabs();
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Method which is used to implement the closeModelTab command.
 /// </summary>
 /// <param name="parameter">Model tab to be show and close.</param>
 private void ExecuteCloseModelTabCommand(object parameter)
 {
     ribbon.CloseModalTabs();
 }