示例#1
0
 private void utID_Send(object sender, EventArgs e)
 {
     if (this.utIDTextBox.Text.Contains("?"))     // ? is the last character
     {
         String utIDNumber = this.utIDTextBox.Text.Substring(1);
         utIDNumber = utIDNumber.Substring(0, this.utIDTextBox.Text.IndexOf("=") - 1);
         Console.Write(utIDNumber);
         if (userExists(utIDNumber))
         {
             //TODO: Write to Google Docs Sheet
             markMemberAttended(utIDNumber);
         }
         else
         {
             //TODO: OPEN NEW FORM & GET EID, FIRST, LAST
             UserNotFound noID = new UserNotFound(utIDNumber);
             noID.Show();
         }
         this.utIDTextBox.Clear();
     }
 }
示例#2
0
        private void noID_Click(object sender, EventArgs e)
        {
            UserNotFound noID = new UserNotFound();

            noID.Show();
        }