public virtual void BindDataToControl() { foreach (AnalysisEditorBase analysisEditor in AnalysisEditors.Where(@base => [email protected])) { analysisEditor.IsDataSourceReady = true; } UpdateBindUnbindActionsState(); }
IAnalysisControl GetAnalysisControl(IModelPropertyEditor modelPropertyEditor) { try { return(AnalysisEditors.Where(@base => @base.PropertyName == modelPropertyEditor.PropertyName).OfType <TAnalysisEditor>().Single().Control); } catch (InvalidOperationException) { throw new UserFriendlyException( new Exception(String.Format("Use {0} as your default property editor for {1}", typeof(TAnalysisEditor).FullName, typeof(IAnalysisInfo).Name))); } }
protected override IEnumerable <object> GetGridOptionInstance(Type type) { var asPxPivotGrids = AnalysisEditors.Where(analysisEditor => analysisEditor.Control != null).Select(analysisEditor => ((AnalysisControlWeb)analysisEditor.Control).PivotGrid); return(asPxPivotGrids.Select(pivotGridControl => { var propertyInfos = PropertyInfos(type); var single = propertyInfos.ToList().Select(info1 => info1.GetValue(pivotGridControl, null)).Single(); return single; }).ToList()); }