void Delete(long ID) { if (SystemProperties.ShowMessage.MessageQuestion(SystemProperties.MessageNotification.YouWantToDelete, "Room record") == DialogResult.Yes) { using (SMSNotification notify = new SMSNotification()) { notify.Delete(ID, ref MsgReturned); SystemProperties.ShowMessage.MessageInformation(MsgReturned, "Room record"); LoadRoomRecord(); } } }
void Delete() { if (SystemProperties.ShowMessage.MessageQuestion(SystemProperties.MessageNotification.YouWantToDelete, "Message notification") == DialogResult.Yes && dgSMS.Rows.Count > 0) { using (SMSNotification notify = new SMSNotification()) { var value = SetRoomType(); value.ID = Convert.ToInt64(dgSMS.SelectedRows[0].Cells[0].Value); if (value != null) { notify.Delete(value, ref MsgReturned); SystemProperties.ShowMessage.MessageInformation(MsgReturned, "Message notification"); LoadSMS(); } } } }