public EditTrain(ref AdminLoggedIn parent)
 {
     this.parent = parent;
     this.InitializeComponent();
     this.CmbTrainId.ItemsSource = DataAccess.DataAccess.GetAllTrains().Select(x => x.Id);
 }
 public AddTrain(ref AdminLoggedIn parent)
 {
     this.parent = parent;
     this.InitializeComponent();
 }
 public DeleteSchedule(ref AdminLoggedIn parent)
 {
     this.InitializeComponent();
     this.parent = parent;
     this.CmbSchedules.ItemsSource = DataAccess.DataAccess.GetFullSchedule().Select(x => x.Id);
 }
 public AddSchedule(ref AdminLoggedIn parent)
 {
     this.InitializeComponent();
     this.parent = parent;
 }