Allow non-digit characters in devicename
This commit is contained in:
parent
2e489a42a9
commit
cb918ca570
|
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user