Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7048 for trunk/sources


Ignore:
Timestamp:
11/23/11 00:06:49 (13 years ago)
Author:
ascheibe
Message:

#1672

  • removed duplicate events
  • got rid of compiler warnings
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  
    150150
    151151    #region INamedItem Members
    152     public abstract bool CanChangeDescription { get; }
     152    public abstract new bool CanChangeDescription { get; }
    153153
    154     public abstract bool CanChangeName { get; }
     154    public abstract new bool CanChangeName { get; }
    155155
    156     public abstract string Description { get; set; }
     156    public abstract new string Description { get; set; }
    157157
    158     public abstract string Name { get; set; }
     158    public abstract new string Name { get; set; }
    159159    #endregion
    160160
    161161    #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     }
    187162    public event EventHandler ExecutionTimeChanged;
    188163    protected virtual void OnExecutionTimeChanged() {
     
    198173
    199174    #region IItem Members
    200     public virtual string ItemDescription {
     175    public virtual new string ItemDescription {
    201176      get { return item.ItemDescription; }
    202177    }
    203178
    204     public virtual Image ItemImage {
     179    public virtual new Image ItemImage
     180    {
    205181      get { return item.ItemImage; }
    206182    }
    207183
    208     public virtual string ItemName {
     184    public virtual new string ItemName
     185    {
    209186      get { return item.ItemName; }
    210187    }
    211188
    212     public virtual Version ItemVersion {
     189    public virtual new Version ItemVersion
     190    {
    213191      get { return item.ItemVersion; }
    214192    }
  • trunk/sources/HeuristicLab.Clients.Hive/3.3/Tasks/OptimizerTask.cs

    r6976 r7048  
    142142
    143143    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));
    145145    }
    146146
Note: See TracChangeset for help on using the changeset viewer.