Exemplo n.º 1
0
        private void сотрудникиToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var staffsForm = new StaffsForm();

            staffsForm.ShowDialog();
            staffs = staffService.GetData();
        }
Exemplo n.º 2
0
        private Staff SelectStaff()
        {
            var        selectedStaff = new Staff();
            StaffsForm staffsForm    = new StaffsForm("select");

            staffsForm.ShowDialog();
            selectedStaff = staffsForm.SelectedStaff;
            return(selectedStaff);
        }
Exemplo n.º 3
0
        private void responsiblePersonButton_Click(object sender, EventArgs e)
        {
            StaffsForm staffsForm = new StaffsForm("select");

            staffsForm.ShowDialog();
            var responsiblePerson = staffsForm.SelectedStaff;

            selfCheck.ResponsiblePersonID = responsiblePerson.ID;
            responsiblePersonTextBox.Text = responsiblePerson.GetStaffFullName();
        }