Ejemplo n.º 1
0
        /// <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);
            }
        }
Ejemplo n.º 2
0
 private void RunButton_Click(object sender, EventArgs e)
 {
     try
     {
         RunClick?.Invoke(this, new EventArgs());
     }
     catch (BaseException ex)
     {
         ExceptionDialog.Show(ex);
     }
 }
Ejemplo n.º 3
0
 private void Run_Click(object sender, RoutedEventArgs e)
 {
     RunClick?.Invoke(sender, e);
 }