Example #1
0
 private static void CreateCategories()
 {
     _file   = new CommandCategory("CommandCategory.Application").SetPosition(PositionType.First, null);
     _edit   = new CommandCategory("CommandCategory.Edit").SetPosition(PositionType.NextTo, _file);
     _window = new CommandCategory("CommandCategory.Window").SetPosition(PositionType.NextTo, _edit);
     _dialog = new CommandCategory("CommandCategory.Dialog").SetPosition(PositionType.NextTo, _window);
 }
Example #2
0
 public BasicCommand(string id, string description, CommandCategory category, Keys defaultkey, ExecuteDelegate body)
     :
     base(id, CoreUtil.Strings, description, category, body)
 {
     _defaultShortcutKey = defaultkey;
 }
Example #3
0
 public CommandCategory SetPosition(PositionType positiontype, CommandCategory target)
 {
     _positionType      = positiontype;
     _designationTarget = target;
     return(this);
 }
Example #4
0
 public CommandCategory SetPosition(PositionType positiontype, CommandCategory target)
 {
     _positionType = positiontype;
     _designationTarget = target;
     return this;
 }
Example #5
0
 private static void CreateCategories()
 {
     _file = new CommandCategory("CommandCategory.Application").SetPosition(PositionType.First, null);
     _edit = new CommandCategory("CommandCategory.Edit").SetPosition(PositionType.NextTo, _file);
     _window = new CommandCategory("CommandCategory.Window").SetPosition(PositionType.NextTo, _edit);
     _dialog = new CommandCategory("CommandCategory.Dialog").SetPosition(PositionType.NextTo, _window);
 }
Example #6
0
 public BasicCommand(string id, string description, CommandCategory category, Keys defaultkey, ExecuteDelegate body)
     : base(id, CoreUtil.Strings, description, category, body)
 {
     _defaultShortcutKey = defaultkey;
 }