Esempio n. 1
0
 public void CadetFromCadetDB(CadetDB cadetDB)
 {
     this.id                 = cadetDB.id;
     this.groupName          = cadetDB.GroupDB.SpecializationDB.nameOfSpecialization;
     this.groupNumber        = cadetDB.GroupDB.numberOfGroup;
     this.lastName           = cadetDB.lastName;
     this.middleName         = cadetDB.middleName;
     this.firstName          = cadetDB.firstName;
     this.isMarried          = cadetDB.isMarried;
     this.birthDay           = cadetDB.birthDay;
     this.pathPhotoBig       = cadetDB.pathPhotoBig;
     this.pathPhotoSmall     = cadetDB.pathPhotoSmall;
     this.Position           = cadetDB.Position;
     this.dateOfStartService = cadetDB.dateOfStartService;
     this.militaryRank       = cadetDB.militaryRank;
     this.info               = cadetDB.info;
 }
Esempio n. 2
0
 public Cadet(CadetDB cadetDB)
 {
     id                 = cadetDB.id;
     groupName          = cadetDB.GroupDB.SpecializationDB.nameOfSpecialization;
     groupNumber        = cadetDB.GroupDB.numberOfGroup;
     lastName           = cadetDB.lastName;
     middleName         = cadetDB.middleName;
     firstName          = cadetDB.firstName;
     isMarried          = cadetDB.isMarried;
     birthDay           = cadetDB.birthDay;
     pathPhotoBig       = cadetDB.pathPhotoBig;
     pathPhotoSmall     = cadetDB.pathPhotoSmall;
     Position           = cadetDB.Position;
     dateOfStartService = cadetDB.dateOfStartService;
     militaryRank       = cadetDB.militaryRank;
     info               = cadetDB.info;
 }