예제 #1
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            Users cUser = new Users();

            if (UserLogin(cUser))
            {
                userToken  = accountManager.GetToken(txtEmail.Text);
                userSecret = accountManager.GetSecret(txtEmail.Text);

                MessageBox.Show("Login Successful");

                DropTray dTray = new DropTray();
                dTray.Email        = txtEmail.Text;
                dTray.UserToken    = userToken;
                dTray.UserSecret   = userSecret;
                dTray.UserPassword = txtPassword.Text;
                dTray.Show();

                this.Hide();
                return;
            }
            else
            {
                MessageBox.Show("Login Unsuccessful" + Environment.NewLine + "Please check your details and internet connection!", "Error");
            }
        }
예제 #2
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            Users cUser = new Users();

            if (UserLogin(cUser))
            {
                userToken = accountManager.GetToken(txtEmail.Text);
                userSecret = accountManager.GetSecret(txtEmail.Text);

                MessageBox.Show("Login Successful");

                DropTray dTray = new DropTray();
                dTray.Email = txtEmail.Text;
                dTray.UserToken = userToken;
                dTray.UserSecret = userSecret;
                dTray.UserPassword = txtPassword.Text;
                dTray.Show();

                this.Hide();
                return;
            }
            else
            {
                MessageBox.Show("Login Unsuccessful" + Environment.NewLine + "Please check your details and internet connection!","Error");
            }
        }
예제 #3
0
 private void btnDone_Click(object sender, EventArgs e)
 {
     DropTray dTray = new DropTray();
     dTray.Email = txtEmail.Text;
     dTray.UserPassword = txtConfirmPass.Text;
     dTray.ShowDialog();
     this.Hide();
 }
예제 #4
0
        private void btnDone_Click(object sender, EventArgs e)
        {
            DropTray dTray = new DropTray();

            dTray.Email        = txtEmail.Text;
            dTray.UserPassword = txtConfirmPass.Text;
            dTray.ShowDialog();
            this.Hide();
        }