Beispiel #1
0
        public static RibbonButton AddButton(this RibbonItemCollection items, AcCommand command)
        {
            RibbonButton btn = new RibbonButton();

            items.AddItem(btn, command);
            return(btn);
        }
Beispiel #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);
        }