Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/05/11 15:02:42 (12 years ago)
Author:
bburlacu
Message:

#1661: Improved naming of variables and replaced literals with constants. Added new IsVisibleInLegend visual property for data rows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Analysis/3.3/DataVisualization/DataRowVisualProperties.cs

    r6978 r7124  
    152152      }
    153153    }
     154    private bool isVisibleInLegend;
     155    public bool IsVisibleInLegend {
     156      get { return isVisibleInLegend; }
     157      set {
     158        if (isVisibleInLegend != value) {
     159          isVisibleInLegend = value;
     160          OnPropertyChanged("IsVisibleInLegend");
     161        }
     162      }
     163    }
    154164    private string displayName;
    155165    public string DisplayName {
     
    218228      get { return scaleFactor; }
    219229      set { scaleFactor = value; }
     230    }
     231    [Storable(Name = "IsVisibleInLegend")]
     232    private bool StorableIsVisibleInLegend {
     233      get { return isVisibleInLegend; }
     234      set { isVisibleInLegend = value; }
    220235    }
    221236    [Storable(Name = "DisplayName")]
     
    241256      this.scaleFactor = original.scaleFactor;
    242257      this.displayName = original.displayName;
     258      this.isVisibleInLegend = original.isVisibleInLegend;
    243259    }
    244260    public DataRowVisualProperties() {
     
    254270      scaleFactor = 1.0;
    255271      displayName = String.Empty;
     272      isVisibleInLegend = true;
    256273    }
    257274    public DataRowVisualProperties(string displayName)
Note: See TracChangeset for help on using the changeset viewer.