Beispiel #1
0
        public void OnLoad(IBinder Binder)
        {
            Binder.Bind(() => WaveItem.Instance);

            FFmpegModule.Load(Binder);

            BindViewModels(Binder);
            BindSettings(Binder);
            BindImageWriters(Binder);
            BindVideoWriterProviders(Binder);
            BindVideoSourceProviders(Binder);
            BindAudioSource(Binder);
            BindUpdateChecker(Binder);

            // Recent
            Binder.Bind <IRecentList, RecentListRepository>();
            Binder.Bind <IRecentItemSerializer, FileRecentSerializer>();
            Binder.Bind <IRecentItemSerializer, UploadRecentSerializer>();

            Binder.Bind <IImageUploader, ImgurUploader>();
            Binder.Bind <IIconSet, MaterialDesignIcons>();
            Binder.Bind <IImgurApiKeys, ApiKeys>();
            Binder.Bind <IYouTubeApiKeys, ApiKeys>();

            Binder.BindSingleton <HotKeyManager>();
            Binder.Bind(() => LanguageManager.Instance);

            WindowsModule.Load(Binder);
        }
Beispiel #2
0
        public void OnLoad(IBinder Binder)
        {
            Binder.Bind <IAudioWriterItem, WaveItem>();

            WindowsModule.Load(Binder);

            BindViewModels(Binder);
            BindSettings(Binder);
            BindVideoWriterProviders(Binder);
            BindVideoSourceProviders(Binder);
            BindAudioSource(Binder);

            // Recent
            Binder.Bind <IRecentList, RecentListRepository>();
            Binder.Bind <IRecentItemSerializer, FileRecentSerializer>();

            Binder.Bind <IIconSet, MaterialDesignIcons>();

            Binder.BindSingleton <HotKeyManager>();

            Binder.Bind <IFpsManager, FpsManager>();
        }
Beispiel #3
0
        public void OnLoad(IBinder Binder)
        {
            Binder.Bind <IAudioWriterItem, WaveItem>();

            if (WindowsModule.Windows8OrAbove)
            {
                MfManager.Startup();
                Binder.BindAsInterfaceAndClass <IVideoWriterProvider, MfWriterProvider>();
            }

            FFmpegModule.Load(Binder);

            BindViewModels(Binder);
            BindSettings(Binder);
            BindImageWriters(Binder);
            BindVideoWriterProviders(Binder);
            BindVideoSourceProviders(Binder);
            BindAudioSource(Binder);
            BindUpdateChecker(Binder);

            // Recent
            Binder.Bind <IRecentList, RecentListRepository>();
            Binder.Bind <IRecentItemSerializer, FileRecentSerializer>();
            Binder.Bind <IRecentItemSerializer, UploadRecentSerializer>();

            Binder.Bind <IImageUploader, ImgurUploader>();
            Binder.Bind <IIconSet, MaterialDesignIcons>();
            Binder.Bind <IImgurApiKeys, ApiKeys>();
            Binder.Bind <IYouTubeApiKeys, ApiKeys>();

            Binder.BindSingleton <HotKeyManager>();

            Binder.Bind <ILocalizationProvider>(() => LanguageManager.Instance);

            WindowsModule.Load(Binder);
        }