Example #1
0
 /// <summary>
 /// Function for Delete
 /// </summary>
 public void Delete()
 {
     try
     {
         ReminderSP spReminder = new ReminderSP();
         if (PublicVariables.isMessageDelete)
         {
             if (Messages.DeleteMessage() == true)
             {
                 isDeleteStatus = spReminder.RemainderDelete(decReminderId);
                 if (isDeleteStatus)
                 {
                     Messages.DeletedMessage();
                     Clear();
                 }
             }
         }
         else
         {
             isDeleteStatus = spReminder.RemainderDelete(decReminderId);
             if (isDeleteStatus)
             {
                 Messages.DeletedMessage();
                 Clear();
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("PREM4:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Example #2
0
 /// <summary>
 /// Function for Delete
 /// </summary>
 public void Delete()
 {
     try
     {
         ReminderSP spReminder = new ReminderSP();
         if (PublicVariables.isMessageDelete)
         {
             if (Messages.DeleteMessage() == true)
             {
                 isDeleteStatus = spReminder.RemainderDelete(decReminderId);
                 if (isDeleteStatus)
                 {
                     Messages.DeletedMessage();
                     Clear();
                 }
             }
         }
         else
         {
             isDeleteStatus = spReminder.RemainderDelete(decReminderId);
             if (isDeleteStatus)
             {
                 Messages.DeletedMessage();
                 Clear();
             }
         }
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "PREM4:" + ex.Message;
     }
 }
 /// <summary>
 /// Function for Delete
 /// </summary>
 public void Delete()
 {
     try
     {
         ReminderSP spReminder = new ReminderSP();
         if (PublicVariables.isMessageDelete)
         {
             if (Messages.DeleteMessage() == true)
             {
                 isDeleteStatus = spReminder.RemainderDelete(decReminderId);
                 if (isDeleteStatus)
                 {
                     Messages.DeletedMessage();
                     Clear();
                 }
             }
         }
         else
         {
             isDeleteStatus = spReminder.RemainderDelete(decReminderId);
             if (isDeleteStatus)
             {
                 Messages.DeletedMessage();
                 Clear();
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("PREM4:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }