Changeset 2509 for trunk/sources
- Timestamp:
- 11/19/09 15:49:02 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/ViewBase.Designer.cs
r2461 r2509 45 45 /// </summary> 46 46 private void InitializeComponent() { 47 components = new System.ComponentModel.Container(); 47 this.SuspendLayout(); 48 // 49 // ViewBase 50 // 51 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 48 52 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 53 this.Name = "ViewBase"; 54 this.Load += new System.EventHandler(this.ViewBase_Load); 55 this.ResumeLayout(false); 56 49 57 } 50 58 -
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.