private static void DoCommand3() { string data; byte[] bytes = new byte[256]; int i; while ((i = ListeningStream.Read(bytes, 0, bytes.Length)) != 0) { data = Encoding.ASCII.GetString(bytes, 0, i); BaseJson <SlotViewJson> JSON = new BaseJson <SlotViewJson>(); SlotViewModel.SlotJson = JSON.Deserializer(data); return; } }
private void DoCommand5() { string data; byte[] bytes = new byte[256]; int i; while ((i = stream.Read(bytes, 0, bytes.Length)) != 0) { data = Encoding.ASCII.GetString(bytes, 0, i); Console.WriteLine("{1}: Received: {0}", data, Thread.CurrentThread.Name); BaseJson <MenuViewJson> JSON = new BaseJson <MenuViewJson>(); Server.GameBoard.MenuSon = JSON.Deserializer(data); return; } }
private static void DoCommand1() { string data; byte[] bytes = new byte[256]; int i; while ((i = ListeningStream.Read(bytes, 0, bytes.Length)) != 0) { data = Encoding.ASCII.GetString(bytes, 0, i); BaseJson <MsgViewJson> JSON = new BaseJson <MsgViewJson>(); MsgViewJson _CopySon = MsgViewModel.MsgSon; MsgViewJson _MsgSon = JSON.Deserializer(data); _CopySon.Nick = _MsgSon.Nick; MsgViewModel.MsgSon = _CopySon; return; } }