public void UpdateQuality() { ServiceDelegate serviceDelegate = new ServiceDelegate(); UpdateQualityClient client = new UpdateQualityClient(); this._products = Products.Select(x => { return(x.GetDescription()); }).ToArray(); for (var i = 0; i < Items.Count; i++) { serviceDelegate.SetItem(Items[i]); serviceDelegate.SetServiceType(this.TypeServices[this.GetIndex(Items[i].Name)]); client.SetUpdateQualityClient(serviceDelegate); serviceDelegate.DoUpdate(); } }
public void SetUpdateQualityClient(ServiceDelegate updateService) { this._updateService = updateService; }