예제 #1
0
 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));
     }
 }
예제 #2
0
        public ProgressWorkerDoneArgs(ProgressRunnerResult result)
        {
            if (result == null)
                throw new ArgumentNullException("result");

            _result = result;
        }