예제 #1
0
 private void LoginToServer()
 {
     if (txtUsername.Text.Trim() == "")
     {
         MessageBox.Show(i18n.GetText("FieldBlank", i18n.GetText("labelUsername")), i18n.GetText("invalidusername"), MessageBoxButtons.OK);
     }
     else
     {
         client.Username = txtUsername.Text.Trim();
         client.ConnectToServer();
     }
 }