public bool ReminderAdd(ReminderInfo reminderinfo)
        {
            bool trueOrfalse = false;

            try
            {
                trueOrfalse = spReminder.ReminderAdd(reminderinfo);
            }
            catch (Exception ex)
            {
                MessageBox.Show("RM2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(trueOrfalse);
        }
예제 #2
0
 /// <summary>
 /// Function for Save
 /// </summary>
 public void SaveFunction()
 {
     try
     {
         ReminderSP   spReminder   = new ReminderSP();
         ReminderInfo infoReminder = new ReminderInfo();
         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.ReminderAdd(infoReminder))
         {
             Messages.SavedMessage();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("PREM2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }