public static void Forward_Click(object sender, RoutedEventArgs e)
        {
            //if (ItemViewModel.IsTerminated == false)
            //{
            ItemViewModel.tokenSource.Cancel();
            ItemViewModel.FilesAndFolders.Clear();
            //}

            if (History.ForwardList.Count() > 0)
            {
                ItemViewModel.TextState.isVisible = Visibility.Collapsed;
                ItemViewModel.FilesAndFolders.Clear();
                ItemViewModel.ViewModel   = new ItemViewModel(History.ForwardList[History.ForwardList.Count() - 1], PhotoAlbum.PAPageName);   // To take into account the correct index without interference from the folder being navigated to
                GenericFileBrowser.P.path = History.ForwardList[History.ForwardList.Count() - 1];
                History.ForwardList.RemoveAt(History.ForwardList.Count() - 1);
                ArrayDiag.DumpForwardArray();

                if (History.ForwardList.Count == 0)
                {
                    ItemViewModel.FS.isEnabled = false;
                }
                else if (History.ForwardList.Count > 0)
                {
                    ItemViewModel.FS.isEnabled = true;
                }
            }
        }
示例#2
0
        public static void Forward_Click(object sender, RoutedEventArgs e)
        {
            if (App.ViewModel.tokenSource != null)
            {
                App.ViewModel.tokenSource.Cancel();
            }
            App.ViewModel.FilesAndFolders.Clear();

            if (History.ForwardList.Count() > 0)
            {
                App.ViewModel.TextState.isVisible = Visibility.Collapsed;
                App.ViewModel.FilesAndFolders.Clear();
                App.ViewModel.MemoryFriendlyGetItemsAsync(History.ForwardList[History.ForwardList.Count() - 1], PhotoAlbum.PAPageName);     // To take into account the correct index without interference from the folder being navigated to
                App.PathText.Text = History.ForwardList[History.ForwardList.Count() - 1];
                History.ForwardList.RemoveAt(History.ForwardList.Count() - 1);
                ArrayDiag.DumpForwardArray();

                if (History.ForwardList.Count == 0)
                {
                    App.ViewModel.FS.isEnabled = false;
                }
                else if (History.ForwardList.Count > 0)
                {
                    App.ViewModel.FS.isEnabled = true;
                }
            }
        }