Example #1
0
 void AddEdit( EditingActionId id
     , ToolStripItem[] items
     , UserAction.IsActionEnabled isActionEnabled
     , UserAction.DoAction doAction)
 {
     m_Actions.Add(new EditingAction(id, items, isActionEnabled, doAction));
 }
Example #2
0
 void AddAction(ToolStripItem[] items
     , UserAction.IsActionEnabled isActionEnabled
     , UserAction.DoAction doAction)
 {
     m_Actions.Add(new UserAction(items, isActionEnabled, doAction));
 }
Example #3
0
 /// <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;
 }
Example #4
0
 void AddAction(ToolStripItem item
     , UserAction.IsActionEnabled isActionEnabled
     , UserAction.DoAction doAction)
 {
     ToolStripItem[] items = new ToolStripItem[] { item };
     AddAction(items, isActionEnabled, doAction);
 }
Example #5
0
 void AddAction(ToolStripMenuItem menuItem
     , UserAction.IsActionEnabled isActionEnabled
     , UserAction.DoAction doAction)
 {
     ToolStripItem[] item = new ToolStripItem[] { menuItem };
     m_Actions.Add(new UserAction(item, isActionEnabled, doAction));
 }