From 1bc610751a594723d9111fb979a0bea4e8531e7c Mon Sep 17 00:00:00 2001 From: alcexhim Date: Tue, 22 Jul 2014 15:34:47 -0400 Subject: [PATCH] Use AttachCommandEventHandler in case someone decides to remove those commands in the configuration --- .../WindowsFormsEngine.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/WindowsFormsEngine.cs b/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/WindowsFormsEngine.cs index b08cdb21..0c3c8ccc 100644 --- a/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/WindowsFormsEngine.cs +++ b/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/WindowsFormsEngine.cs @@ -26,15 +26,15 @@ namespace UniversalEditor.UserInterface.WindowsForms { base.AfterInitialization(); - Commands["HelpLicensingAndActivation"].Executed += delegate(object sender, EventArgs e) + AttachCommandEventHandler("HelpLicensingAndActivation", delegate(object sender, EventArgs e) { MessageBox.Show("This product has already been activated.", "Licensing and Activation", MessageBoxButtons.OK, MessageBoxIcon.Information); - }; - Commands["HelpAboutPlatform"].Executed += delegate(object sender, EventArgs e) + }); + AttachCommandEventHandler("HelpAboutPlatform", delegate(object sender, EventArgs e) { AboutDialog dlg = new AboutDialog(); dlg.ShowDialog(); - }; + }); } protected override void InitializeBranding()