From cc1ca6fa6083f20fc6d2350fd363ae0779f8c7f2 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Wed, 12 Feb 2020 00:50:34 -0500 Subject: [PATCH] this is just to show off the TaskDialog in UWT-WF (and a pretty good 'fake' rendition in GTK, too) --- .../UniversalEditor.UserInterface/Engine.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs b/CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs index 56418044..d486a72e 100644 --- a/CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs +++ b/CSharp/Libraries/UniversalEditor.UserInterface/Engine.cs @@ -598,7 +598,17 @@ namespace UniversalEditor.UserInterface #region Help Application.AttachCommandEventHandler("HelpLicensingAndActivation", delegate (object sender, EventArgs e) { - MessageDialog.ShowDialog("This product has already been activated.", "Licensing and Activation", MessageDialogButtons.OK, MessageDialogIcon.Information); + // MessageDialog.ShowDialog("This product has already been activated.", "Licensing and Activation", MessageDialogButtons.OK, MessageDialogIcon.Information); + TaskDialog td = new TaskDialog(); + td.ButtonStyle = TaskDialogButtonStyle.Commands; + + td.Prompt = "This product has already been activated."; + td.Text = "Licensing and Activation"; + td.Content = "You are using the GNU GPLv3 licensed version of Universal Editor. No activation is necessary."; + + td.Icon = TaskDialogIcon.SecurityOK; + td.Parent = (Window)CurrentEngine.LastWindow; + td.ShowDialog(); }); Application.AttachCommandEventHandler("HelpAboutPlatform", delegate(object sender, EventArgs e) {