private void cmdSave_Click(object sender, EventArgs e) { try { var obj = new frmTestDataList_AU(); obj.dtTestDataList = dtTestDataList; obj.dtTestType = dtTestType; obj.vAction = action.Insert; obj.ShowDialog(); } catch (Exception ex) { Utility.ShowMsg(ex.Message); } }
private void cmdUpdate_Click(object sender, EventArgs e) { try { if (grdTestData.CurrentRow == null || grdTestData.CurrentRow.RowType != RowType.Record) { return; } var obj = new frmTestDataList_AU(); obj.dtTestDataList = dtTestDataList; obj.dtTestType = dtTestType; obj.vAction = action.Update; obj.drData = Utility.GetDataRow(dtTestDataList, LStandardTest.Columns.TestDataId, grdTestData.GetValue("TestData_ID")); obj.ShowDialog(); } catch (Exception ex) { Utility.ShowMsg(ex.Message); } }
private void cmdUpdate_Click(object sender, EventArgs e) { try { if (grdTestData.CurrentRow == null || grdTestData.CurrentRow.RowType != RowType.Record) return; var obj = new frmTestDataList_AU(); obj.dtTestDataList = dtTestDataList; obj.dtTestType = dtTestType; obj.vAction = action.Update; obj.drData = Utility.GetDataRow(dtTestDataList, LStandardTest.Columns.TestDataId,grdTestData.GetValue("TestData_ID")); obj.ShowDialog(); } catch (Exception ex) { Utility.ShowMsg(ex.Message); } }