Example #1
0
        private void DeleteQuotePrint()
        {
            ObjectParameter tranDT = new ObjectParameter("TranDT", typeof(DateTime?));
            ObjectParameter result = new ObjectParameter("Result", typeof(Int32?));

            string attachmentCategory = "QuotePrint";

            try
            {
                _context.usp_QT_FileManagement_Delete(QuoteNumber, attachmentCategory, tranDT, result);

                lnkGetQuotePrint.Enabled = lnkDeleteQuotePrint.Enabled = false;
                lblQuotePrint.Text       = "";
            }
            catch (Exception ex)
            {
                string err = (ex.InnerException != null) ? ex.InnerException.Message : ex.Message;
                MessageBox.Show(err, "Error at DeleteQuotePrint()");
            }
        }