Exemplo n.º 1
0
 public RemoveTrainWindow(MainWindow win)
 {
     window = win;
     InitializeComponent();
     foreach (Railway rl in window.subway.GetRailways)
     {
         foreach (Train t in rl.Trains)
         {
             richTextBox.AppendText("Train number: " + t.Number.ToString() + " at railway number: " + (t.LineNumber + 1).ToString() + "\n");
         }
     }
 }
Exemplo n.º 2
0
 public AddTrainWindow(MainWindow w)
 {
     InitializeComponent();
     win = w;
 }
Exemplo n.º 3
0
 public ViolationWindow(MainWindow win)
 {
     InitializeComponent();
     window = win;
 }
Exemplo n.º 4
0
 public RemoveSubwayLineWindow(MainWindow win)
 {
     window = win;
     InitializeComponent();
 }
Exemplo n.º 5
0
 public AddSubwayLinesWindow(MainWindow win)
 {
     InitializeComponent();
     window = win;
 }