Esempio n. 1
0
        public DataSettings GetDataSettings(DataSettings dataSettings)
        {
            var selectedViews = new HashSet <string>(chooseViewsControl.CheckedViews
                                                     .Where(viewName => viewName.GroupId.Equals(PersistedViews.MainGroup.Id))
                                                     .Select(viewName => viewName.Name));
            var viewSpecs = Settings.Default.PersistedViews.GetViewSpecList(PersistedViews.MainGroup.Id)
                            .Filter(view => selectedViews.Contains(view.Name));

            return(dataSettings.ChangeAnnotationDefs(_annotationsListBoxDriver.Chosen)
                   .ChangeGroupComparisonDefs(_groupComparisonsListBoxDriver.Chosen)
                   .ChangeViewSpecList(viewSpecs));
        }