Ejemplo n.º 1
0
        private void buttonAddStaff_Click(object sender, EventArgs e)
        {
            FormAddStaff formStaff = new FormAddStaff();

            if (formStaff.ShowDialog() == DialogResult.OK)
            {
                //listBoxMetaInfo.Items.Clear();
                //Staff personal = staffMngr.GetAt(0);
                stfMngr.Add(formStaff.Staff);
                //listBoxMetaInfo.Items.Add(stfMngr.GetAt(0).ToString());

                //listBoxMetaInfo.Items.Add(stfMngr.ToStringArray());
                foreach (var item in stfMngr.ToStringArray())
                {
                    listBoxMetaInfo.Items.Add(item);
                }

            }
        }
Ejemplo n.º 2
0
        private void buttonAddStaff_Click(object sender, EventArgs e)
        {
            FormAddStaff formStaff = new FormAddStaff();

            if (formStaff.ShowDialog() == DialogResult.OK)
            {
                listBoxMetaInfo.Items.Clear();
                //Staff personal = staffMngr.GetAt(0);
                stfMngr.Add(formStaff.Staff);

                UpdateResults();

            }
        }