Beispiel #1
0
 public void TaskFinished(string errorMessage)
 {
     if (this.InvokeRequired == false)
     {
         if (errorMessage == null)
         {
             timer.Stop();
             this.DialogResult = DialogResult.OK;
         }
         else
         {
             this.Text = errorMessage;
             System.Threading.Thread.Sleep(3000);
             this.DialogResult = DialogResult.Abort;
         }
     }
     else
     {
         TaskFinishedCallback handler = new TaskFinishedCallback(this.TaskFinished);
         this.BeginInvoke(handler, errorMessage);
     }
 }
 public CreateSessionTask(TaskFinishedCallback callback)
 {
     this.callback = callback;
 }
Beispiel #3
0
 public CreateSessionTask(TaskFinishedCallback callback)
 {
     this.callback = callback;
 }