Exemplo n.º 1
0
        private void entrance(object sender, RoutedEventArgs e)
        {
            if (LoginT.Text == "Власть")
            {
                registration registration = new registration();
                registration.Show();
            }
            User.Authorization = false;
            IUserManager user = new UserManager();

            string[] mass = { LoginT.Text, PasswordT.Password };
            user.UserAction("Entrance", mass);
            if (User.Authorization == false)
            {
                MessageBox.Show("Пользователь не найден");
                MessageBoxResult m = MessageBox.Show("Хотите создать клиента?", "Предупреждение", MessageBoxButton.OKCancel);
                if (m == System.Windows.MessageBoxResult.OK)
                {
                    registration registration = new registration("Client");
                    registration.Show();
                }
                return;
            }
            DatabaseWindow window = new DatabaseWindow();

            window.Show();
        }
Exemplo n.º 2
0
        private void registration(object sender, RoutedEventArgs e)
        {
            registration registration = new registration();

            registration.Show();
        }