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); }
/// <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); } }