Пример #1
0
        private void TestThread()
        {
            Thread.Sleep(5000);
            StudioClient c = StudioClient.StartClient();

            if (c == null)
            {
                Console.WriteLine("Failed to start client");
            }
            Console.WriteLine("Client created");
            Thread.Sleep(5000);
            c.sendMessage("param/view/new/EquipParamProtector/0");
            Console.WriteLine("test message sent");
            Thread.Sleep(5000);
            c.sendMessage("param/view/new/EquipParamWeapon/0");
            Thread.Sleep(5000);
            c.CloseClient();
            //StudioClient.StartParamStudio();
            Thread.Sleep(5000);
            c = StudioClient.StartClient();
            Thread.Sleep(5000);
            c.sendMessage("param/view/new/EquipParamProtector/0");
            c.CloseClient();
        }