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"); } }
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"); } }
private void btnDone_Click(object sender, EventArgs e) { DropTray dTray = new DropTray(); dTray.Email = txtEmail.Text; dTray.UserPassword = txtConfirmPass.Text; dTray.ShowDialog(); this.Hide(); }