public RibbonButton AddDropDownItem(ClickableItem item) { DropDownItems.Add(item); return this; }
public void AddClickableItemToWatch(ClickableItem button) { buttons.Add(button); }
public abstract void RefreshButtonStatus(ClickableItem button);
private void RefreshButton(ClickableItem button, ButtonItem buttonItem) { if (button.IsEnabledFunction != null) { buttonItem.Enabled = button.IsEnabledFunction(); } }
public override void RefreshButtonStatus(ClickableItem button) { var control = ((Control)Buttons[button].ContainerControl); if (control.InvokeRequired) { control.Invoke(new MethodInvoker(RefreshButtonStatus)); return; } RefreshButton(button, Buttons[button]); }
public RibbonButton AddDropDownItem(ClickableItem item) { DropDownItems.Add(item); return(this); }