Index: src/DeltaShell/DeltaShell.Gui/Forms/ViewManager/ViewSelectionContextMenuController.cs =================================================================== diff -u -r8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9 -r5fc71a385897af92ccb092f2f969b5709afab85a --- src/DeltaShell/DeltaShell.Gui/Forms/ViewManager/ViewSelectionContextMenuController.cs (.../ViewSelectionContextMenuController.cs) (revision 8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9) +++ src/DeltaShell/DeltaShell.Gui/Forms/ViewManager/ViewSelectionContextMenuController.cs (.../ViewSelectionContextMenuController.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a) @@ -11,14 +11,14 @@ private IView selectedView; private IViewList viewManager; - public new ContextMenuStrip ContextMenuStrip { get; private set; } - public ViewSelectionContextMenuController() { InitializeComponent(); - this.ContextMenuStrip = this.contextMenuStrip; + ContextMenuStrip = contextMenuStrip; } + public new ContextMenuStrip ContextMenuStrip { get; private set; } + public bool ContextMenuStripValidate(IView view, IViewList viewManager) { this.viewManager = viewManager; @@ -38,7 +38,7 @@ var lockable = selectedView as IReusableView; menuItemLockUnlock.Visible = lockable != null; - + if (lockable != null) { if (lockable.Locked) @@ -48,12 +48,12 @@ } else { - menuItemLockUnlock.Text =Resources.ViewSelectionContextMenuController_UpdateMenuItemsValidity_Lock; - menuItemLockUnlock.Image = Properties.Resources.lock_edit; + menuItemLockUnlock.Text = Resources.ViewSelectionContextMenuController_UpdateMenuItemsValidity_Lock; + menuItemLockUnlock.Image = Resources.lock_edit; } } } - + private void MenuItemCloseClick(object sender, EventArgs e) { viewManager.Remove(selectedView); @@ -71,7 +71,7 @@ private void LockToolStripMenuItemClick(object sender, EventArgs e) { - ((IReusableView)selectedView).Locked = !((IReusableView)selectedView).Locked; + ((IReusableView) selectedView).Locked = !((IReusableView) selectedView).Locked; } } } \ No newline at end of file