Esempio n. 1
0
        public decimal RackDeleteReference(decimal RackId)
        {
            decimal decReturnValue = 0;

            try
            {
                decReturnValue = SPRack.RackDeleteReference(RackId);
            }
            catch (Exception ex)
            {
                MessageBox.Show("RackBll 5:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(decReturnValue);
        }
Esempio n. 2
0
 /// <summary>
 /// Function to delete a Rack
 /// </summary>
 public void DeleteFunction()
 {
     try
     {
         RackSP spRack = new RackSP();
         if (spRack.RackDeleteReference(decRackId) <= 0)
         {
             Messages.ReferenceExistsMessage();
         }
         else
         {
             Clear();
             btnSave.Text = "Save";
             Messages.DeletedMessage();
             GridFill();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("R39:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }