Beispiel #1
0
 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>());
 }
Beispiel #2
0
        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);
            }
        }
Beispiel #3
0
 protected override void AppStartup(StartupEventArgs e, IDependencyResolverService resolver)
 {
     resolver.ResolveView <MainWindow, MainViewModel>().Show();
 }