public static ToolStripItem Add(this ToolStripItemCollection items, CustomAction action, object target, BindActionProperty bind) { if (items == null) { throw new ArgumentNullException("items"); } if (action == null) { throw new ArgumentNullException("action"); } ToolStripItem component = items.Add(action.Text); new ActionToolStripItemLink(action, component, target, bind); return component; }
public CustomActionLink(CustomAction action, System.ComponentModel.Component component, object target, BindActionProperty bind) { if (action == null) { throw new ArgumentNullException("action"); } this.FAction = action; if (component == null) { throw new ArgumentNullException("component"); } this.FComponent = component; this.FTarget = target; this.FBindProperty = bind; this.InitializeLink(); }
public ActionEventArgs(CustomAction action) : this(action, null, null) { }
public ActionEventArgs(CustomAction action, object source, object target) { this.Action = action; this.Source = source; this.Target = target; }
public ActionEventArgs(CustomAction action, object target) : this(action, null, target) { }
public ActionToolStripItemLink(CustomAction action, Component component) : base(action, component, null, BindActionProperty.All) { }
public ActionToolStripItemLink(CustomAction action, Component component, object target, BindActionProperty bind) : base(action, component, target, bind) { }
protected virtual void Dispose(bool disposing) { this.FAction.Disposed -= new EventHandler(this.ActionDisposed); this.StopApplicationIdleUpdate(); this.FAction = null; }
public CustomBindActionLink(CustomAction action, Component component, object target, BindActionProperty bind) : base(action, component, target, bind) { }
public ActionControlLink(CustomAction action, Component component, BindActionProperty bind) : base(action, component, null, bind) { }
public static ToolStripItem Add(this ToolStripItemCollection items, CustomAction action) { return items.Add(action, null, BindActionProperty.All); }
public UpdateActionEventArgs(CustomAction action, object source, object target) : base(action, source, target) { this.FState = ActionState.Visible | ActionState.Enabled; }