Exemplo n.º 1
0
        private void buttonDptAdd_Click(object sender, EventArgs e)
        {
            dptprogramstate pro = new dptprogramstate();

            pro.ButtonDptAddClicked       = true;
            pro.ToolStripMenuItem1Clicked = false;

            FormDpartInfo form = new FormDpartInfo();

            form.program = pro;
            form.ShowDialog();

            load_depart();
        }
Exemplo n.º 2
0
        private void 수정ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            try
            {
                dptprogramstate pro = new dptprogramstate();
                pro.dptnum  = Convert.ToInt32(listViewDpt.SelectedItems[0].Text);
                pro.dptname = listViewDpt.SelectedItems[0].SubItems[1].Text;
                pro.dpthead = listViewDpt.SelectedItems[0].SubItems[2].Text;
                pro.headnum = Convert.ToInt32(listViewDpt.SelectedItems[0].SubItems[3].Text);

                pro.ButtonDptAddClicked       = false;
                pro.ToolStripMenuItem1Clicked = true;

                FormDpartInfo form = new FormDpartInfo();
                form.program = pro;
                form.ShowDialog();

                load_depart();
                load_emp();
            }
            catch
            {
            }
        }