Beispiel #1
0
        private void createUserButton(object sender, RoutedEventArgs e)
        {
            // Create user from New User page field
            User user = new User(UsernameTextBox.Text, PasswordTextBox.Text);

            Manager.banker.AddUser(user);

            Manager.banker.saveAccounts();

            //back to home
            PersonalBankerHome pbHome = new PersonalBankerHome();

            this.NavigationService.Navigate(pbHome);
        }
        private void BackHome(object sender, RoutedEventArgs e)
        {
            PersonalBankerHome home = new PersonalBankerHome();

            this.NavigationService.Navigate(home);
        }