- Timestamp:
- 10/13/09 10:58:31 (15 years ago)
- 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 29 29 using System.Windows.Forms; 30 30 31 namespace HeuristicLab.MainForm {31 namespace HeuristicLab.MainForm.WindowsForms { 32 32 public partial class ViewBase : UserControl,IView { 33 33 public ViewBase() { 34 34 InitializeComponent(); 35 }36 37 public ViewBase(IMainForm mainForm)38 : this() {39 this.mainForm = mainForm;40 35 } 41 36 … … 57 52 } 58 53 59 public event EventHandler StateChanged;60 protected virtual void On StateChanged() {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()); 63 58 } 64 59 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) { 69 61 } 70 62 71 public virtual void FormClosing(object sender, FormClosingEventArgs e) {63 public virtual void OnClosed(object sender, EventArgs e) { 72 64 } 73 65 }
Note: See TracChangeset
for help on using the changeset viewer.