Ejemplo n.º 1
0
        private void HandleOK()
        {
            var settings = new Settings(filterContainer.Value);

            settingsService.SaveSettings(settings);
            settingsWindow.Hide();
        }
        public MainWindow(IContainerProvider container)
        {
            InitializeComponent();
            container.Resolve <IPreviewViewModel>();
            previewWindow = container.Resolve <IPreviewWindow>();
            previewWindow.Hide();
            var settingsVm = container.Resolve <ISettingsViewModel>();

            settingsWindow = container.Resolve <ISettingsWindow>();
            var queryService = container.Resolve <IDuplicateFinder>();

            settingsWindow.Hide();
            this.Closing += HandleWindowClosed;
            DataContext   = new DuplicatesViewModel(previewWindow, settingsWindow, queryService, container.Resolve <IAboutBox>(), container.Resolve <ISettingsService>());
        }