Changeset 3571 for trunk/sources/HeuristicLab.Core.Views/3.3
- Timestamp:
- 04/30/10 13:07:31 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Core.Views/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/Clipboard.cs
r3557 r3571 31 31 namespace HeuristicLab.Core.Views { 32 32 [View("Clipboard")] 33 public sealed partial class Clipboard<T> : HeuristicLab.MainForm.WindowsForms. Viewwhere T : class, IItem {33 public sealed partial class Clipboard<T> : HeuristicLab.MainForm.WindowsForms.Sidebar where T : class, IItem { 34 34 private TypeSelectorDialog typeSelectorDialog; 35 35 private Dictionary<T, ListViewItem> itemListViewItemTable; … … 82 82 SetEnabledStateOfControls(); 83 83 } 84 protected override void OnClosing(FormClosingEventArgs e) {85 base.OnClosing(e);86 if (e.CloseReason == CloseReason.UserClosing) {87 e.Cancel = true;88 this.Hide();89 }90 }91 84 92 85 private void SetEnabledStateOfControls() { -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorsSidebar.cs
r3190 r3571 26 26 namespace HeuristicLab.Core.Views { 27 27 [View("Operators Sidebar")] 28 public partial class OperatorsSidebar : HeuristicLab.MainForm.WindowsForms. View{28 public partial class OperatorsSidebar : HeuristicLab.MainForm.WindowsForms.Sidebar { 29 29 public OperatorsSidebar() { 30 30 InitializeComponent(); … … 35 35 typeSelector.Configure(typeof(IOperator), false, false); 36 36 } 37 protected override void OnClosing(FormClosingEventArgs e) {38 base.OnClosing(e);39 if (e.CloseReason == CloseReason.UserClosing) {40 e.Cancel = true;41 this.Hide();42 }43 }44 37 } 45 38 }
Note: See TracChangeset
for help on using the changeset viewer.