예제 #1
0
 /// <summary>
 /// Navigate from the home view.
 /// </summary>
 /// <param name="input"></param>
 public static void Navigate(string input)
 {
     if (input.Contains("view") && !input.Contains("view all") && !string.IsNullOrEmpty(input))
     {
         try
         {
             var listTitle = input.Split("view ")[1].Trim();
             ListController.Display(listTitle);
         }
         catch (Exception e)
         {
             Print.Color("red", e.ToString());
             Print.Color("red", "Please specify which list to navigate to.");
         }
     }
     Introduction();
 }