private void Button_Click(object sender, RoutedEventArgs e)
        {
            SearchTerm search = new SearchTerm();
            search.Text = searchInput.Text;
            if (Author.IsChecked != false)
                search.Type = SearchTerm.SearchType.Author;
            if (Keyword.IsChecked != false)
                search.Type = SearchTerm.SearchType.Keyword;
            if (Title.IsChecked != false)
                search.Type = SearchTerm.SearchType.Title;

            this.Frame.Navigate(typeof(SearchResultPage), search);
        }
        /// <summary>
        /// Create a new search from the saved search term and type
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SearchButton_Click(object sender, RoutedEventArgs e)
        {
            Button button = sender as Button;

            Search s = button.Tag as Search;

            // Parse string to enum
            SearchTerm.SearchType type = (SearchTerm.SearchType)Enum.Parse(typeof(SearchTerm.SearchType), s.Type.ToString());

            SearchTerm search = new SearchTerm();
            search.Text = s.Term;
            search.Type = type;

            this.Frame.Navigate(typeof(SearchResultPage), search);
        }
        /// <summary>
        /// Performs a search on a keyword
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SearchButton_Click(object sender, RoutedEventArgs e)
        {
            // Cast sender as button to get tag value
            Button button = sender as Button;

            // cast tag as string
            string term = button.Tag as string;

            // Create a new search term for navigation to search result page
            SearchTerm search = new SearchTerm();
            search.Text = term;
            search.Type = SearchTerm.SearchType.Keyword;

            // Pass searchterm object to search result page for processing
            this.Frame.Navigate(typeof(SearchResultPage), search);
        }