private void сотрудникиToolStripMenuItem_Click(object sender, EventArgs e) { var staffsForm = new StaffsForm(); staffsForm.ShowDialog(); staffs = staffService.GetData(); }
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(); }