public DialogManager(IDependencyResolverService service) { ObjDetails = new ProxyDialog <ObjDetailsWindow, ObjDetailsViewModel>( () => service.ResolveView <ObjDetailsWindow, ObjDetailsViewModel>()); OpenFiles = new ProxyDialog <OpenFilesWindow, OpenFilesViewModel>( () => service.ResolveView <OpenFilesWindow, OpenFilesViewModel>()); SaveAll = new ProxyDialog <SaveAllWindow, SaveAllViewModel>( () => service.ResolveView <SaveAllWindow, SaveAllViewModel>()); Plugins = new ProxyDialog <PluginsWindow, PluginsViewModel>( () => service.ResolveView <PluginsWindow, PluginsViewModel>()); }
protected override void AppStartup(StartupEventArgs e, IDependencyResolverService resolver) { resolver.UseUnhandledExceptionHandler(); resolver.ResolveView <MainWindow, MainWindowViewModel>().Show(); if (e.Args.Any()) { resolver.Resolve <AppLogger>().Info(string.Join('\n', e.Args)); resolver.Resolve <IFileLoader>().Load(e.Args); } }
protected override void AppStartup(StartupEventArgs e, IDependencyResolverService resolver) { resolver.ResolveView <MainWindow, MainViewModel>().Show(); }