Ejemplo n.º 1
0
        private void pictureBox6_Click(object sender, EventArgs e)
        {
            frmTraPhong f = new frmTraPhong();

            f.ShowDialog();
            loadListView();
            countRooms();
            disableControlButtons();
        }
Ejemplo n.º 2
0
 private void btnTraPhong_Click(object sender, EventArgs e)
 {
     try
     {
         frmTraPhong f = new frmTraPhong();
         f.SoPhong = listViewRooms.SelectedItems[0].Text;
         f.ShowDialog();
         loadListView();
         countRooms();
         disableControlButtons();
     }
     catch (Exception)
     {
         MessageBox.Show("Bạn chưa chọn phòng !", "Error");
     }
 }