/* * private void ProfileInfoButton_Click(object sender, RoutedEventArgs e) * { * //Selected * InfoButtonImageBrush.ImageSource = infoButtonDarkImage; * //Unselected * PreferencesButtonImageBrush.ImageSource = preferencesButtonImage; * * //Switch content * ProfileInfoPage profileInfoPage = new ProfileInfoPage(UserNameInput.Text, EmailInput.Text, PasswordInput.Text); * profileMain.Content = profileInfoPage; * } * * private void ProfilePreferencesButton_Click(object sender, RoutedEventArgs e) * { * //Selected * PreferencesButtonImageBrush.ImageSource = preferencesButtonDarkImage; * //Unselected * InfoButtonImageBrush.ImageSource = infoButtonImage; * * //Switch content * ProfilePreferencesPage profilePreferencesPage = new ProfilePreferencesPage(UserNameInput.Text); * profileMain.Content = profilePreferencesPage; * } */ private void SignOut_Click(object sender, RoutedEventArgs e) { ProfilePage1 profilepage1 = new ProfilePage1(); GlobalData.Instance.signedIn = false; /* * if (this.name.Equals("foodluver123")) * { * GlobalData.Instance.recipeList.Remove(GlobalData.Instance._chowmein); * GlobalData.Instance.recipeList.Remove(GlobalData.Instance._salad); * } */ this.NavigationService.Navigate(profilepage1); }
private void Back_Click(object sender, RoutedEventArgs e) { ProfilePage1 profilepage1 = new ProfilePage1(); this.NavigationService.Navigate(profilepage1); }