예제 #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();
        }
예제 #2
0
        /** Creates a new client, sends a request, and closes the client. **/
        public static bool OpenParamSingleUse(bool newView, string param, string row)
        {
            if (!StartParamStudio())
            {
                return(false);
            }
            StudioClient c       = StartClient();
            bool         success = false;

            if (c != null)
            {
                success = c.OpenParam(newView, param, row);
            }
            c.CloseClient();
            return(success);
        }