示例#1
0
 /// <summary>
 /// Delete function and reference exists checking
 /// </summary>
 public void DeleteFunction()
 {
     try
     {
         ServiceSP spService = new ServiceSP();
         if (spService.ServiceDeleteReferenceCheck(decServiceId) == -1)
         {
             Messages.ReferenceExistsMessage();
         }
         else
         {
             Clear();
             btnSave.Text = "Save";
             Messages.DeletedMessage();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("Ser8:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
示例#2
0
 /// <summary>
 /// Delete function and reference exists checking
 /// </summary>
 public void DeleteFunction()
 {
     try
     {
         ServiceSP spService = new ServiceSP();
         if (spService.ServiceDeleteReferenceCheck(decServiceId) == -1)
         {
             Messages.ReferenceExistsMessage();
         }
         else
         {
             Clear();
             btnSave.Text = "Save";
             Messages.DeletedMessage();
             GridFill();
         }
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "Ser8:" + ex.Message;
     }
 }
示例#3
0
 /// <summary>
 /// Delete function and reference exists checking
 /// </summary>
 public void DeleteFunction()
 {
     try
     {
         ServiceSP spService = new ServiceSP();
         if (spService.ServiceDeleteReferenceCheck(decServiceId) == -1)
         {
             Messages.ReferenceExistsMessage();
         }
         else
         {
             Clear();
             btnSave.Text = "Save";
             Messages.DeletedMessage();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("Ser8:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }