private void pictureBox5_Click(object sender, EventArgs e) { frmDatPhong f = new frmDatPhong(); f.ShowDialog(); loadListView(); countRooms(); }
private void btnDatPhong_Click(object sender, EventArgs e) { try { frmDatPhong f = new frmDatPhong(); f.SoPhong = listViewRooms.SelectedItems[0].Text; f.ShowDialog(); loadListView(); countRooms(); } catch (Exception) { MessageBox.Show("Có lỗi xảy ra. Kiểm tra lại !", "Error"); } }