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

            if (find != null)
            {
                HostList.Remove(find);
            }
            SaveHosts();
        }
예제 #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();
        }