Exemplo n.º 1
0
 public void MyAction(string parameter)
 {
     if (parameter.Equals("Modal"))
     {
         Ribbon.ShowModalTab("printpreview");
     }
     else if (parameter.Equals("CloseModal"))
     {
         Ribbon.CloseModalTabs();
     }
 }
Exemplo 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();
 }