コード例 #1
0
 public LocalCommandEntry(object id, string text)
     : base(id)
 {
     cmd = new ActionCommand ();
     cmd.Id = id;
     cmd.Text = text;
 }
コード例 #2
0
 internal CommandInfo(Command cmd)
 {
     text = cmd.Text;
     icon = cmd.Icon;
     accelKey = cmd.AccelKey;
     description = cmd.Description;
 }
コード例 #3
0
 public void RegisterCommand(Command cmd, string category)
 {
     cmds [cmd.Id] = cmd;
 }
コード例 #4
0
 public void RegisterCommand(Command cmd)
 {
     RegisterCommand (cmd, "");
 }
コード例 #5
0
 public LocalCommandEntry(Command cmd)
     : base(cmd.Id)
 {
     this.cmd = cmd;
 }