/// <summary> /// Проверка персонального идентификатора работника поддержки /// </summary> /// <param name="employee">Сотрудник</param> /// <returns></returns> private bool CheckPersonalId(SupportWorker employee) { for (int i = 0; i < Workers.Count; i++) { if (Workers[i] is SupportWorker) { var worker = (SupportWorker)Workers[i]; if (worker.IdNumber == employee.IdNumber) { return(false); } } } return(true); }
public void SetParam(List <Parameter> paramList, SupportWorker prototype) { new SupportWorkerParameters().setParameters(paramList, prototype); }
public List <Parameter> GetParam(SupportWorker worker) { return(new SupportWorkerParameters().getParameters(worker)); }