コード例 #1
0
 public void NavigateBothTreesDown(string nodeName)
 {
     if (GoogleStack.Peek() == null || LocalStack.Peek() == null)
     {
         Console.WriteLine($"Skip searching because current root doesn't exist in {(GoogleStack.Peek() == null ? "Google" : "Local or both")}");
     }
     else
     {
         var googleNode = FindFolderInGoogle(nodeName);
         GoogleStack.Push(googleNode);
         var localNode = FindFolderLocally(nodeName);
         LocalStack.Push(localNode);
     }
 }
コード例 #2
0
 public INode GetCurrentGoogleNode()
 {
     return(GoogleStack.Peek());
 }