コード例 #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();
        }