private void _fileBrowser_FileClick(object sender, PathMouseEventArgs e) { if (e.Button != MouseButtons.Right) { return; } _deleteFileMenuItem.Enabled = _fileBrowser.CanDelete; _renameFileMenuItem.Enabled = _fileBrowser.CanRename; _fileContextMenu.Show(_fileBrowser, e.Location); }
private void _directoryBrowser_DirectoryClick(object sender, PathMouseEventArgs e) { if (e.Button != MouseButtons.Right) { return; } _addFolderMenuItem.Enabled = _directoryBrowser.CanAdd; _deleteFolderMenuItem.Enabled = _directoryBrowser.CanDelete; _renameFolderMenuItem.Enabled = _directoryBrowser.CanRename; _directoryContextMenu.Show(_directoryBrowser, e.Location); }