public ClientStructures() { SlotSon = new SlotViewJson(); MsgSon = new MsgViewJson(); MenuSon = new MenuViewJson(); GameSon = new GameViewJson(); }
private static void DoCommand2() { 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); MsgViewJson _MsgSon = MsgViewModel.MsgSon; _MsgSon.Message += data + "\n"; MsgViewModel.MsgSon = _MsgSon; 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; } }
public MsgViewModel() { _msgSon = new MsgViewJson(); }