예제 #1
0
        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();
        }
예제 #2
0
        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();
        }