private void openWithDifftoolToolStripMenuItem_DropDownOpening(object sender, EventArgs e) { ContextMenuDiffToolInfo selectionInfo = GetContextMenuDiffToolInfo(); aBToolStripMenuItem.Enabled = _revisionDiffController.ShouldShowMenuAB(selectionInfo); aLocalToolStripMenuItem.Enabled = _revisionDiffController.ShouldShowMenuALocal(selectionInfo); bLocalToolStripMenuItem.Enabled = _revisionDiffController.ShouldShowMenuBLocal(selectionInfo); parentOfALocalToolStripMenuItem.Enabled = _revisionDiffController.ShouldShowMenuAParentLocal(selectionInfo); parentOfBLocalToolStripMenuItem.Enabled = _revisionDiffController.ShouldShowMenuBParentLocal(selectionInfo); parentOfALocalToolStripMenuItem.Visible = parentOfALocalToolStripMenuItem.Enabled || _revisionDiffController.ShouldShowMenuAParent(selectionInfo); parentOfBLocalToolStripMenuItem.Visible = parentOfBLocalToolStripMenuItem.Enabled || _revisionDiffController.ShouldShowMenuBParent(selectionInfo); }
private void openWithDifftoolToolStripMenuItem_DropDownOpening(object sender, EventArgs e) { ContextMenuDiffToolInfo selectionInfo = GetContextMenuDiffToolInfo(); aBToolStripMenuItem.Enabled = _revisionDiffController.ShouldShowMenuAB(selectionInfo); aLocalToolStripMenuItem.Enabled = _revisionDiffController.ShouldShowMenuALocal(selectionInfo); bLocalToolStripMenuItem.Enabled = _revisionDiffController.ShouldShowMenuBLocal(selectionInfo); parentOfALocalToolStripMenuItem.Enabled = _revisionDiffController.ShouldShowMenuAParentLocal(selectionInfo); parentOfBLocalToolStripMenuItem.Enabled = _revisionDiffController.ShouldShowMenuBParentLocal(selectionInfo); //Nothing preventing to show the parents (as done in FormDiff) parentOfALocalToolStripMenuItem.Visible = parentOfBLocalToolStripMenuItem.Visible = _revisionDiffController.ShouldShowMenuParents(selectionInfo); }