BrightIdeasSoftware.VirtualObjectListView.RefreshObjects C# (CSharp) Метод

RefreshObjects() публичный Метод

Update the rows that are showing the given objects
This method does not resort the items.
public RefreshObjects ( IList modelObjects ) : void
modelObjects IList
Результат void
        public override void RefreshObjects(IList modelObjects)
        {
            if (this.InvokeRequired) {
                this.Invoke((MethodInvoker)delegate { this.RefreshObjects(modelObjects); });
                return;
            }

            // Without a data source, we can't do this.
            if (this.VirtualListDataSource == null)
                return;

            try {
                this.BeginUpdate();
                this.ClearCachedInfo();
                foreach (object modelObject in modelObjects) {
                    int index = this.VirtualListDataSource.GetObjectIndex(modelObject);
                    if (index >= 0)
                        this.RedrawItems(index, index, true);
                }
            }
            finally {
                this.EndUpdate();
            }
        }