Example #1
0
 public static void Unload()
 {
     if (Windows8OrAbove)
     {
         MfManager.Shutdown();
     }
 }
Example #2
0
 public void Dispose()
 {
     if (WindowsModule.Windows8OrAbove)
     {
         MfManager.Shutdown();
     }
 }
Example #3
0
        public static void Load(IBinder Binder)
        {
            if (Windows8OrAbove)
            {
                MfManager.Startup();
                Binder.BindAsInterfaceAndClass <IVideoWriterProvider, MfWriterProvider>();
            }

            Binder.BindSingleton <WindowsSettings>();
            Binder.Bind <IPlatformServices, WindowsPlatformServices>();
            Binder.Bind <IDialogService, DialogService>();
            Binder.Bind <IClipboardService, ClipboardService>();
            Binder.Bind <IImagingSystem, DrawingImagingSystem>();

            foreach (var audioItem in MfAudioItem.Items)
            {
                Binder.Bind <IAudioWriterItem>(() => audioItem);
            }
        }
Example #4
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);
        }