private void ViewSelectedTour() { Window viewTourDialog = new ViewTourDialog(SelectedTour); viewTourDialog.ShowDialog(); if (viewTourDialog.DialogResult.Value) { int user_id = (int)Application.Current.Resources["user_id"]; if (TourService.AddToMyTour(user_id, SelectedTour.TourID)) { MessageBox.Show("Added to List"); } } }