Ejemplo n.º 1
0
 public Pc900ProgramRun CreatePartial(int fromPoint)
 {
     var partial = new Pc900ProgramRun(program_id)
     {
         initial_point = fromPoint,
         id = id,
         end_point = fromPoint
     };
     lock (data_points)
     {
         foreach (var dataPoint in data_points)
         {
             partial.AddDataPoint(dataPoint);
         }
     }
     return partial;
 }
 public StartCommandResponse(Pc900ProgramRun pc900ProgramRun, bool succeeded)
 {
     Pc900ProgramRun = pc900ProgramRun;
     Succeeded = succeeded;
 }
 public static StartCommandResponse Failure(Pc900ProgramRun pc900ProgramRun)
 {
     return new StartCommandResponse(pc900ProgramRun, false);
 }
 public static StartCommandResponse Success(Pc900ProgramRun pc900ProgramRun)
 {
     return new StartCommandResponse(pc900ProgramRun, true);
 }