private void btnThem_Click(object sender, EventArgs e) { frmLoai frm = new frmLoai(); frm.themLoai += XuLiThemLoai; frm.ShowDialog(); }
private void btnSua_Click(object sender, EventArgs e) { if (dgvLoaiSP.SelectedRows[0].Index != -1) { string strMaLoai = dgvLoaiSP.SelectedRows[0].Cells["colMaLoai"].Value.ToString(); frmLoai frm = new frmLoai(strMaLoai); frm.suaLoai += XuLiSuaLoai; frm.ShowDialog(); } }