Beispiel #1
0
 protected override void RegisterWithIocContainer(IBindableIocService service)
 {
     service.AddLogging();
     RegisterWindows(service);
     RegisterDataStore(service);
     RegisterHardware(service);
     RegisterAirportDatabase(service);
     RegisterTabletServer(service);
     RegisterDebugger(service);
 }
Beispiel #2
0
        protected override void RegisterWithIocContainer(IBindableIocService service)
        {
            service.AddLogging();
            // window selectors
            service.Bind <IFileViewerFactory>().To <NugetManagerViewModelFactory>();
            service.Bind <IFileViewerFactory>().To <SecretManagerViewModelFactory>();

            // Root Window
            service.Bind <INavigationWindow>().To <NavigationWindow>().AsSingleton();
            service.Bind <RootNavigationWindow>().And <Window>().And <IRootNavigationWindow>()
            .ToSelf().FixResult(SetIcon).AsSingleton();
            service.RegisterHomeViewModel <FileLoadViewModel>();

            // System Services
            service.Bind <IStartupData>().To <StartupData>()
            .WithParameters(new object[] { CommandLineParameters })
            .AsSingleton();
            service.Bind <IOpenSaveFile>().To <OpenSaveFileAdapter>();
        }
Beispiel #3
0
        protected override void RegisterWithIocContainer(IBindableIocService service)
        {
            service.AddLogging();
            service.Bind <SamplesTreeViewModel>().ToSelf().AsSingleton();
            service.RegisterHomeViewModel <SamplesTreeViewModel>();
            service.Bind <IRootNavigationWindow>()
            .And <Window>()
            .To <RootNavigationWindow>()
            .AsSingleton();
            service.Bind <DisposableDependency>().ToSelf().AsScoped();
            service.Bind <IWindowMessageSource>().To <WindowMessageSource>().AsSingleton();

            // pedal reader
            service.Bind <IMonitorForDeviceArrival>().To <MonitorForDeviceArrival>()
            .AsSingleton().DoNotDispose();
            service.Bind <ITranscriptonPedal>().To <TranscriptonPedal>()
            .DoNotDispose();
            service.Bind <IDetectThumbDrive>().To <DetectThumbDrive>().AsSingleton().DoNotDispose();
        }