Changeset 2712
- Timestamp:
- 01/29/10 01:41:59 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/ContentView.Designer.cs
r2696 r2712 11 11 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> 12 12 protected override void Dispose(bool disposing) { 13 if (disposing && (components != null)) { 14 components.Dispose(); 13 if (disposing) { 14 if (Content != null) DeregisterContentEvents(); 15 if (components != null) components.Dispose(); 15 16 } 16 17 base.Dispose(disposing); -
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/ContentView.cs
r2696 r2712 30 30 31 31 namespace HeuristicLab.MainForm.WindowsForms { 32 public partial class ContentView : View {32 public partial class ContentView : View, IContentView { 33 33 public ContentView() 34 34 : base() { … … 51 51 } else { 52 52 if (this.content != value) { 53 if (this.content != null) 54 this.DeregisterObjectEvents(); 53 if (this.content != null) this.DeregisterContentEvents(); 55 54 this.content = value; 56 this.OnContentChanged(new EventArgs()); 57 if (this.content != null) 58 this.RegisterObjectEvents(); 55 this.OnContentChanged(); 56 if (this.content != null) this.RegisterContentEvents(); 59 57 } 60 58 } … … 65 63 /// Adds eventhandlers to the current instance. 66 64 /// </summary> 67 protected virtual void Register ObjectEvents() {65 protected virtual void RegisterContentEvents() { 68 66 } 69 67 … … 71 69 /// Removes the eventhandlers from the current instance. 72 70 /// </summary> 73 protected virtual void Deregister ObjectEvents() {71 protected virtual void DeregisterContentEvents() { 74 72 } 75 73 … … 77 75 /// Is called when the content property changes. 78 76 /// </summary> 79 protected virtual void OnContentChanged( EventArgs e) {77 protected virtual void OnContentChanged() { 80 78 } 81 82 79 } 83 80 } -
trunk/sources/HeuristicLab.MainForm/3.2/HeuristicLab.MainForm-3.2.csproj
r2704 r2712 81 81 </ItemGroup> 82 82 <ItemGroup> 83 <Compile Include="Interfaces\IContentView.cs" /> 83 84 <Compile Include="Interfaces\IActionUserInterfaceItem.cs" /> 84 85 <Compile Include="Interfaces\IPositionableUserInterfaceItem.cs" />
Note: See TracChangeset
for help on using the changeset viewer.