Revert "refactor: MainForm change Enabled to change State"

This reverts commit abfae4a9a0.
This commit is contained in:
ChsBuffer
2020-10-23 12:33:52 +08:00
parent c50eb32828
commit bcb220bc4b
2 changed files with 9 additions and 14 deletions

View File

@@ -334,7 +334,7 @@ namespace Netch.Forms
private async void SpeedPictureBox_Click(object sender, EventArgs e)
{
State = State.Starting;
Enabled = false;
StatusText(i18N.Translate("Testing"));
try
{
@@ -342,7 +342,7 @@ namespace Netch.Forms
}
finally
{
State = State.Stopped;
Enabled = true;
StatusText(i18N.Translate("Test done"));
Refresh();
}