wpf sucks v2
This commit is contained in:
@@ -22,11 +22,13 @@ namespace Client
|
||||
public Client()
|
||||
{
|
||||
this.tcpClient = new TcpClient();
|
||||
Debug.WriteLine("Starting connect to server");
|
||||
tcpClient.BeginConnect("localhost", Port, new AsyncCallback(OnConnect), null);
|
||||
}
|
||||
|
||||
private void OnConnect(IAsyncResult ar)
|
||||
{
|
||||
Debug.Write("finished connecting to server");
|
||||
this.tcpClient.EndConnect(ar);
|
||||
this.stream = tcpClient.GetStream();
|
||||
this.stream.BeginRead(buffer, 0, buffer.Length, new AsyncCallback(OnReadComplete),null);
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace Client
|
||||
_model = new Model();
|
||||
ButtonCommand = new RelayCommand(() =>
|
||||
{
|
||||
ClickCheck();
|
||||
Client client = new Client();
|
||||
});
|
||||
|
||||
_lobbies = new List<Lobby>();
|
||||
|
||||
Reference in New Issue
Block a user