public static RibbonButton AddButton(this RibbonItemCollection items, AcCommand command) { RibbonButton btn = new RibbonButton(); items.AddItem(btn, command); return(btn); }
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); }