public decimal AreaDeleteReference(decimal AreaId)
        {
            decimal decReturnValue = 0;

            try
            {
                decReturnValue = SpArea.AreaDeleteReference(AreaId);
            }
            catch (Exception ex)
            {
                MessageBox.Show("AR5" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(decReturnValue);
        }
Esempio 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)
     {
         MessageBox.Show("AR4" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }