Example #1
0
        //Методы кнопок и чекбоксов

        // Кнопка "ВХОД"
        private void E_click(object sender, RoutedEventArgs e)
        {
            HttpQuery.AutoRize(Login_menu_panel.login, Login_menu_panel.password);
            if (User.Auth != null)
            {
                this.Close();
            }
        }
Example #2
0
        private void Login_Click(object sender, RoutedEventArgs e)
        {
            this.Opacity = 80;
            string login    = "******"; //LoginTextBox.Text;
            string password = "******";   //PassBox.Password;

            if (login != null && password != null && login != "" && password != "")
            {
                HttpQuery.AutoRize(login, password);
                if (User.Auth != null)
                {
                    this.Close();
                }
            }
            else
            {
                System.Windows.MessageBox.Show("Логин или пароль пуст");
            }
        }