Skip to content

Commit 4d52169

Browse files
committed
Reorder
1 parent 6402eaa commit 4d52169

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

src/SignToolGUI/Forms/MainForm.cs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2152,6 +2152,25 @@ private void linkLabelOpenTrustedSigningPortal_LinkClicked(object sender, LinkLa
21522152
}
21532153
}
21542154

2155+
private void linkLabelReadMoreTrustedSigning_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
2156+
{
2157+
try
2158+
{
2159+
Process.Start(Globals.ToolStings.URLAzurePortalTrustedSigning);
2160+
2161+
// Log the opening of the URL message
2162+
Message("User clicked the 'Read more' link for Trusted Signing to open the URL: '" + Globals.ToolStings.URLMicrosoftLearnTrustedSigning + "'", EventType.Information, 1052);
2163+
}
2164+
catch (Exception ex)
2165+
{
2166+
// Show an error message if the URL could not be opened
2167+
MessageBox.Show(@"Failed to open the URL '" + Globals.ToolStings.URLAzurePortalTrustedSigning + "'. Error: " + ex.Message, @"Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
2168+
2169+
// Log the error message
2170+
Message("Failed to open the URL: " + ex.Message, EventType.Error, 1041);
2171+
}
2172+
}
2173+
21552174
private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
21562175
{
21572176
// Log the user's action to open the About form
@@ -3240,24 +3259,5 @@ private void ExportCommandScript()
32403259
Message("Failed to export command script: " + ex.Message, EventType.Error, 20101);
32413260
}
32423261
}
3243-
3244-
private void linkLabelReadMoreTrustedSigning_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
3245-
{
3246-
try
3247-
{
3248-
Process.Start(Globals.ToolStings.URLAzurePortalTrustedSigning);
3249-
3250-
// Log the opening of the URL message
3251-
Message("User clicked the 'Read more' link for Trusted Signing to open the URL: '" + Globals.ToolStings.URLMicrosoftLearnTrustedSigning + "'", EventType.Information, 1052);
3252-
}
3253-
catch (Exception ex)
3254-
{
3255-
// Show an error message if the URL could not be opened
3256-
MessageBox.Show(@"Failed to open the URL '" + Globals.ToolStings.URLAzurePortalTrustedSigning + "'. Error: " + ex.Message, @"Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
3257-
3258-
// Log the error message
3259-
Message("Failed to open the URL: " + ex.Message, EventType.Error, 1041);
3260-
}
3261-
}
32623262
}
32633263
}

0 commit comments

Comments
 (0)