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.Data/3.3/StringMatrix.cs

    r12012 r13656  
    3636    private const int maximumToStringLength = 100;
    3737
    38     public static new Image StaticItemImage {
    39       get { return HeuristicLab.Common.Resources.VSImageLibrary.Class; }
     38    public static new Image StaticItemImage
     39    {
     40      get { return new Bitmap(25, 25); }
    4041    }
    4142
     
    4546    [Storable]
    4647    protected List<string> columnNames;
    47     public virtual IEnumerable<string> ColumnNames {
     48    public virtual IEnumerable<string> ColumnNames
     49    {
    4850      get { return this.columnNames; }
    49       set {
     51      set
     52      {
    5053        if (ReadOnly) throw new NotSupportedException("ColumnNames cannot be set. StringMatrix is read-only.");
    5154        if (value == null || value.Count() == 0)
     
    6063    [Storable]
    6164    protected List<string> rowNames;
    62     public virtual IEnumerable<string> RowNames {
     65    public virtual IEnumerable<string> RowNames
     66    {
    6367      get { return this.rowNames; }
    64       set {
     68      set
     69      {
    6570        if (ReadOnly) throw new NotSupportedException("RowNames cannot be set. StringMatrix is read-only.");
    6671        if (value == null || value.Count() == 0)
     
    7580    [Storable]
    7681    protected bool sortableView;
    77     public virtual bool SortableView {
     82    public virtual bool SortableView
     83    {
    7884      get { return sortableView; }
    79       set {
     85      set
     86      {
    8087        if (ReadOnly) throw new NotSupportedException("SortableView cannot be set. StringMatrix is read-only.");
    8188        if (value != sortableView) {
     
    8693    }
    8794
    88     public virtual int Rows {
     95    public virtual int Rows
     96    {
    8997      get { return matrix.GetLength(0); }
    90       protected set {
     98      protected set
     99      {
    91100        if (ReadOnly) throw new NotSupportedException("Rows cannot be set. StringMatrix is read-only.");
    92101        if (value != Rows) {
     
    104113      }
    105114    }
    106     public virtual int Columns {
     115    public virtual int Columns
     116    {
    107117      get { return matrix.GetLength(1); }
    108       protected set {
     118      protected set
     119      {
    109120        if (ReadOnly) throw new NotSupportedException("Columns cannot be set. StringMatrix is read-only.");
    110121        if (value != Columns) {
     
    123134      }
    124135    }
    125     public virtual string this[int rowIndex, int columnIndex] {
     136    public virtual string this[int rowIndex, int columnIndex]
     137    {
    126138      get { return matrix[rowIndex, columnIndex]; }
    127       set {
     139      set
     140      {
    128141        if (ReadOnly) throw new NotSupportedException("Item cannot be set. StringMatrix is read-only.");
    129142        if (value != matrix[rowIndex, columnIndex]) {
     
    138151    [Storable]
    139152    protected bool readOnly;
    140     public virtual bool ReadOnly {
     153    public virtual bool ReadOnly
     154    {
    141155      get { return readOnly; }
    142156    }
     
    309323
    310324    #region IStringConvertibleMatrix Members
    311     int IStringConvertibleMatrix.Rows {
     325    int IStringConvertibleMatrix.Rows
     326    {
    312327      get { return Rows; }
    313328      set { Rows = value; }
    314329    }
    315     int IStringConvertibleMatrix.Columns {
     330    int IStringConvertibleMatrix.Columns
     331    {
    316332      get { return Columns; }
    317333      set { Columns = value; }
Note: See TracChangeset for help on using the changeset viewer.