コード例 #1
0
        /// <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;
        }
コード例 #2
0
 /// <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 })
 {
 }