Example #1
0
 private void edtUserCode_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         if (((TextBox)sender).Text.Equals("0000admin"))
         {
             Form frmOptions = new FormOptions();
             frmOptions.ShowDialog();
         }
         else
         {
             InitLogin(((TextBox)sender).Text);
         }
     }
 }
Example #2
0
 private void edtUserCode_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         if (((TextBox)sender).Text.Equals("0000admin"))
         {
             Form frmOptions = new FormOptions();
             frmOptions.ShowDialog();
         }
         else
         {
             InitLogin(((TextBox)sender).Text);
         }
     }
 }