Exemple #1
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)
     {
         formMDI.infoError.ErrorString = "R11:" + ex.Message;
     }
 }
Exemple #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);
     }
 }
Exemple #3
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);

            }
        }