コード例 #1
0
 /// <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);
 }
コード例 #2
0
 public void SetParam(List <Parameter> paramList, SupportWorker prototype)
 {
     new SupportWorkerParameters().setParameters(paramList, prototype);
 }
コード例 #3
0
 public List <Parameter> GetParam(SupportWorker worker)
 {
     return(new SupportWorkerParameters().getParameters(worker));
 }