public void Add(ConnectionViewModel connection) { if (_connections.Contains(connection)) { return; } _connections.Add(connection); OnPropertyChanged(nameof(Connections)); }
public void Remove(ConnectionViewModel connection) { _connections.Remove(connection); OnPropertyChanged(nameof(Connections)); }