Exemple #1
0
        private void butThem_Click(object sender, EventArgs e)
        {
            guestOpenForm gOF = new guestOpenForm();

            gOF.goiHam = loadList;
            gOF.ShowDialog();
        }
Exemple #2
0
        private void listKhach_DoubleClick(object sender, EventArgs e)
        {
            String temp = listKhach.FocusedItem.Text;


            guestOpenForm gOF = new guestOpenForm(temp);

            gOF.goiHam = loadList;
            gOF.ShowDialog();
        }
Exemple #3
0
        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);
            }
        }