Changeset 7048
- Timestamp:
- 11/23/11 00:06:49 (13 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
r6976 r7048 150 150 151 151 #region INamedItem Members 152 public abstract bool CanChangeDescription { get; }152 public abstract new bool CanChangeDescription { get; } 153 153 154 public abstract bool CanChangeName { get; }154 public abstract new bool CanChangeName { get; } 155 155 156 public abstract string Description { get; set; }156 public abstract new string Description { get; set; } 157 157 158 public abstract string Name { get; set; }158 public abstract new string Name { get; set; } 159 159 #endregion 160 160 161 161 #region Events 162 public event EventHandler DescriptionChanged;163 protected virtual void OnDescriptionChanged() {164 var handler = DescriptionChanged;165 if (handler != null) handler(this, EventArgs.Empty);166 }167 public event EventHandler ItemImageChanged;168 protected virtual void OnItemImageChanged() {169 var handler = ItemImageChanged;170 if (handler != null) handler(this, EventArgs.Empty);171 }172 public event EventHandler ToStringChanged;173 protected virtual void OnToStringChanged() {174 var handler = ToStringChanged;175 if (handler != null) handler(this, EventArgs.Empty);176 }177 public event EventHandler NameChanged;178 protected virtual void OnNameChanged() {179 var handler = NameChanged;180 if (handler != null) handler(this, EventArgs.Empty);181 }182 public event EventHandler<CancelEventArgs<string>> NameChanging;183 protected virtual void OnNameChanging(string value, bool cancel) {184 var handler = NameChanging;185 if (handler != null) handler(this, new CancelEventArgs<string>(value, cancel));186 }187 162 public event EventHandler ExecutionTimeChanged; 188 163 protected virtual void OnExecutionTimeChanged() { … … 198 173 199 174 #region IItem Members 200 public virtual string ItemDescription {175 public virtual new string ItemDescription { 201 176 get { return item.ItemDescription; } 202 177 } 203 178 204 public virtual Image ItemImage { 179 public virtual new Image ItemImage 180 { 205 181 get { return item.ItemImage; } 206 182 } 207 183 208 public virtual string ItemName { 184 public virtual new string ItemName 185 { 209 186 get { return item.ItemName; } 210 187 } 211 188 212 public virtual Version ItemVersion { 189 public virtual new Version ItemVersion 190 { 213 191 get { return item.ItemVersion; } 214 192 } -
trunk/sources/HeuristicLab.Clients.Hive/3.3/Tasks/OptimizerTask.cs
r6976 r7048 142 142 143 143 protected void optimizer_NameChanging(object sender, CancelEventArgs<string> e) { 144 this.OnNameChanging(e.Value, e.Cancel);144 OnNameChanging(new CancelEventArgs<string>(e.Value, e.Cancel)); 145 145 } 146 146
Note: See TracChangeset
for help on using the changeset viewer.