Exemple #1
0
        public static EngineTypeList getInstance()
        {
            if (uniqueInstance == null)
                uniqueInstance = new EngineTypeList();

            return uniqueInstance;
        }
Exemple #2
0
        static FuelLoader()
        {
            erorrs = new List<string>();

            fuelCardList = FuelCardList.getInstance();
            engineTypeList = EngineTypeList.getInstance();
            benzin = engineTypeList.getItem(BENZIN_ID);
            disel = engineTypeList.getItem(DIESEL_ID);

            loaders = new Dictionary<FuelReport, Action<ExcelDoc>>();

            loaders.Add(FuelReport.Петрол, LoadPetrol);
            loaders.Add(FuelReport.Neste, LoadNeste);
            loaders.Add(FuelReport.Чеки, LoadChecks);
        }