private void SingInBtnClick(object sender, RoutedEventArgs e) { var currentAccount = authManager.SignIn(mobileNumberTB.Text, passwordTB.Text); if (currentAccount is null) { MessageBox.Show("Некорректные данные!"); return; } var homeWindow = new HomeWindow(); homeWindow.Show(); Close(); }
private void SignUpBtnClick(object sender, RoutedEventArgs e) { if (!IsOk()) { MessageBox.Show("Заполните все поля нормально!"); return; } var currentAccount = authManager.SignUp(fullNameTB.Text, mobileNumberTB.Text, passwordTB.Text); if (currentAccount is null) { MessageBox.Show("Некорректные данные!"); return; } var homeWindow = new HomeWindow(); homeWindow.Show(); Close(); }