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;
 }