/// <summary> /// Gets the email and the password and creates a new account in the database /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void CreateUser(object sender, RoutedEventArgs e) { string email = $"{EmailTextBox.Text}"; string password = $"{PasswordTextBox.Password}"; DatabaseModel database = DatabaseModel.Instance; database.AddUser(email, password); this.NavigationService.Navigate(new Uri("Views/ControlView.xaml", UriKind.Relative)); }