public static void Unload() { if (Windows8OrAbove) { MfManager.Shutdown(); } }
public void Dispose() { if (WindowsModule.Windows8OrAbove) { MfManager.Shutdown(); } }
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); } }
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); }