private void butThem_Click(object sender, EventArgs e) { guestOpenForm gOF = new guestOpenForm(); gOF.goiHam = loadList; gOF.ShowDialog(); }
private void listKhach_DoubleClick(object sender, EventArgs e) { String temp = listKhach.FocusedItem.Text; guestOpenForm gOF = new guestOpenForm(temp); gOF.goiHam = loadList; gOF.ShowDialog(); }
private void butSua_Click(object sender, EventArgs e) { if (listKhach.SelectedItems.Count > 0) { String temp = listKhach.FocusedItem.Text; guestOpenForm gOF = new guestOpenForm(temp); gOF.goiHam = loadList; gOF.ShowDialog(); } else { MessageBox.Show("Hay chon khach can sua tu danh sach!", "WARNING", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }