private void cmdSave_Click(object sender, EventArgs e) { try { var obj = new Forms.frmAssemblyReport_AU(); obj.dtList = dtList; obj.ShowDialog(); } catch (Exception ex) { Utility.ShowMsg(ex.Message); } }
private void cmdUpdate_Click(object sender, EventArgs e) { try { if (grdList.CurrentRow == null || grdList.CurrentRow.RowType != RowType.Record) return; var obj = new Forms.frmAssemblyReport_AU(); obj.dtList = dtList; obj.txtID.Text = Utility.sDbnull(grdList.GetValue("AssemblyReport_ID")); obj.ShowDialog(); } catch (Exception ex) { Utility.ShowMsg(ex.Message); } }
private void cmdUpdate_Click(object sender, EventArgs e) { try { if (grdList.CurrentRow == null || grdList.CurrentRow.RowType != RowType.Record) { return; } var obj = new Forms.frmAssemblyReport_AU(); obj.dtList = dtList; obj.txtID.Text = Utility.sDbnull(grdList.GetValue("AssemblyReport_ID")); obj.ShowDialog(); } catch (Exception ex) { Utility.ShowMsg(ex.Message); } }