Ejemplo n.º 1
0
        public static RibbonButton AddButton(this RibbonItemCollection items, AcCommand command)
        {
            RibbonButton btn = new RibbonButton();

            items.AddItem(btn, command);
            return(btn);
        }
Ejemplo n.º 2
0
        public static RibbonSplitButton AddSplitButton(this RibbonItemCollection panelSrc, string text, ICommand command, Bitmap image)
        {
            RibbonSplitButton splitBtn = new RibbonSplitButton();

            panelSrc.AddItem(splitBtn, text, command, image, image);
            splitBtn.IsSplit = false;

            return(splitBtn);
        }