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"); } } }
public AddTrainWindow(MainWindow w) { InitializeComponent(); win = w; }
public ViolationWindow(MainWindow win) { InitializeComponent(); window = win; }
public RemoveSubwayLineWindow(MainWindow win) { window = win; InitializeComponent(); }
public AddSubwayLinesWindow(MainWindow win) { InitializeComponent(); window = win; }