Exemple #1
0
        private async void InitTcpClient()
        {
            var clients = await _hcdzClient.GetAllTcpClients();

            if (clients == null)
            {
                return;
            }
            foreach (var item in clients)
            {
                if (item.IsConnected)
                {
                    item.BtnIsEnabled = false;
                }
            }
            TcpViewModel = new ObservableCollection <TcpClientViewModel>(clients);
        }