private void registerCommandBinding(string commandName, CommandBinding cmdBinding)
 {
     commandBindingTable.Add(commandName, cmdBinding);
 }
예제 #2
0
 public static void Connect(ToolStripButton button, CommandBinding commandBinding)
 {
     ToolStripButton_CommandBindingConnector unused = new ToolStripButton_CommandBindingConnector(button, commandBinding);
 }
예제 #3
0
 public static void Connect(ToolStripMenuItem item, CommandBinding commandBinding)
 {
     ToolStripMenuItem_CommandBindingConnector unused = new ToolStripMenuItem_CommandBindingConnector(item, commandBinding);
 }
예제 #4
0
 protected ToolStripButton_CommandBindingConnector(ToolStripButton button, CommandBinding commandBinding) : base(commandBinding)
 {
     toolStripButton = button;
     button.Click   += this.HandleUIEvent;
 }
예제 #5
0
 protected ToolStripMenuItem_CommandBindingConnector(ToolStripMenuItem item, CommandBinding commandBinding) : base(commandBinding)
 {
     m_item        = item;
     m_item.Click += this.HandleUIEvent;
 }