Exemplo n.º 1
0
        private void vậtTưToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormVatTu frmVT = new FormVatTu();

            frmVT.frmMain = this;
            frmVT.ShowDialog();
        }
Exemplo n.º 2
0
        private void lsvLoaiPhong_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            string maloai = lsvLoaiPhong.SelectedItems[0].SubItems[0].Text;

            frmVT          = new FormVatTu();
            frmVT.frmPhong = this;
            frmVT.frmMain  = frmMain;
            frmVT.maloai   = maloai;
            frmVT.ShowDialog();
        }
Exemplo n.º 3
0
 private void btnQLVT_Click(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();
     }
 }