public DataHostItem(DataSourceHost dataSourceHost, DataPanelModel model, string name, string automationId) : base(model.SelectionContext) { this.dataSourceHost = dataSourceHost; this.DataSources = new ObservableCollectionAggregator(); this.ResourceDataSources = new DataSourcesCollection <DataSourceItem>(this); this.FileDataSources = new DataSourcesCollection <FileBasedDataSourceItem>(this); this.DataSources.AddCollection((IList)this.ResourceDataSources); this.DataSources.AddCollection((IList)this.FileDataSources); this.doubleClickCommand = (ICommand) new DelegateCommand(new DelegateCommand.SimpleEventHandler(this.OnDoubleClick)); this.name = name; this.automationId = automationId; this.documentHasErrors = this.CalculateDocumentHasErrors(); }
public DataSourcesDataCollection(DataSourceHost host) { this.host = host; }
internal void RefreshDataSource(DataSourceHost dataSourceHost) { this.ClearDataSourceHost(); this.dataSourceHost = dataSourceHost; this.DocumentHasErrors = this.CalculateDocumentHasErrors(); }
internal void ClearDataSourceHost() { this.dataSourceHost = (DataSourceHost)null; this.ResourceDataSources.Clear(); this.FileDataSources.Clear(); }