public void ChangeDropboxFolder(DropboxFolder folder) { DisplayProgressMessage("Populating folder..."); if (!folder.Name.Equals("..")) { App.Executor.ExecuteCommand(new PopulateDropboxFolderStructureCommand() { ViewModel = this, Root = folder.Path }, success: LoadingDone); CurrentPath = folder; } else { App.Executor.ExecuteCommand(new PopulateDropboxFolderStructureCommand() { ViewModel = this, Root = CurrentPath.ParentPath }, success: LoadingDone); CurrentPath = new DropboxFolder(CurrentPath.ParentPath, CurrentPath.ParentPath); } }
public override void Init(Microsoft.Phone.Controls.PhoneApplicationPage phoneApplicationPage) { DisplayProgressMessage("Populating folder..."); CurrentPath = new DropboxFolder("/", "/"); App.Executor.ExecuteCommand(new PopulateDropboxFolderStructureCommand() { ViewModel = this, Root = CurrentPath.Path }, success: LoadingDone); }