Пример #1
0
 private void btnProfile_Click(object sender, EventArgs e)
 {
     // Show the logged in user's name and email address. FLAG 4!
     try
     {
         MessageBox.Show("Username: "******"\n" + "Email ID: " + ClientConnect.ViewProfile(serverAddress, serverPort, loggedInUser));
     }
     catch (System.Net.Sockets.SocketException)
     {
         MessageBox.Show("Could not connect to the server!", "Error!");
     }
 }