private void DisconnectFromListener()
 {
     try
     {
         SocketClose.CloseSockets();
         SocketSend_ClientToLister = null;
         SocketClient      = null;
         SocketListenerSvr = null;
     }
     catch (Exception ex)
     {
         SocketClientServer.Sox.Instance.Log(ex.Message);
     }
 }
        private async void SendAction(string action)
        {
            if (SocketSend_ClientToLister == null)
            {
                SocketSend_ClientToLister = SocketSend_ClientToListner.CreateNew(Passkey);
            }
            if (SocketSend_ClientToLister != null)
            {
                if (ParamRequired.Contains(action))
                {
                    action += Param;
                }
                bool res = await SocketSend_ClientToLister.Send(action);

                if (res)
                {
                    SocketClientServer.Sox.Instance.Log("Sent: " + action, NotifyType.StatusMessage);
                }
                else
                {
                    SocketClientServer.Sox.Instance.Log("Send of: " + action + " was cancelled", NotifyType.StatusMessage);
                }
            }
        }