From 180553165d87e43c6bca8ebe0c26f27e2dba6f9a Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Sat, 9 Nov 2019 23:06:14 -0500 Subject: [PATCH] attach context menu event handlers in a per-Context manner to prevent collisions between two similar (type-identical) editors --- .../Editors/FileSystem/FileSystemEditor.Designer.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CSharp/Libraries/UniversalEditor.UserInterface/Editors/FileSystem/FileSystemEditor.Designer.cs b/CSharp/Libraries/UniversalEditor.UserInterface/Editors/FileSystem/FileSystemEditor.Designer.cs index 0e737ee8..e76758e2 100644 --- a/CSharp/Libraries/UniversalEditor.UserInterface/Editors/FileSystem/FileSystemEditor.Designer.cs +++ b/CSharp/Libraries/UniversalEditor.UserInterface/Editors/FileSystem/FileSystemEditor.Designer.cs @@ -43,12 +43,12 @@ namespace UniversalEditor.Editors.FileSystem this.tv.SelectionMode = SelectionMode.Multiple; this.tv.Model = this.tmTreeView; - Application.AttachCommandEventHandler("FileSystemContextMenu_Add_ExistingFolder", FileAddExistingFolder_Click); - Application.AttachCommandEventHandler("FileSystemContextMenu_Add_FilesFromFolder", FileAddItemsFromFolder_Click); - Application.AttachCommandEventHandler("FileSystemContextMenu_New_Folder", FileNewFolder_Click); + Context.AttachCommandEventHandler("FileSystemContextMenu_Add_ExistingFolder", FileAddExistingFolder_Click); + Context.AttachCommandEventHandler("FileSystemContextMenu_Add_FilesFromFolder", FileAddItemsFromFolder_Click); + Context.AttachCommandEventHandler("FileSystemContextMenu_New_Folder", FileNewFolder_Click); // Application.AttachCommandEventHandler("EditDelete", ContextMenuDelete_Click); - Application.AttachCommandEventHandler("FileSystemContextMenu_Rename", ContextMenuRename_Click); - Application.AttachCommandEventHandler("FileSystemContextMenu_CopyTo", ContextMenuCopyTo_Click); + Context.AttachCommandEventHandler("FileSystemContextMenu_Rename", ContextMenuRename_Click); + Context.AttachCommandEventHandler("FileSystemContextMenu_CopyTo", ContextMenuCopyTo_Click); // Application.AttachCommandEventHandler("FileProperties", ContextMenuProperties_Click); this.tv.BeforeContextMenu += tv_BeforeContextMenu;