Exemple #1
0
 private void LoadRibbon()
 {
     LoadBlocks(SignalRibbonPage, BlockBase.ProcessingTypeEnum.LoadSignal);
     LoadSignalTemplates();
     LoadBlocks(OperationsRibbonPage, BlockBase.ProcessingTypeEnum.Operation);
     LoadBlocks(RoutingRibbonPage, BlockBase.ProcessingTypeEnum.Routing);
     LoadBlocks(RoutingRibbonPage, BlockBase.ProcessingTypeEnum.Logic, true);
     LoadBlocks(TransformsRibbonPage, BlockBase.ProcessingTypeEnum.Transform);
     LoadBlocks(ExportDataRibbonPage, BlockBase.ProcessingTypeEnum.Export);
     foreach (var tabPage in Ribbon.Controls.OfType <QRibbonPage>())
     {
         tabPage.Text = tabPage.Text.ToUpperInvariant();
     }
     Ribbon.ActivateNextTabPage(true);
     Ribbon.Refresh();
     Ribbon.ActivatePreviousTabPage(true);
 }