Example #1
0
        public override void ExamineFlight(ExaminerFlightRow cfr)
        {
            if (cfr == null)
            {
                throw new ArgumentNullException(nameof(cfr));
            }

            if (!cfr.fIsRealAircraft)
            {
                return;
            }

            miTotal.AddEvent(cfr.Total);
            if (CategoryClass.IsPowered(cfr.idCatClassOverride))
            {
                miPICPowered.AddEvent(cfr.PIC);
            }
            if (cfr.idCatClassOverride == CategoryClass.CatClassID.ASEL)
            {
                miTotalSEL.AddEvent(cfr.Total);
                miXCSEL.AddEvent(cfr.XC);
            }
            miXC.AddEvent(cfr.XC);
        }