void AddEdit( EditingActionId id , ToolStripItem[] items , UserAction.IsActionEnabled isActionEnabled , UserAction.DoAction doAction) { m_Actions.Add(new EditingAction(id, items, isActionEnabled, doAction)); }
void AddAction(ToolStripItem[] items , UserAction.IsActionEnabled isActionEnabled , UserAction.DoAction doAction) { m_Actions.Add(new UserAction(items, isActionEnabled, doAction)); }
/// <summary> /// Copy constructor /// </summary> /// <param name="action">The action to copy</param> protected UserAction(UserAction action) { m_Elements = action.m_Elements; m_IsActionEnabled = action.m_IsActionEnabled; m_DoAction = action.m_DoAction; }
void AddAction(ToolStripItem item , UserAction.IsActionEnabled isActionEnabled , UserAction.DoAction doAction) { ToolStripItem[] items = new ToolStripItem[] { item }; AddAction(items, isActionEnabled, doAction); }
void AddAction(ToolStripMenuItem menuItem , UserAction.IsActionEnabled isActionEnabled , UserAction.DoAction doAction) { ToolStripItem[] item = new ToolStripItem[] { menuItem }; m_Actions.Add(new UserAction(item, isActionEnabled, doAction)); }