/// <summary> /// Executes the active document's macro, forwards to RunClick command /// </summary> /// <param name="async">Whether or not the execution should be asynchronous or not (synchronous)</param> public void ExecuteMacro(bool async) { AsyncExecution = async; if (RunClick.CanExecute(null)) { RunClick.Execute(null); } }
private void RunButton_Click(object sender, EventArgs e) { try { RunClick?.Invoke(this, new EventArgs()); } catch (BaseException ex) { ExceptionDialog.Show(ex); } }
private void Run_Click(object sender, RoutedEventArgs e) { RunClick?.Invoke(sender, e); }