public void RemoveHost(RdpHost host) { var find = HostList.FirstOrDefault(g => g.Server.Equals(host.Server)); if (find != null) { HostList.Remove(find); } SaveHosts(); }
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(); }