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

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


            staffOpenForm sOF = new staffOpenForm(temp);

            sOF.goiHam = loadList;
            sOF.ShowDialog();
        }
Exemple #3
0
        private void butSua_Click(object sender, EventArgs e)
        {
            if (listStaff.SelectedItems.Count > 0)
            {
                String temp = listStaff.FocusedItem.Text;


                staffOpenForm sOF = new staffOpenForm(temp);
                sOF.goiHam = loadList;
                sOF.ShowDialog();
            }
            else
            {
                MessageBox.Show("Hay chon quan ly can sua tu danh sach!", "WARNING", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }