Exemplo n.º 1
0
        private void AddProficiencyRequired(DateTime dtExpired)
        {
            NVCurrencyItem nvci = new NVCurrencyItem(1, 0, szNVGeneric, 0)
            {
                NeedsProficiencyCheck = true
            };

            nvci.AddRecentFlightEvents(dtExpired, 1);
            m_lstCurrencies.Add(nvci);
        }
Exemplo n.º 2
0
        public NVCurrency(CategoryClass.CatClassID ccid)
        {
            m_ccid = ccid;
            bool fIsHeliOrPowered = IsHelicopterOrPoweredLift(ccid);
            int  requiredOps      = fIsHeliOrPowered ? 6 : 3;

            fcNVPassengers   = new NVCurrencyItem(requiredOps, 2, String.Format(CultureInfo.CurrentCulture, Resources.Currency.NVPIC, fIsHeliOrPowered ? Resources.Currency.NVHeliOrPoweredLift : Resources.Currency.NVAirplane, Resources.Currency.NVPassengers), 4);
            fcNVNoPassengers = new NVCurrencyItem(requiredOps, 4, String.Format(CultureInfo.CurrentCulture, Resources.Currency.NVPIC, fIsHeliOrPowered ? Resources.Currency.NVHeliOrPoweredLift : Resources.Currency.NVAirplane, Resources.Currency.NVNoPassengers), 0);
            fcNVIPC          = new NVCurrencyItem(1, 4, "NV Proficiency Check", 0);
            szNVGeneric      = String.Format(CultureInfo.CurrentCulture, Resources.Currency.NVPIC, fIsHeliOrPowered ? Resources.Currency.NVHeliOrPoweredLift : string.Empty, string.Empty);
            m_lstCurrencies  = new List <FlightCurrency>();
        }