Ignore:
Timestamp:
01/18/13 10:26:25 (9 years ago)
Author:
ascheibe
Message:

#2005

  • fixed naming of event handlers that were forgotten when the naming from experiment to job was changed
  • fixed some more memory leaks
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UnloadJobs/HeuristicLab.Clients.Hive/3.3/ServiceClients/HiveItemCollection.cs

    r7259 r9173  
    5252    }
    5353
     54    public void ClearWithoutHiveDeletion() {
     55      if (list.Count > 0) {
     56        T[] items = list.ToArray();
     57        list.Clear();
     58        OnPropertyChanged("Count");
     59        //don't call OnCollectionReset directly as it would delete the job
     60        base.OnCollectionReset(list, items);
     61      }
     62    }
     63
    5464    private void RemoveItems(IEnumerable<T> items, out IEnumerable<T> successful, out IEnumerable<T> unsuccessful, out Exception exception) {
    5565      List<T> removed = new List<T>();
Note: See TracChangeset for help on using the changeset viewer.