コード例 #1
0
        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();
            }
        }
コード例 #2
0
 public void SetUpdateQualityClient(ServiceDelegate updateService)
 {
     this._updateService = updateService;
 }