Exemple #1
0
        private void CheckAndBrowseToFolder(BreadCrumb breadCrumb, IMegaNode folderNode)
        {
            if (breadCrumb.Equals(IncomingSharedBreadCrumb))
            {
                ((SharedItemsViewModel)this.DataContext).InShares.BrowseToFolder(folderNode);
                return;
            }

            if (breadCrumb.Equals(OutgoingSharedBreadCrumb))
            {
                ((SharedItemsViewModel)this.DataContext).OutShares.BrowseToFolder(folderNode);
            }
        }
Exemple #2
0
        private void CheckAndBrowseToHome(BreadCrumb breadCrumb)
        {
            if (breadCrumb.Equals(IncomingSharedBreadCrumb))
            {
                _sharedItemsViewModel.IsInSharedItemsRootListView = true;
                _sharedItemsViewModel.InShares.BreadCrumbs.Clear();
                _sharedItemsViewModel.GetIncomingSharedFolders();
            }

            if (breadCrumb.Equals(OutgoingSharedBreadCrumb))
            {
                _sharedItemsViewModel.IsOutSharedItemsRootListView = true;
                _sharedItemsViewModel.OutShares.BreadCrumbs.Clear();
                _sharedItemsViewModel.GetOutgoingSharedFolders();
            }
        }