Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/13/09 10:58:31 (14 years ago)
Author:
mkommend
Message:

initial version of refactored mainform (ticket #771)

Location:
branches/Mainform refactoring/HeuristicLab.MainForm.WindowsForms
Files:
2 added
1 copied

Legend:

Unmodified
Added
Removed
  • branches/Mainform refactoring/HeuristicLab.MainForm.WindowsForms/3.2/ViewBase.cs

    r2420 r2426  
    2929using System.Windows.Forms;
    3030
    31 namespace HeuristicLab.MainForm {
     31namespace HeuristicLab.MainForm.WindowsForms {
    3232  public partial class ViewBase : UserControl,IView {
    3333    public ViewBase() {
    3434      InitializeComponent();
    35     }
    36 
    37     public ViewBase(IMainForm mainForm)
    38       : this() {
    39       this.mainForm = mainForm;
    4035    }
    4136
     
    5752    }
    5853
    59     public event EventHandler StateChanged;
    60     protected virtual void OnStateChanged() {
    61       if (StateChanged != null)
    62         StateChanged(this, new EventArgs());
     54    public event EventHandler Changed;
     55    protected virtual void OnChanged() {
     56      if (Changed != null)
     57        Changed(this, new EventArgs());
    6358    }
    6459
    65     private IMainForm mainForm;
    66     public IMainForm MainForm {
    67       get { return this.mainForm; }
    68       set { this.mainForm = value; }
     60    public virtual void OnClosing(object sender, CancelEventArgs e) {
    6961    }
    7062
    71     public virtual void FormClosing(object sender, FormClosingEventArgs e) {
     63    public virtual void OnClosed(object sender, EventArgs e) {
    7264    }
    7365  }
Note: See TracChangeset for help on using the changeset viewer.