private void cmdNew_Click(object sender, EventArgs e) { try { frm_AddRedInvoice oFrom = new frm_AddRedInvoice(); oFrom.dtList = dtList; oFrom.ShowDialog(); } catch (Exception ex) { Utility.ShowMsg(ex.Message); } }
private void cmdEdit_Click(object sender, EventArgs e) { try { if (!ValidData()) return; frm_AddRedInvoice oFrom = new frm_AddRedInvoice(); oFrom.txtMau_HD.Text = Utility.sDbnull(grdList.GetValue(HoadonMau.Columns.MauHoadon)); oFrom.txtKi_Hieu.Text = Utility.sDbnull(grdList.GetValue(HoadonMau.Columns.KiHieu)); oFrom.dtList = dtList; oFrom.ShowDialog(); } catch (Exception ex) { Utility.ShowMsg(ex.Message); } }
private void cmdEdit_Click(object sender, EventArgs e) { try { if (!ValidData()) { return; } frm_AddRedInvoice oFrom = new frm_AddRedInvoice(); oFrom.txtMau_HD.Text = Utility.sDbnull(grdList.GetValue(HoadonMau.Columns.MauHoadon)); oFrom.txtKi_Hieu.Text = Utility.sDbnull(grdList.GetValue(HoadonMau.Columns.KiHieu)); oFrom.dtList = dtList; oFrom.ShowDialog(); } catch (Exception ex) { Utility.ShowMsg(ex.Message); } }