Exemplo n.º 1
0
        public void RegisterRibbonControl(IRibbonControl ribbonControl, string location)
        {
            Ribbon.RegisterDataExtension(ribbonControl.GetXmlDefinition(), location);

            // Select all command to register
            if (ribbonControl.Command != null)
            {
                RibbonCommands.Add(ribbonControl.Command);
            }
        }
Exemplo n.º 2
0
        public void RegisterRibbonExtension(IRibbonControl ribbonControl, string location)
        {
            ribbon.RegisterDataExtension(ribbonControl.GetXmlDefinition(), location);

            // Select all command to register
            if (ribbonControl.Command != null)
            {
                ribbonCommands.Add(ribbonControl.Command);
            }

            isRegistedRibbons = true;
        }