- Timestamp:
- 11/19/09 15:49:02 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/ViewBase.cs
r2464 r2509 30 30 31 31 namespace HeuristicLab.MainForm.WindowsForms { 32 public partial class ViewBase : UserControl, IView { 32 public partial class ViewBase : UserControl, IView { 33 private bool initialized; 33 34 public ViewBase() { 34 35 InitializeComponent(); 36 this.initialized = false; 35 37 } 36 38 … … 63 65 public virtual void OnClosed(object sender, EventArgs e) { 64 66 } 67 68 protected event EventHandler Initialized; 69 70 private void ViewBase_Load(object sender, EventArgs e) { 71 if (!this.initialized && !this.DesignMode) { 72 if (this.Initialized != null) 73 this.Initialized(this, new EventArgs()); 74 this.initialized = true; 75 } 76 } 65 77 } 66 78 }
Note: See TracChangeset
for help on using the changeset viewer.