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)
        {
            ModelRibbonTab.Clear();
            ModelRibbonTab printPreviewTab = new ModelRibbonTab()
            {
                TabHeader = "Print Preview"
            };

            PopulateRibbonPrintPreviewBars(printPreviewTab);
            ModelRibbonTab.Add(printPreviewTab);
        }
Exemple #2
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)
 {
     ModelRibbonTab.Clear();
     PopulateRibbonTabs();
 }