protected void OnItemsChanged(object sender, ItemChangedEventArgs e) { if (e.ChangeType != ItemChangeType.ItemChanged) this.Enabled = CollectionUtils.Contains<RetrieveProgressResult>(this.Context.Items, delegate(RetrieveProgressResult result) { return result.Status == RetrieveStatus.Error || result.Status == RetrieveStatus.Completed || result.Status == RetrieveStatus.Canceled; }); }
private void OnItemsChanged(object sender, ItemChangedEventArgs e) { if (e.ChangeType == ItemChangeType.ItemChanged) this.UpdateEnabled(); }