Use AttachCommandEventHandler in case someone decides to remove those commands in the configuration

This commit is contained in:
Michael Becker 2014-07-22 15:34:47 -04:00
parent 4519dabaa7
commit 1bc610751a

View File

@ -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()