Ignore:
Timestamp:
02/19/16 11:08:00 (5 years ago)
Author:
pfleck
Message:

#1235
Added an AllowContexMenu property in the DockingMainForm to be able to enable/disable the context menu.
Changing the property will only affect DockForms after the change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/MainForms/DockingMainForm.cs

    r12012 r13628  
    2525namespace HeuristicLab.MainForm.WindowsForms {
    2626  public partial class DockingMainForm : MainForm {
     27
     28    public bool AllowContexMenu { get; set; }
     29
    2730    public DockingMainForm()
    2831      : base() {
    2932      InitializeComponent();
     33      AllowContexMenu = true;
    3034    }
    3135    public DockingMainForm(Type userInterfaceItemType)
    3236      : base(userInterfaceItemType) {
    3337      InitializeComponent();
     38      AllowContexMenu = true;
    3439    }
    3540    public DockingMainForm(Type userInterfaceItemType, bool showContentInViewHost)
     
    6065
    6166    protected override Form CreateForm(IView view) {
    62       return new DockForm(view);
     67      return new DockForm(view, AllowContexMenu);
    6368    }
    6469
Note: See TracChangeset for help on using the changeset viewer.