- Timestamp:
- 02/19/16 11:08:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/MainForms/DockForm.cs
r13614 r13628 32 32 /// </summary> 33 33 internal partial class DockForm : DockContent { 34 public DockForm(IView view ) {34 public DockForm(IView view, bool allowContextMenu) { 35 35 InitializeComponent(); 36 36 this.view = view; 37 this.allowContextMenu = allowContextMenu; 38 37 39 if (view != null) { 38 40 if (view is UserControl) { … … 90 92 get { return this.view; } 91 93 } 94 private readonly bool allowContextMenu; 92 95 93 96 private void UpdateText() { … … 117 120 #region Context Menu Events 118 121 private void contextMenuStrip_Opening(object sender, System.ComponentModel.CancelEventArgs e) { 122 if (!allowContextMenu) { 123 e.Cancel = true; 124 return; 125 } 126 119 127 var contentView = View as IContentView; 120 128 var content = contentView != null ? contentView.Content : null;
Note: See TracChangeset
for help on using the changeset viewer.