Ejemplo n.º 1
0
 private void SearchBoardButton_Click(object sender, RoutedEventArgs e)
 {
     String inputText = SearchTextBox.Text;
     String boardName = null;
     List<String> boardList = BoardManager.GetBoardList();
     foreach (String board in boardList)
     {
         if (String.Compare(inputText, board, StringComparison.OrdinalIgnoreCase) == 0)
             boardName = board;
     }
     if (boardName == null)
     {
         LilyToast toast = new LilyToast();
         toast.ShowInputBoardError();
     }
     else
     {
         gotoBoard(boardName);
     }
 }