예제 #1
0
    public void SearchLegacy(string term)
    {
        DAY dayInfo = reader.SearchItem(term, manager.LEGACY_FOLDER);
        CalendarViewController calendarController = FindObjectOfType <CalendarViewController>();

        calendarController.DisplayResultView(dayInfo, term);
    }
예제 #2
0
 public void SearchTerm(string text)
 {
     // command
     if (text.StartsWith("$"))
     {
         string[] split = text.Split(' ');
         manager.Command(split);
     }
     // date
     else if (text.StartsWith("_"))
     {
         string   temp  = text.Substring(1);
         string[] split = temp.Split('/');
         if (!RequestDayView(split))
         {
             split = temp.Split('.');
             RequestDayView(split);
         }
     }
     // general term
     else
     {
         DAY dayInfo = reader.SearchItem(text, manager.DATA_FOLDER);
         CalendarViewController calendarController = FindObjectOfType <CalendarViewController>();
         calendarController.DisplayResultView(dayInfo, text);
     }
 }