コード例 #1
0
 public RibbonButton AddDropDownItem(ClickableItem item)
 {
     DropDownItems.Add(item); return this;
 }
コード例 #2
0
 public void AddClickableItemToWatch(ClickableItem button)
 {
     buttons.Add(button);
 }
コード例 #3
0
 public abstract void RefreshButtonStatus(ClickableItem button);
コード例 #4
0
 private void RefreshButton(ClickableItem button, ButtonItem buttonItem)
 {
     if (button.IsEnabledFunction != null)
     {
         buttonItem.Enabled = button.IsEnabledFunction();
     }
 }
コード例 #5
0
        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]);
        }
コード例 #6
0
 public abstract void RefreshButtonStatus(ClickableItem button);
コード例 #7
0
 public void AddClickableItemToWatch(ClickableItem button)
 {
     buttons.Add(button);
 }
コード例 #8
0
 public RibbonButton AddDropDownItem(ClickableItem item)
 {
     DropDownItems.Add(item); return(this);
 }