private void VATTUtoolStripMenuItem11_Click(object sender, EventArgs e) { FormVatTu frmVT = new FormVatTu(); frmVT.frmMain = this; frmVT.ShowDialog(); }
private void btnQLVT_Click_1(object sender, EventArgs e) { if (lsvLoaiPhong.SelectedItems.Count <= 0) { MessageBox.Show("chọn 1 dòng"); return; } else { string maloai = lsvLoaiPhong.SelectedItems[0].SubItems[0].Text; frmVT = new FormVatTu(); frmVT.frmPhong = this; frmVT.frmMain = frmMain; frmVT.maloai = maloai; frmVT.ShowDialog(); } }