コード例 #1
0
 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();
 }
コード例 #2
0
 public DataSourcesDataCollection(DataSourceHost host)
 {
     this.host = host;
 }
コード例 #3
0
 internal void RefreshDataSource(DataSourceHost dataSourceHost)
 {
     this.ClearDataSourceHost();
     this.dataSourceHost    = dataSourceHost;
     this.DocumentHasErrors = this.CalculateDocumentHasErrors();
 }
コード例 #4
0
 internal void ClearDataSourceHost()
 {
     this.dataSourceHost = (DataSourceHost)null;
     this.ResourceDataSources.Clear();
     this.FileDataSources.Clear();
 }