Esempio n. 1
0
        public static MenuFlyoutItem GetRefreshDirectoryItem(FolderTree tree, Action <FolderTree> afterTreeUpdated = null)
        {
            var item = new MenuFlyoutItem()
            {
                Icon = new SymbolIcon(Symbol.Refresh),
                Text = Helper.Localize("Refresh Directory")
            };

            item.Click += (s, args) =>
            {
                SettingsPage.CheckNewMusic(tree, afterTreeUpdated);
            };
            return(item);
        }
Esempio n. 2
0
 private void LocalRefreshItem_Tapped(object sender, TappedRoutedEventArgs e)
 {
     SettingsPage.CheckNewMusic(History.Peek(), tree =>
     {
         if (LocalFoldersItem.IsSelected)
         {
             FolderListener.UpdatePage(tree);
             MusicListener?.UpdatePage(tree);
         }
         else
         {
             MusicListener.UpdatePage(tree);
             FolderListener?.UpdatePage(tree);
         }
     });
 }