protected virtual void HandleResourceChanged(object sender, ResourcePropIndexEventArgs e) { if (!_disposed) { _listView.UpdateItemSafe(e.Resource); } }
private void DoUpdateResource(IResource res) { if (Core.State != CoreState.ShuttingDown) { // the resource change is queued asynchronously, so the item may // have been removed from the list _listView.UpdateItemSafe(res); } }
protected virtual void HandleResourceChanged(object sender, ResourcePropIndexEventArgs e) { if (!_disposed) { // UpdateItemSafe() is necessary because in some cases (OM-8629) some plugin performs // a resource change from the ResourceAdded event handler, which causes // JetListView to receive ResourceChanged notification for a resource before it // has received a ResourceAdded notification for the same resource. _listView.UpdateItemSafe(e.Resource); } }