private void DataBases_ItemCreated(object sender, ItemsCreatedEventArgs <IDataBase> e) { foreach (var item in e.Items) { var serviceItem = new DataFindServiceItem(item, this.dispatcher, authentication); this.items.Add(item.ID, serviceItem); } }
public void Initialize(Authentication authentication) { this.dispatcher = new CremaDispatcher(this); this.authentication = authentication; foreach (var item in this.cremaHost.DataBases) { var serviceItem = new DataFindServiceItem(item, this.dispatcher, authentication); this.items.Add(item.ID, serviceItem); } }