Beispiel #1
0
 public void Clone(TaskBase source, bool ignoreValidateEvent)
 {
     try
     {               
         this.MessageChanged += new MessageChangedEventHandler(source.SetMessageByParam);               
         this.Task = source.Task;               
         this.Caption = source.Caption;
         this.Key = source.Key;
         this.ExecutionLog = source.ExecutionLog;
     }
     catch (ThreadAbortException)
     {
         throw;
     }
     catch (ThreadInterruptedException)
     {
         throw;
     }
     catch (Exception ex)
     {
         Log4Helper.Write("KaixinBase.Clone", ex);
         throw;
     }
 }
 public void Clone(TaskBase source, bool ignoreValidateEvent)
 {
     try
     {
         this.MessageChanged += new MessageChangedEventHandler(source.SetMessageByParam);
         this.Task            = source.Task;
         this.Caption         = source.Caption;
         this.Key             = source.Key;
         this.ExecutionLog    = source.ExecutionLog;
     }
     catch (ThreadAbortException)
     {
         throw;
     }
     catch (ThreadInterruptedException)
     {
         throw;
     }
     catch (Exception ex)
     {
         Log4Helper.Write("KaixinBase.Clone", ex);
         throw;
     }
 }
Beispiel #3
0
 public void Clone(TaskBase source)
 {
     Clone(source, false);
 }
 public void Clone(TaskBase source)
 {
     Clone(source, false);
 }