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; } }
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; }
public FolderNodeViewModel(FolderNodeViewModel parent, FolderModel folder, bool lazyLoad = true) : base(parent, folder.FullName, folder.Name, lazyLoad) { Folder = folder; Foreground = BauMvvm.ViewModels.Media.MvvmColor.Navy; }
public BlogNodeViewModel(FolderNodeViewModel parent, BlogModel blog) : base(parent, blog.ID.ToString(), blog.Name, false) { Blog = blog; Foreground = BauMvvm.ViewModels.Media.MvvmColor.Black; }