Ejemplo n.º 1
0
        protected static void LoadModules()
        {
            lock (_syncLoadModules)
            {
                if (_loadedModules)
                {
                    return;
                }

                FsPathPersistence.RegisterPathSubstitution(DevPaths.DriveSubstitution);

                Kernel = new StandardKernel();
                Kernel.Load <DalModule>();
                Kernel.Load <CoreModule>();
                Kernel.Load <DownloaderModule>();
                Kernel.Load <DeckListModule>();

                Repo      = Kernel.Get <CardRepository>();
                PriceRepo = Kernel.Get <PriceRepository>();
                ImgRepo   = Kernel.Get <ImageRepository>();
                Ui        = Kernel.Get <UiModel>();
                Formatter = Kernel.Get <CardFormatter>();

                _loadedModules = true;
            }
        }
Ejemplo n.º 2
0
        public override void Load()
        {
            // ReSharper disable once PossibleNullReferenceException
            Kernel.Bind <ImageDirectorySigner>()
            .ToSelf()
            .InSingletonScope();

            FsPathPersistence.RegisterPathSubstitution(DevPaths.DriveSubstitution);
        }