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

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

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