private void RunThread()
 {
     new Thread(new ThreadStart(() =>
     {
         AsyncClient.Receive();
         AsyncClient.receiveDone.WaitOne();
         string msg = AsyncClient.GetResponse();
         if (msg != null)
         {
             ProcessMessage(msg, out string action, out string[] args);
             UIProcessor.Instance.ParseAction(action, args);
         }
     })).Start();
 }
 public void Send(string data)
 {
     AsyncClient.Send(data + "\n");
 }
 public void Close()
 {
     AsyncClient.Close();
 }
 public void Initialize()
 {
     AsyncClient.StartClient();
 }