Пример #1
0
 public Person(string[] inforamtion, WorkPlace work)
 {
     Name   = inforamtion[0];
     Work   = work;
     Salary = int.Parse(inforamtion[2]);
     if (inforamtion.Length == 4)
     {
         IsHead = Convert.ToBoolean(inforamtion[3]);
     }
     else
     {
         IsHead = false;
     }
 }
Пример #2
0
 static void Main(string[] args)
 {
     DataReader.GetPerson();
     WorkPlace.GetWorkPlaceInfo();
 }