Exemplo n.º 1
0
 /// <summary>
 /// delete function
 /// </summary>
 public void Delete()
 {
     try
     {
         if (Messages.DeleteConfirmation())
         {
             AreaSP spArea = new AreaSP();
             if (spArea.AreaDeleteReference(decAreaId) <= 0)
             {
                 Messages.ReferenceExistsMessage();
             }
             else
             {
                 Messages.DeletedMessage();
                 Clear();
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("AR4" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// delete function
 /// </summary>
 public void Delete()
 {
     try
     {
         if (Messages.DeleteConfirmation())
         {
             AreaSP spArea = new AreaSP();
             if (spArea.AreaDeleteReference(decAreaId) <= 0)
             {
                 Messages.ReferenceExistsMessage();
             }
             else
             {
                 Messages.DeletedMessage();
                 Clear();
             }
         }
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "AR4:" + ex.Message;
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// delete function
 /// </summary>
 public void Delete()
 {
     try
     {
         if (Messages.DeleteConfirmation())
         {
             AreaSP spArea = new AreaSP();
             if (spArea.AreaDeleteReference(decAreaId) <= 0)
             {
                 Messages.ReferenceExistsMessage();
             }
             else
             {
                 Messages.DeletedMessage();
                 Clear();
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("AR4" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }