Example #1
0
        private void btnQCMore_Click(object sender, EventArgs e)
        {
            try
            {
                QCReport objQCReport = new QCReport();
                objQCReport = objQCReport_DL.Get(Convert.ToInt32(dgvReports.CurrentRow.Cells["QCReportID"].Value));

                frmQCDetailView objForm = new frmQCDetailView(CurrentUser, objQCReport);
                objForm.ShowDialog(this);
            }
            catch (Exception)
            {
                MessageBox.Show(this, "Error occured while loading report", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }
Example #2
0
 private void btnQCMore_Click(object sender, EventArgs e)
 {
     try
     {
         if (objQCReport != null)
         {
             frmQCDetailView objFrm = new frmQCDetailView(CurrentUser, objQCReport);
             objFrm.ShowDialog(this);
         }
     }
     catch (Exception)
     {
         MessageBox.Show(this, "Error occured while loading Report details", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }