Example #1
0
 internal static IRibbonMenu InitMenus(RibbonControl ribbonManager, RibbonStatusBar statusBar)
 {
     if (_instance == null)
     {
         var menuIndex = new RibbonMenuIndex(ribbonManager, statusBar);
         _instance = new RibbonMenu(menuIndex);
         CreateDefaultHeaders(_instance);
     }
     return(_instance);
 }
Example #2
0
 internal static IRibbonMenu CreateMenus(IEnumerable <YutaiCommand> commands, RibbonControl ribbonManager,
                                         RibbonStatusBar statusBar, XmlDocument xmlDoc)
 {
     if (_instance == null)
     {
         var menuIndex = new RibbonMenuIndex(ribbonManager, statusBar);
         _instance = new RibbonMenu(menuIndex);
     }
     _instance.AddCommands(xmlDoc, commands);
     return(_instance);
 }