/// <summary> /// Jory A. Wernette /// Created: 2021/02/23 /// /// This is the button the user would click to edit a selected Journal /// </summary> private void btnEditJournal_Click(object sender, RoutedEventArgs e) { var selectedItem = (Journal)dgJournalDisplay.SelectedItem; if (selectedItem == null) { lblError.Visibility = Visibility.Visible; return; } var editJournal = new pgAddEditJournal(userAccountID, selectedItem.JournalName); NavigationService.Navigate(editJournal); }
/// <summary> /// Jory A. Wernette /// Created: 2021/02/23 /// /// This is the button the User would click to add a new Journal. /// </summary> private void btnNewJournal_Click(object sender, RoutedEventArgs e) { var addJournal = new pgAddEditJournal(userAccountID, _user); NavigationService.Navigate(addJournal); }