Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2473 for trunk/sources


Ignore:
Timestamp:
11/10/09 14:40:51 (15 years ago)
Author:
epitzer
Message:

Allow changing the name of an ObservableBackgroundWorker. (#769)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.BackgroundProcessing/3.2/ObservableBackgroundWorker.cs

    r2410 r2473  
    1313  /// </summary>
    1414  public class ObservableBackgroundWorker : BackgroundWorker, INotifyPropertyChanged {
    15     public string Name { get; private set; }
     15
     16    private string name;
     17    public string Name {
     18      get {
     19        return name;
     20      }
     21      set {
     22        if (value == name)
     23          return;
     24        name = value;
     25        OnPropertyChanged("Name");
     26      }   
     27    }
     28
    1629    public int Progress { get; private set; }
    1730
Note: See TracChangeset for help on using the changeset viewer.