public MainPage() { this.InitializeComponent(); _client = new SocketClient(); _client.OnDataReceive += Socket_OnDataRecive; _client.OnError += Socket_OnError; }
private void Socket_OnDataRecive(SocketClient sender, string args) { txbMessageRecived.Text = args; }
private void Socket_OnError(SocketClient sender, string args) { NotifyUser(args); }