public AddFavoriteWindow(UserStation station, FavoritesWindow owner)
 {
     InitializeComponent();
     CurUserStation    = station;
     this.owner        = owner;
     TextBoxName.Text  = CurUserStation.Station.Name;
     TextBoxDesc.Text  = CurUserStation.Description;
     ButtonAdd.Content = "Edit Station";
     AddSt             = false;
 }
        private void ButtonFavorites_Click(object sender, RoutedEventArgs e)
        {
            FavoritesWindow window = new FavoritesWindow(this)
            {
                Owner = this
            };

            if (window.ShowDialog() == true)
            {
                CurStation = Db.Stations.Items.FirstOrDefault(s => s.Id == window.CurStation.Id);
                CurRoute   = AllRoutes.First();
                ComboBoxRoutes.SelectedItem   = AllRoutes.First();
                ComboBoxStations.SelectedItem = CurStation;
                StationSelect();
            }
        }