示例#1
0
 private void UniqueID_TextChanged(object sender, EventArgs e)
 {
     if (UniqueID.MaskFull)
     {
         bool result = KeyMeetsCriteria(UniqueID.Text);
         if (result)
         {
             StatusMessage.ForeColor = Color.White;
             StatusMessage.Text      = "";
             UniqueID.ForeColor      = Color.LightGreen;
             UniqueID.ReadOnly       = true;
             StatusMessage.Focus();
             phase = 3;
             IntroTimer.Start();
         }
         else
         {
             StatusMessage.ForeColor = Color.LightCoral;
             StatusMessage.Text      = "Invalid Unique Identifier.";
         }
     }
     else
     {
         StatusMessage.ForeColor = Color.White;
         StatusMessage.Text      = "";
     }
 }