コード例 #1
0
 public void isAuto(Boolean mode)
 {
     if (mode)
     {
         autoMode          = true;
         label18.Text      = "Fixed Block";
         label18.ForeColor = System.Drawing.Color.Lime;
         trainSchedule     = new TrainSchedule();
         timeStart         = trainSchedule.getStart();
         timeEnd           = trainSchedule.getEnd();
         driverSchedule    = new DriverSchedule(timeStart, timeEnd);
         MessageBox.Show("Please set up appropriate files and parameters then click okay.");
         dispatchTrain();
     }
     else
     {
         autoMode          = false;
         label18.Text      = "Inactive";
         label18.ForeColor = System.Drawing.Color.Red;
     }
 }
コード例 #2
0
 private void createDriverSchedule()
 {
     timeStart      = trainSchedule.getStart();
     timeEnd        = trainSchedule.getEnd();
     driverSchedule = new DriverSchedule(timeStart, timeEnd);
 }