Exemple #1
0
        /// <summary>
        /// Method which is used to implement the openModelTab command.
        /// </summary>
        /// <param name="parameter">Model tab to be show and close.</param>
        public void ExecuteOpenModelTabCommand(object parameter)
        {
            CustomRibbonTabs.Clear();
            CustomRibbonTab printPreviewTab = new CustomRibbonTab()
            {
                TabHeader = "Print Preview"
            };

            PopulateRibbonPrintPreviewBars(printPreviewTab);
            CustomRibbonTabs.Add(printPreviewTab);
        }
 /// <summary>
 /// Method which is used to implement the model tab action.
 /// </summary>
 /// <param name="parameter">Model tab to be show and close.</param>
 public void MyAction(string parameter)
 {
     if (parameter.Equals("Modal"))
     {
         CustomRibbonTabs.Clear();
         CustomRibbonTab Tab3 = new CustomRibbonTab()
         {
             TabHeader = "Print Preview"
         };
         PopulateRibbonPrintPreviewBars(Tab3);
         CustomRibbonTabs.Add(Tab3);
     }
     else if (parameter.Equals("CloseModal"))
     {
         CustomRibbonTabs.Clear();
         PopulateRibbonTabs();
     }
 }
Exemple #3
0
 /// <summary>
 /// Method which is used to implement the closeModelTab command.
 /// </summary>
 /// <param name="parameter">Model tab to be show and close.</param>
 public void ExecuteCloseModelTabCommand(object parameter)
 {
     CustomRibbonTabs.Clear();
     PopulateRibbonTabs();
 }