Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/07/16 10:18:05 (8 years ago)
Author:
ascheibe
Message:

#2582 created branch for Hive Web Job Manager

Location:
branches/WebJobManager
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/WebJobManager/HeuristicLab.Analysis/3.3/DataVisualization/DataTable.cs

    r12012 r13656  
    3838  [StorableClass]
    3939  public class DataTable : NamedItem, IStringConvertibleMatrix {
    40     public static new Image StaticItemImage {
    41       get { return HeuristicLab.Common.Resources.VSImageLibrary.Performance; }
     40    public static new Image StaticItemImage
     41    {
     42      get { return new Bitmap(25, 25); }
    4243    }
    4344
    4445    private DataTableVisualProperties visualProperties;
    45     public DataTableVisualProperties VisualProperties {
     46    public DataTableVisualProperties VisualProperties
     47    {
    4648      get { return visualProperties; }
    47       set {
     49      set
     50      {
    4851        if (visualProperties != value) {
    4952          if (value == null) throw new ArgumentNullException("VisualProperties");
     
    5760
    5861    private NamedItemCollection<DataRow> rows;
    59     public NamedItemCollection<DataRow> Rows {
     62    public NamedItemCollection<DataRow> Rows
     63    {
    6064      get { return rows; }
    61       private set {
     65      private set
     66      {
    6267        if (rows != null) throw new InvalidOperationException("Rows already set");
    6368        rows = value;
     
    6873    #region Persistence Properties
    6974    [Storable(Name = "VisualProperties")]
    70     private DataTableVisualProperties StorableVisualProperties {
     75    private DataTableVisualProperties StorableVisualProperties
     76    {
    7177      get { return visualProperties; }
    72       set {
     78      set
     79      {
    7380        visualProperties = value;
    7481        visualProperties.PropertyChanged += new PropertyChangedEventHandler(VisualProperties_PropertyChanged);
     
    7683    }
    7784    [Storable(Name = "rows")]
    78     private IEnumerable<DataRow> StorableRows {
     85    private IEnumerable<DataRow> StorableRows
     86    {
    7987      get { return rows; }
    8088      set { Rows = new NamedItemCollection<DataRow>(value); }
     
    206214    #region IStringConvertibleMatrix Members
    207215
    208     int IStringConvertibleMatrix.Rows {
     216    int IStringConvertibleMatrix.Rows
     217    {
    209218      get { return rows.Count == 0 ? 0 : rows.Max(r => r.Values.Count); }
    210219      set { throw new NotSupportedException(); }
    211220    }
    212     int IStringConvertibleMatrix.Columns {
     221    int IStringConvertibleMatrix.Columns
     222    {
    213223      get { return rows.Count; }
    214224      set { throw new NotSupportedException(); }
    215225    }
    216     IEnumerable<string> IStringConvertibleMatrix.ColumnNames {
     226    IEnumerable<string> IStringConvertibleMatrix.ColumnNames
     227    {
    217228      get { return rows.Select(r => r.Name); }
    218229      set { throw new NotSupportedException(); }
    219230    }
    220     IEnumerable<string> IStringConvertibleMatrix.RowNames {
     231    IEnumerable<string> IStringConvertibleMatrix.RowNames
     232    {
    221233      get { return Enumerable.Empty<string>(); }
    222234      set { throw new NotSupportedException(); }
    223235    }
    224236
    225     bool IStringConvertibleMatrix.SortableView {
     237    bool IStringConvertibleMatrix.SortableView
     238    {
    226239      get { return true; }
    227240      set { throw new NotSupportedException(); }
    228241    }
    229     bool IStringConvertibleMatrix.ReadOnly {
     242    bool IStringConvertibleMatrix.ReadOnly
     243    {
    230244      get { return true; }
    231245    }
Note: See TracChangeset for help on using the changeset viewer.