Allow non-digit characters in devicename

This commit is contained in:
AtelierWindows\SilicaAndPina 2019-01-04 22:26:13 +13:00
parent 2e489a42a9
commit cb918ca570
1 changed files with 2 additions and 3 deletions

View File

@ -136,6 +136,7 @@ namespace LocalPSM_
}
private void LicenseGen_Click(object sender, EventArgs e)
{
KeyGen.Enabled = false;
DevName.Enabled = false;
Unity.Enabled = false;
@ -160,6 +161,7 @@ namespace LocalPSM_
DevName.Enabled = true;
Unity.Enabled = true;
LicenseGen.Enabled = true;
DevName_TextChanged(null, null);
MessageBox.Show("Refreshed License Created!", "Done", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
@ -331,9 +333,6 @@ namespace LocalPSM_
{
KeyGen.Enabled = false;
}
int i = DevName.SelectionStart;
DevName.Text = new String(DevName.Text.Where(char.IsDigit).ToArray());
DevName.SelectionStart = i;
}