/// <summary> /// Function to delete size based on parameter and return corresponding id /// </summary> /// <param name="SizeId"></param> /// <returns></returns> public decimal SizeDeleting(decimal SizeId) { decimal decId = 0; try { decId = spSize.SizeDeleting(SizeId); } catch (Exception ex) { MessageBox.Show("SZ5:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(decId); }
/// <summary> /// Delete Function /// </summary> public void DeleteFunction() { try { SizeSP spSize = new SizeSP(); if (spSize.SizeDeleting(decSizeId) <= 0) { Messages.ReferenceExistsMessage(); } else { Messages.DeletedMessage(); GridFill(); Clear(); } } catch (Exception ex) { MessageBox.Show("SZ5" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }