private void btnNew_Click(object sender, EventArgs e) { frmBaoGia frm = new frmBaoGia(); //frmBaoGiaNew frm = new frmBaoGiaNew(); frm.LoadDataChange += main_LoadDataChange; frm.Show(); }
private void btnEdit_Click(object sender, EventArgs e) { int id = TextUtils.ToInt(grvData.GetFocusedRowCellValue(colID)); BaoGiaModel model = (BaoGiaModel)BaoGiaBO.Instance.FindByPK(id); frmBaoGia frm = new frmBaoGia(); frm.BaoGia = model; frm.LoadDataChange += main_LoadDataChange; frm.Show(); }