private void InstanceMethodExecuteRequestEvent(object sender, ActionArgs e) { Console.WriteLine("Request run method: " + e.MethodExecuter.Method.Name); if (e.MethodExecuter == null) return; this.worker.RunWorkerAsync(e.MethodExecuter); ProgressiveDialog.Instance.ShowProgress(this); }
public void Execute(Action action) { if (MethodExecuteRequestEvent == null) return; var args = new ActionArgs(action); MethodExecuteRequestEvent(this, args); }