public void RunNonModal(string caption, EventHandler<ProgressWorkerArgs> action, EventHandler<ProgressWorkerDoneArgs> completer) { ProgressRunnerResult r = null; // Temporary implementation try { r = RunModal(caption, action); } catch (Exception e) { r = new ProgressRunnerResult(false, e); } finally { if (completer != null) completer(this, new ProgressWorkerDoneArgs(r)); } }
public ProgressWorkerDoneArgs(ProgressRunnerResult result) { if (result == null) throw new ArgumentNullException("result"); _result = result; }