Beispiel #1
0
        public void RemoveHost(RdpHost host)
        {
            var find = HostList.FirstOrDefault(g => g.Server.Equals(host.Server));

            if (find != null)
            {
                HostList.Remove(find);
            }
            SaveHosts();
        }
Beispiel #2
0
        public void AddHost(RdpHost host)
        {
            var find = HostList.FirstOrDefault(g => g.Server.Equals(host.Server));

            if (find == null)
            {
                HostList.Add(host);
            }
            else
            {
                find = host;
            }
            SaveHosts();
        }