Beispiel #1
0
 public RequestClass(ProgramClass Program, String Requester, DateTime RequestDate, Int32 Priority, BatteryClass Battery = null)
 {
     this.RequestID        = NextID;
     this.Program          = Program;
     this.Requester        = Requester;
     this.RequestDate      = RequestDate;
     this.Priority         = Priority;
     this.Battery          = Battery;
     this.RequestedProgram = new RequestedProgramClass(this, this.Program, this.Priority);
     //sch.ImportTasks(RequestedProgram.RequestedSubPrograms);
 }
Beispiel #2
0
 public RequestedProgramClass(RequestClass Request, ProgramClass pro, Int32 Priority)
 {
     this.Request              = Request;
     this.Program              = pro;
     this.Priority             = Priority; //Inherited from request
     this.RequestedSubPrograms = new List <RequestedSubProgramClass>();
     foreach (var sp in pro.SubPrograms)
     {
         RequestedSubPrograms.Add(new RequestedSubProgramClass(this, sp, this.Priority));
     }
 }