Skip to content

Commit 97a1319

Browse files
committed
Enhance TimestampServerManagementForm UI and logic
- Adjusted `progressBar` and `labelInstructions` layout for better alignment. - Modified button behavior to disable `buttonTest` and `buttonTestAll` in Trusted Signing mode.
1 parent 15df0c5 commit 97a1319

3 files changed

Lines changed: 51 additions & 35 deletions

File tree

src/SignToolGUI/Forms/TimestampServerManagementForm.Designer.cs

Lines changed: 33 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/SignToolGUI/Forms/TimestampServerManagementForm.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,20 @@ private void UpdateButtonStates()
7878

7979
buttonEdit.Enabled = hasSelection;
8080
buttonRemove.Enabled = hasSelection;
81-
buttonTest.Enabled = hasSelection;
81+
82+
// Disable testing if in Trusted Signing mode
83+
if (_isTrustedSigning)
84+
{
85+
buttonTestAll.Enabled = false;
86+
buttonTest.Enabled = false;
87+
}
88+
else
89+
{
90+
buttonTestAll.Enabled = hasSelection;
91+
buttonTest.Enabled = hasSelection;
92+
}
93+
94+
//buttonTest.Enabled = hasSelection;
8295
buttonMoveUp.Enabled = hasSelection && selectedIndex > 0;
8396
buttonMoveDown.Enabled = hasSelection && selectedIndex < listViewServers.Items.Count - 1;
8497
buttonApply.Enabled = _isModified; // This should enable/disable based on modifications

src/SignToolGUI/Forms/TimestampServerManagementForm.resx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@
117117
<resheader name="writer">
118118
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119119
</resheader>
120+
<data name="labelInstructions.Text" xml:space="preserve">
121+
<value>Manage timestamp servers and their priorities. Higher priority servers (lower numbers) are tried first.
122+
For Trusted Signing - use the Region your Trusted Signing Account is located - else you will get error.</value>
123+
</data>
120124
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
121125
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
122126
<value>

0 commit comments

Comments
 (0)