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