public void LoginButton_Click(object sender, RoutedEventArgs e) { string InputUserID = Input_ID.Text; string InputPassword = Input_Password.Password; JSonPacket LoginPacket = new JSonPacket(); LoginPacket.Protocol = "request_login"; LoginPacket.AddPacket(InputUserID); LoginPacket.AddPacket(InputPassword); WebConnector.SendPacket(LoginPacket); }
public void SendString_Click(object sender, RoutedEventArgs e) { if (IsLogin == false) { return; } JSonPacket ChatPacket = new JSonPacket(); ChatPacket.Protocol = "request_chat"; String ChattingText = ChatInputBox.Text; ChatPacket.AddPacket(User.UserID); ChatPacket.AddPacket(ChattingText); WebConnector.SendPacket(ChatPacket); ChatInputBox.Clear(); }
public void SendString_Click(object sender, RoutedEventArgs e) { if (IsLogin == false) return; JSonPacket ChatPacket = new JSonPacket(); ChatPacket.Protocol = "request_chat"; String ChattingText = ChatInputBox.Text; ChatPacket.AddPacket(User.UserID); ChatPacket.AddPacket(ChattingText); WebConnector.SendPacket(ChatPacket); ChatInputBox.Clear(); }