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; } }
private void createDriverSchedule() { timeStart = trainSchedule.getStart(); timeEnd = trainSchedule.getEnd(); driverSchedule = new DriverSchedule(timeStart, timeEnd); }