private void btnLogin_Click(object sender, EventArgs e)
        {
            String username = txtUser.Text;
            String password = txtPassword.Text;

            if (username.Length == 0 || password.Length == 0)
            {
                MessageBox.Show("Please fill all the fields!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            else
            {
                BUS_ACCOUNT bus_account = new BUS_ACCOUNT();
                bool        check       = bus_account.checkLogin(username, password);
                if (check == true)
                {
                    GUI_MAIN f = new GUI_MAIN();

                    f.ShowDialog();

                    this.Close();
                }
                else
                {
                    MessageBox.Show("Incorrect username or password", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
            }
        }
Exemple #2
0
 public Query(GUI_MAIN _Core, int Delay, List <Types.Server> servers)
 {
     this._Core   = _Core;
     this.Delay   = Delay;
     this.servers = servers;
 }
Exemple #3
0
 public Discord(GUI_MAIN _Core, string token)
 {
     this._Core = _Core;
     _token     = token;
 }