protected LightweightTask(LightweightTask original, Cloner cloner)
   : base(original, cloner) {
   this.ExecutionTime = original.ExecutionTime;
   this.ParentTaskId = original.ParentTaskId;
   this.StateLog = new List<StateLog>(original.StateLog);
   this.State = original.State;
   this.Command = original.Command;
   this.LastTaskDataUpdate = original.LastTaskDataUpdate;
 }
 protected LightweightTask(LightweightTask original, Cloner cloner)
     : base(original, cloner)
 {
     this.ExecutionTime      = original.ExecutionTime;
     this.ParentTaskId       = original.ParentTaskId;
     this.StateLog           = new List <StateLog>(original.StateLog);
     this.State              = original.State;
     this.Command            = original.Command;
     this.LastTaskDataUpdate = original.LastTaskDataUpdate;
 }
Exemple #3
0
        public virtual void UpdateFromLightweightJob(LightweightTask lightweightJob)
        {
            if (lightweightJob != null)
            {
                task.Id            = lightweightJob.Id;
                task.ParentTaskId  = lightweightJob.ParentTaskId;
                task.ExecutionTime = lightweightJob.ExecutionTime;
                task.State         = lightweightJob.State;
                task.StateLog      = new List <StateLog>(lightweightJob.StateLog);
                task.Command       = lightweightJob.Command;

                OnTaskStateChanged();
                OnToStringChanged();
                OnItemImageChanged();
                OnStateLogChanged();
            }
        }