示例#1
0
 protected virtual void HandleResourceChanged(object sender, ResourcePropIndexEventArgs e)
 {
     if (!_disposed)
     {
         _listView.UpdateItemSafe(e.Resource);
     }
 }
示例#2
0
 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);
     }
 }
示例#3
0
 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);
     }
 }