Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 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();
            }
        }