Exemplo n.º 1
0
        public static bool GetVisibility(this ShowFavoriteMode mode, FavoriteGroup grp)
        {
            switch (mode)
            {
            case ShowFavoriteMode.IfNoEmpty:
                return(grp.GetItems().Count > 0);

            case ShowFavoriteMode.Yes:
                return(true);

            case ShowFavoriteMode.No:
                return(false);
            }
            return(true);
        }
Exemplo n.º 2
0
 public FavoriteGroupTreeNode(ITreeNode parent, FavoriteGroup group)
     : base(parent, new DiskFolder(System.IO.Path.Combine(Core.FavoritesDirectory, group.Name)), group.Name)
 {
     m_group = group;
 }