Exemplo n.º 1
0
        private void AddClient(string ClientMessage)
        {
            Information ClientInfo = _Crypter.GetInfoString(ClientMessage);

            if (!ComputerListDic.ContainsKey(ClientInfo.PCName))
            {
                lstLog.Invoke((MethodInvoker)(() => WriteLog(ClientInfo.PCName + " Connected")));

                ComputerListDic.Add(ClientInfo.PCName, OperationContext.Current.GetCallbackChannel <IStarGateCallBack>());
                ComputerList.Add(ClientInfo);
            }

            RefreshList();
        }