/// <summary> /// Jory A. Wernette /// Created: 2021/02/26 /// /// Click event to show the user thei Journals /// </summary> private void btnViewJournals_Click(object sender, RoutedEventArgs e) { var viewJournals = new pgViewJournals(_user.UserAccountID, _user); frmMainFrame.Navigate(viewJournals); frmMainFrame.NavigationUIVisibility = NavigationUIVisibility.Hidden; }
/// <summary> /// Jory A. Wernette /// Created: 2021/03/03 /// /// This is a helper method for the addEditJournal page to help reload the viewJournals page /// if the user leaves this page from clicking cancel, successfully adding a new Journal, /// or when successfully updating a Journal /// /// <param name="userAccountID"> The user ID of the user who is logged in</param> /// <exception>UserID not found</exception> /// <returns>The viewJournalPage</returns> /// </summary> private void reloadViewJournalsPage(int userID) { var viewJournals = new pgViewJournals(this.userAccountID, _user); NavigationService.Navigate(viewJournals); }