Beispiel #1
0
        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;
            }
        }
Beispiel #2
0
        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;
            }
        }
Beispiel #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;
            }
        }