Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2350 for trunk


Ignore:
Timestamp:
09/14/09 14:27:16 (15 years ago)
Author:
mkommend
Message:

corrected usage of new and override keywords for inherited properties from control or form in MainFormBase (ticket #716)

Location:
trunk/sources/HeuristicLab.MainForm/3.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm/3.2/Interfaces/IMainForm.cs

    r2338 r2350  
    3333    bool StatusStripProgressBarVisible { get; set; }
    3434
    35     Icon Icon { get; set; }
    3635    Cursor Cursor { get; set; }
    3736
  • trunk/sources/HeuristicLab.MainForm/3.2/MainFormBase.cs

    r2348 r2350  
    8383    }
    8484
    85     public new Cursor Cursor {
     85    public override Cursor Cursor {
    8686      get { return base.Cursor; }
    8787      set {
     
    9191        } else
    9292          base.Cursor = value;
    93       }
    94     }
    95 
    96     public new Icon Icon {
    97       get { return base.Icon; }
    98       set {
    99         if (InvokeRequired) {
    100           Action<Icon> action = delegate(Icon i) { this.Icon = i; };
    101           Invoke(action, new object[] { value });
    102         } else
    103           base.Icon = value;
    10493      }
    10594    }
Note: See TracChangeset for help on using the changeset viewer.