Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/30/10 13:07:31 (14 years ago)
Author:
mkommend
Message:

added Sidebar class and adapted Clipboard and OperatorSidebar (ticket #972)

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  
    3131namespace HeuristicLab.Core.Views {
    3232  [View("Clipboard")]
    33   public sealed partial class Clipboard<T> : HeuristicLab.MainForm.WindowsForms.View where T : class, IItem {
     33  public sealed partial class Clipboard<T> : HeuristicLab.MainForm.WindowsForms.Sidebar where T : class, IItem {
    3434    private TypeSelectorDialog typeSelectorDialog;
    3535    private Dictionary<T, ListViewItem> itemListViewItemTable;
     
    8282      SetEnabledStateOfControls();
    8383    }
    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     }
    9184
    9285    private void SetEnabledStateOfControls() {
  • trunk/sources/HeuristicLab.Core.Views/3.3/OperatorsSidebar.cs

    r3190 r3571  
    2626namespace HeuristicLab.Core.Views {
    2727  [View("Operators Sidebar")]
    28   public partial class OperatorsSidebar : HeuristicLab.MainForm.WindowsForms.View {
     28  public partial class OperatorsSidebar : HeuristicLab.MainForm.WindowsForms.Sidebar {
    2929    public OperatorsSidebar() {
    3030      InitializeComponent();
     
    3535      typeSelector.Configure(typeof(IOperator), false, false);
    3636    }
    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     }
    4437  }
    4538}
Note: See TracChangeset for help on using the changeset viewer.