예제 #1
0
        public static MainWindow GetMainWindow()
        {
            var settingsModel = SettingsService.GetSettingsForCurrentProject();

            if (!ConnectionProvider.EnsureConnection())
            {
                return(null);
            }

            var listOfViewModels = new List <ISettingsViewModel>
            {
                new DomainsAndTermTypesFilterViewModel(),
                new FineGrainedFilterViewModel()
            };

            MainWindow = new MainWindow(listOfViewModels, settingsModel ?? new SettingsModel());

            return(MainWindow);
        }