Invoke() public method

public Invoke ( ) : void
return void
Exemplo n.º 1
0
 // Gestion des selections du contexteMenu
 private void OnMenuClicked(object sender, EventArgs e)
 {
     VelerSoftware.Design.Toolkit.KryptonContextMenuItem menuItem = sender as VelerSoftware.Design.Toolkit.KryptonContextMenuItem;
     if (menuItem != null && menuItem.Tag is System.ComponentModel.Design.MenuCommand)
     {
         System.ComponentModel.Design.MenuCommand command = menuItem.Tag as System.ComponentModel.Design.MenuCommand;
         command.Invoke();
     }
 }
Exemplo n.º 2
0
        private void OnMenuClicked(object sender, EventArgs args)
        {
            ToolStripMenuItem item = sender as ToolStripMenuItem;

            if (item != null)
            {
                MenuCommand cmd = item.Tag as MenuCommand;
                cmd.Invoke();
            }
        }
Exemplo n.º 3
0
        // Gestion des selections du contexteMenu
        private void OnMenuClicked(object sender, EventArgs e)
        {
            ToolStripDropDownButton menuItem = sender as ToolStripDropDownButton;

            if (menuItem != null && menuItem.Tag is System.ComponentModel.Design.MenuCommand)
            {
                System.ComponentModel.Design.MenuCommand command = menuItem.Tag as System.ComponentModel.Design.MenuCommand;
                command.Invoke();
            }
        }