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

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

            staffsForm.ShowDialog();
            selectedStaff = staffsForm.SelectedStaff;
            return(selectedStaff);
        }
        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();
        }