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