private void button4_Click(object sender, RoutedEventArgs e) { SelectedSocket.IsConnected = true; SelectedSocket.ClientSocket = SocketHelper.ConnectServer(SelectedSocket.IP, port, new AsyncCallback(CallBack)); }