private CollectionDataItem CreateCollectionDataItem(ServiceInfo service, Table table) { var item = new CollectionDataItem(service, table); foreach (var column in table.Columns) { item.Elements.Add(new PropertyDataItem(service, table, column)); } foreach (var association in table.Associations) { item.Elements.Add(new PropertyDataItem(service, table, association)); } return(item); }
private void RequestCollectionData(CollectionDataItem collectionItem) { if (collectionItem.Results == null) collectionItem.Results = new ObservableResultCollection( (this.itemListView.SelectedItem as ServiceDataItem).Subtitle, collectionItem.Title, collectionItem.Table, this); }
private CollectionDataItem CreateCollectionDataItem(ServiceInfo service, Table table) { var item = new CollectionDataItem(service, table); foreach (var column in table.Columns) { item.Elements.Add(new PropertyDataItem(service, table, column)); } foreach (var association in table.Associations) { item.Elements.Add(new PropertyDataItem(service, table, association)); } return item; }