private void btnLogin_Click(object sender, EventArgs e) { //Windows_7_Dialogs.SecurityDialog dialog = new Windows_7_Dialogs.SecurityDialog(); // dialog.Show("SMSGlobal Credentials", "SMSGlobal is requesting your username and password"); //vlogin.APIusername = dialog.UserData.Username; //vlogin.APIpassword = dialog.UserData.Password; vlogin.APIpassword = "******"; vlogin.APIusername = "******"; try { n.requestLogin(vlogin, vSendSms); } catch (Exception ex) { //n.HttpSMS(vSendSms, vlogin); } lblTicket.Text = vSendSms.ticket; if (vSendSms.ticket == null) { btnSend.Enabled = false; } else { btnSend.Enabled = true; } }
private void loginToSMSGlobal() { //Remove when i can connect to the database. vlogin.APIpassword = "******"; vlogin.APIusername = "******"; try { n.requestLogin(vlogin, vSendSms); } catch (Exception ex) { // n.HttpSMS(vSendSms, vlogin); } if (vSendSms.ticket == null) { btnSend.IsEnabled = false; } else { btnSend.IsEnabled = true; } }