private void butThem_Click(object sender, EventArgs e) { roomOpenForm rOF = new roomOpenForm(); rOF.goiHam = loadList; rOF.ShowDialog(); }
private void listRoom_DoubleClick(object sender, EventArgs e) { String temp = listRoom.FocusedItem.Text; roomOpenForm rOF = new roomOpenForm(temp); rOF.goiHam = loadList; rOF.ShowDialog(); }
private void butSua_Click(object sender, EventArgs e) { if (listRoom.SelectedItems.Count > 0) { String temp = listRoom.FocusedItem.Text; roomOpenForm rOF = new roomOpenForm(temp); rOF.goiHam = loadList; rOF.ShowDialog(); } else { MessageBox.Show("hay chon phong tu danh sach!", "WARNING", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }