Exemple #1
0
 private void ButtonConnectClick(object sender, EventArgs e)
 {
     groupConnect.Enabled = false;
     if (!Client.Connect(IPADDRESS, PORT))
     {
         groupConnect.Enabled = true;
         textBoxEmail.Select();
         MessageBox.Show("Failed to connect to server.");
         return;
     }
     Client.WritePacket(
         new Packet(
             "LOGIN REQUEST",
             DataMap.Serialize(
                 new List <string>
     {
         textBoxEmail.Text, textBoxPassword.Text
     })));
 }
Exemple #2
0
 public static string Package(this List <string> raw)
 {
     return(DataMap.Serialize(raw));
 }