private void btnThem_Click(object sender, EventArgs e) { Forms.frmNXB frmNXB = new Forms.frmNXB(); frmNXB.myEvent += frm_myEvent; frmNXB.ShowDialog(); }
private void btnChinhSua_Click(object sender, EventArgs e) { try { string _maNXB = grid_NXB.GetRowCellValue(grid_NXB.FocusedRowHandle, grid_NXB.Columns["MaNXB"]).ToString(); // Truyen cai MaTL vua lay dx...qua ben form NhapTheLoai. Forms.frmNXB frmNXB = new Forms.frmNXB(_maNXB); frmNXB.myEvent += frm_myEvent; txtTim.Text = ""; frmNXB.ShowDialog(); } catch { XtraMessageBox.Show("Bạn phải chọn dòng chưa dữ liệu", Text, MessageBoxButtons.OK, MessageBoxIcon.Error); } }