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); } }
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(); } }