System.ComponentModel.Design.MenuCommand.Invoke C# (CSharp) Method

Invoke() public method

public Invoke ( ) : void
return void
        public virtual void Invoke() {
            if (execHandler != null){
                try {
                    execHandler(this, EventArgs.Empty);
                }
                catch (CheckoutException cxe) {
                    if (cxe == CheckoutException.Canceled)
                        return;
                    
                    throw;
                }
            }
        }

Same methods

MenuCommand::Invoke ( object arg ) : void

Usage Example

Esempio 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();
     }
 }
All Usage Examples Of System.ComponentModel.Design.MenuCommand::Invoke