コード例 #1
0
 public BlogNodeViewModel(BaseTreeViewModel trvTree, BlogReaderViewModel mainViewModel, FolderNodeViewModel parent, BlogModel blog)
     : base(trvTree, parent, blog.ID.ToString(), blog.Name, false)
 {
     MainViewModel = mainViewModel;
     Blog          = blog;
     Icon          = TreeBlogsViewModel.NodeType.Blog.ToString();
     if (blog.Enabled)
     {
         Foreground = BauMvvm.ViewModels.Media.MvvmColor.Black;
     }
     else
     {
         Foreground = BauMvvm.ViewModels.Media.MvvmColor.Gray;
     }
 }
コード例 #2
0
 public FolderNodeViewModel(BaseTreeViewModel trvTree, BlogReaderViewModel mainViewModel, FolderNodeViewModel parent, FolderModel folder)
     : base(trvTree, parent, folder.FullName, folder.Name, false)
 {
     MainViewModel = mainViewModel;
     Folder        = folder;
     Icon          = TreeBlogsViewModel.NodeType.Folder.ToString();
     Foreground    = BauMvvm.ViewModels.Media.MvvmColor.Navy;
 }
コード例 #3
0
 public FolderNodeViewModel(FolderNodeViewModel parent, FolderModel folder, bool lazyLoad = true) : base(parent, folder.FullName, folder.Name, lazyLoad)
 {
     Folder     = folder;
     Foreground = BauMvvm.ViewModels.Media.MvvmColor.Navy;
 }
コード例 #4
0
 public BlogNodeViewModel(FolderNodeViewModel parent, BlogModel blog) : base(parent, blog.ID.ToString(), blog.Name, false)
 {
     Blog       = blog;
     Foreground = BauMvvm.ViewModels.Media.MvvmColor.Black;
 }