Пример #1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     try
     {
         objBatchActivity_DL.Add_QCFail(objBatch.BatchID, CurrentUser.EmployeeID, Convert.ToInt64(cmbActivity.SelectedValue), cmbPart.Text);
         bindActivityList.DataSource = objBatchActivity_DL.GetView(objBatch.BatchID);
     }
     catch (Exception ex)
     {
         MessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }