コード例 #1
0
 public Pilot(PilotProfile profile, DateTime educationTime, PilotRating rating)
 {
     this.Profile       = profile;
     this.EducationTime = educationTime;
     this.Rating        = rating;
     this.Aircrafts     = new List <string>();
 }
コード例 #2
0
 public Instructor(PilotProfile profile, PilotRating rating)
 {
     this.Profile  = profile;
     this.Rating   = rating;
     this.Students = new List <PilotStudent>();
 }
コード例 #3
0
 //adds a rating to the list
 public static void AddRating(PilotRating rating)
 {
     ratings.Add(rating);
 }
コード例 #4
0
 public PilotStudent(PilotProfile profile, DateTime startDate, Instructor instructor, PilotRating rating, string airlinerfamily)
 {
     this.Rating         = rating;
     this.Profile        = profile;
     this.StartDate      = startDate;
     this.EndDate        = this.StartDate.AddDays(this.Rating.TrainingDays);
     this.Instructor     = instructor;
     this.AirlinerFamily = airlinerfamily;
 }
コード例 #5
0
ファイル: Pilot.cs プロジェクト: travelmate37/tap-desktop
 public Pilot(PilotProfile profile, DateTime educationTime, PilotRating rating)
 {
     this.Profile       = profile;
     this.EducationTime = educationTime;
     this.Rating        = rating;
 }