Exemple #1
0
        public static void ShowRegistrationWindow(AutoWindow autoWindow)
        {
            RegWindow regWindow = new RegWindow();

            regWindow.Show();
            autoWindow.Close();
        }
Exemple #2
0
        public static void CheckData(AutoWindow autoWindow)
        {
            var check = AuthorizationEntities.GetEntities().Users.FirstOrDefault(x => x.Login == autoWindow.loginTextBox.Text &&
                                                                                 x.Password == autoWindow.passwordTextBox.Password);

            if (check == null)
            {
                MessageBox.Show("Неверно введен логин или пароль");
            }
            else
            {
                UsersWindow usersWindow = new UsersWindow(check);
                usersWindow.Show();
                autoWindow.Close();
            }
        }