public void sendSinglesms() { sms = new SmsClass(cmbport.Text); sms.Opens(); sms.sendSms(txttelephone.Text, "**MediAlert** "); sms.Closes(); MessageBox.Show("Suucessfully Message Sent!"); }
sms = new SmsClass(cmbport.Text); sms.Opens(); foreach (DataGridViewRow row in dataGridViewpatientdetails.Rows) { DataGridViewCheckBoxCell CbxCell = (DataGridViewCheckBoxCell)row.Cells[0]; if (Convert.ToBoolean(CbxCell.Value) == true) { //cell[2] is telephone number sms.sendSms(row.Cells[2].ToString(), "**MediAlert** "); } } sms.Closes(); MessageBox.Show("Suucessfully Message Sent!"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)