示例#1
0
        public void AddFavorite(FileSystemElement fse)
        {
            var favLink = new FavoriteNavigationLink(Symbol.OutlineStar, fse.Name, fse.Path, FavNavLinkUpCmd, FavNavLinkDownCmd, FavNavLinkRemoveCmd);

            NavigationItems.Insert(Favorites.Count, favLink);
            Favorites.Add(favLink);
        }
示例#2
0
        private void MoveDownFavorite(FavoriteNavigationLink fnl)
        {
            var index = Favorites.IndexOf(fnl);

            NavigationItems.Remove(fnl);
            NavigationItems.Insert(index + 1, fnl);

            Favorites.MoveDown(fnl);
        }
示例#3
0
 private void RemoveFavorite(FavoriteNavigationLink fnl)
 {
     NavigationItems.Remove(fnl);
     Favorites.Remove(fnl);
 }