/// <summary> /// Initializes a new instance of the <see cref="ViewLinksViewModel"/> class. /// </summary> /// <param name="linkViewModel"> /// The link view model. /// </param> /// <param name="links"> /// The links. /// </param> public ViewLinksViewModel(LinkViewModel linkViewModel, ObservableCollection<LinkViewModel> links) { this.Links = links; this.SelectedItem = linkViewModel; this.uiVisibility = Visibility.Visible; }
/// <summary> /// Initializes a new instance of the <see cref="ViewLinksViewModel"/> class. /// </summary> /// <param name="linkViewModel"> /// The link view model. /// </param> public ViewLinksViewModel(LinkViewModel linkViewModel) : this(linkViewModel, new ObservableCollection<LinkViewModel> { linkViewModel }) { }