- Timestamp:
- 03/07/16 10:18:05 (9 years ago)
- Location:
- branches/WebJobManager
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/DataAnalysisSolution.cs
r12012 r13656 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Drawing;25 24 using HeuristicLab.Common; 26 25 using HeuristicLab.Optimization; … … 38 37 public string Filename { get; set; } 39 38 40 public static new Image StaticItemImage { 41 get { return HeuristicLab.Common.Resources.VSImageLibrary.Function; } 42 } 39 43 40 44 41 #region properties 45 public IDataAnalysisModel Model { 42 public IDataAnalysisModel Model 43 { 46 44 get { return (IDataAnalysisModel)this[ModelResultName].Value; } 47 protected set { 45 protected set 46 { 48 47 if (this[ModelResultName].Value != value) { 49 48 if (value != null) { … … 55 54 } 56 55 57 public IDataAnalysisProblemData ProblemData { 56 public IDataAnalysisProblemData ProblemData 57 { 58 58 get { return (IDataAnalysisProblemData)this[ProblemDataResultName].Value; } 59 set { 59 set 60 { 60 61 if (this[ProblemDataResultName].Value != value) { 61 62 if (value != null) { … … 114 115 [Storable] 115 116 protected string name; 116 public string Name { 117 public string Name 118 { 117 119 get { return name; } 118 set { 120 set 121 { 119 122 if (!CanChangeName) throw new NotSupportedException("Name cannot be changed."); 120 123 if (!(name.Equals(value) || (value == null) && (name == string.Empty))) { … … 128 131 } 129 132 } 130 public virtual bool CanChangeName { 133 public virtual bool CanChangeName 134 { 131 135 get { return true; } 132 136 } 133 137 [Storable] 134 138 protected string description; 135 public string Description { 139 public string Description 140 { 136 141 get { return description; } 137 set { 142 set 143 { 138 144 if (!CanChangeDescription) throw new NotSupportedException("Description cannot be changed."); 139 145 if (!(description.Equals(value) || (value == null) && (description == string.Empty))) { … … 143 149 } 144 150 } 145 public virtual bool CanChangeDescription { 151 public virtual bool CanChangeDescription 152 { 146 153 get { return true; } 147 154 }
Note: See TracChangeset
for help on using the changeset viewer.