Exemplo n.º 1
0
 private void StandardCommand_CommandClick(object sender, StandardCommandEventArgs e)
 {
     ICommand command = FindCommand(e.Command);
     if (command != null && command.Enabled)
         command.Execute();
 }
        protected virtual void OnCommandClick(StandardCommandEventArgs e)
        {
            EventHandler<StandardCommandEventArgs> handler = CommandClick;

            if (handler != null)
                handler(this, e);
        }