- Timestamp:
- 02/27/12 15:26:12 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Clients.Hive/3.3/Tasks
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive/3.3/Tasks/ItemTask.cs
r7259 r7530 174 174 #region IItem Members 175 175 public virtual new string ItemDescription { 176 get { return item.ItemDescription; } 177 } 178 179 public virtual new Image ItemImage 180 { 181 get { return item.ItemImage; } 182 } 183 184 public virtual new string ItemName 185 { 186 get { return item.ItemName; } 187 } 188 189 public virtual new Version ItemVersion 190 { 191 get { return item.ItemVersion; } 176 get { 177 if (item == null) 178 return string.Empty; 179 else 180 return item.ItemDescription; 181 } 182 } 183 184 public virtual new Image ItemImage { 185 get { 186 if (item == null) 187 return HeuristicLab.Common.Resources.VSImageLibrary.Class; 188 else 189 return item.ItemImage; 190 } 191 } 192 193 public virtual new string ItemName { 194 get { 195 if (item == null) 196 return string.Empty; 197 else 198 return item.ItemName; 199 } 200 } 201 202 public virtual new Version ItemVersion { 203 get { 204 if (item == null) 205 return ItemAttribute.GetVersion(this.GetType()); 206 else 207 return item.ItemVersion; 208 } 192 209 } 193 210 #endregion -
trunk/sources/HeuristicLab.Clients.Hive/3.3/Tasks/OptimizerTask.cs
r7259 r7530 180 180 #region INamedItem Members 181 181 public override bool CanChangeDescription { 182 get { return Item.CanChangeDescription; } 182 get { 183 if (Item == null) 184 return false; 185 else 186 return Item.CanChangeDescription; 187 } 183 188 } 184 189 185 190 public override bool CanChangeName { 186 get { return Item.CanChangeName; } 191 get { 192 if (Item == null) 193 return false; 194 else 195 return Item.CanChangeName; 196 } 187 197 } 188 198 189 199 public override string Description { 190 get { return Item.Description; } 200 get { 201 if (Item == null) 202 return string.Empty; 203 else 204 return Item.Description; 205 } 191 206 set { Item.Description = value; } 192 207 } 193 208 194 209 public override string Name { 195 get { return Item.Name; } 210 get { 211 if (Item == null) 212 return string.Empty; 213 else 214 return Item.Name; 215 } 196 216 set { Item.Name = value; } 197 217 }
Note: See TracChangeset
for help on using the changeset viewer.