private static void OnPluginFreed(PluginEventArgs args) { if (args.Plugin == BassPlugin.BassFlac) { Current.FreeModule(); } }
private static void OnPluginLoaded(PluginEventArgs args) { if (args.Plugin == BassPlugin.BassFlac) { Current.InitializeModule(); } }
protected override void OnLoaded(PluginEventArgs e) { base.OnLoaded(e); var app = e.Application; app.Messenger.Register<WindowMessages.ArrangeWindowsMessage>(OnArrangeWindowsMessage, app); app.ViewFactory.Register<MainWindowViewModel>((type, vm) => { var window = new MainWindow(this); window.DataContext = vm; return window; }); }