예제 #1
0
 public void ExamineFlight(ExaminerFlightRow cfr)
 {
     cfr.ForEachEvent((cfp) =>
     {
         if (cfp.PropTypeID == (int)CustomPropertyType.KnownProperties.IDPropUASKnowledgeTest10773)
         {
             KnowledgeTest.AddRecentFlightEvents(cfr.dtFlight, 1);
         }
         if (cfp.PropTypeID == (int)CustomPropertyType.KnownProperties.IDPropUASTrainingCourse10774)
         {
             TrainingCourse.AddRecentFlightEvents(cfr.dtFlight, 1);
         }
         if (cfp.PropertyType.IsBFR && cfr.fIsRealAircraft)
         {
             BFR.AddRecentFlightEvents(cfr.dtFlight, 1);
         }
     });
 }
예제 #2
0
 public void ExamineFlight(ExaminerFlightRow cfr)
 {
     if (cfr == null)
     {
         throw new ArgumentNullException(nameof(cfr));
     }
     cfr.FlightProps.ForEachEvent((cfp) =>
     {
         if (cfp.PropTypeID == (int)CustomPropertyType.KnownProperties.IDPropUASKnowledgeTest10773)
         {
             KnowledgeTest.AddRecentFlightEvents(cfr.dtFlight, 1);
         }
         if (cfp.PropTypeID == (int)CustomPropertyType.KnownProperties.IDPropUASTrainingCourse10774)
         {
             TrainingCourse.AddRecentFlightEvents(cfr.dtFlight, 1);
         }
         if (cfp.PropertyType.IsBFR && cfr.fIsRealAircraft)
         {
             BFR.AddRecentFlightEvents(cfr.dtFlight, 1);
         }
     });
 }