コード例 #1
0
 public ClientStructures()
 {
     SlotSon = new SlotViewJson();
     MsgSon  = new MsgViewJson();
     MenuSon = new MenuViewJson();
     GameSon = new GameViewJson();
 }
コード例 #2
0
        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;
            }
        }
コード例 #3
0
        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;
            }
        }
コード例 #4
0
 public MsgViewModel()
 {
     _msgSon = new MsgViewJson();
 }