/// <summary> /// Function for Edit /// </summary> public void EditFunction() { try { ReminderSP spReminder = new ReminderSP(); ReminderInfo infoReminder = new ReminderInfo(); infoReminder.ReminderId = decReminderId; infoReminder.FromDate = dtpFromDate.Value; infoReminder.ToDate = dtpToDate.Value; infoReminder.RemindAbout = txtRemindAbout.Text.Trim(); infoReminder.Extra1 = string.Empty; infoReminder.Extra2 = string.Empty; infoReminder.ExtraDate = DateTime.Now; if (spReminder.RemainderEdit(infoReminder)) { Messages.UpdatedMessage(); } } catch (Exception ex) { MessageBox.Show("PREM3:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function for Edit /// </summary> public void EditFunction() { try { ReminderSP spReminder = new ReminderSP(); ReminderInfo infoReminder = new ReminderInfo(); infoReminder.ReminderId = decReminderId; infoReminder.FromDate = dtpFromDate.Value; infoReminder.ToDate = dtpToDate.Value; infoReminder.RemindAbout = txtRemindAbout.Text.Trim(); infoReminder.Extra1 = PublicVariables._decCurrentUserId.ToString(); infoReminder.Extra2 = string.Empty; infoReminder.ExtraDate = DateTime.Now; if (spReminder.RemainderEdit(infoReminder)) { Messages.UpdatedMessage(); } } catch (Exception ex) { formMDI.infoError.ErrorString = "PREM3:" + ex.Message; } }