public static void AddPanel(RibbonTab ribbonTab, RibbonPanel ribbonPanel) { if (ribbonTab.IsNull() || ribbonPanel.IsNull()) { throw new ArgumentNullException(); } ribbonTab.Panels.Add(ribbonPanel); }
public static void AddTab(Utils.Controls.Ribbon.Ribbon ribbon, RibbonTab ribbonTab) { if (ribbon.IsNull() || ribbonTab.IsNull()) { throw new ArgumentNullException(); } ribbon.Tabs.Add(ribbonTab); }