private void btnSearch_Click(object sender, RoutedEventArgs e)
        {
            if (InvalidQuery())
            {
                return;
            }
            var SearchResults = MendeleyRESTConsumer.Search(txtSearchQuery.Text);

            new SearchResultWindowControl(SearchResults);
            //TODO: validate result (handle none and so).
            //new SearchResultWindow(SearchResult);
        }
 //TODO: fix this dependency: I plan on consuming different APIs, so MendelJSONResult should inherit from a generalization.
 public IEnumerable <MendeleyJSONResult> Search(string Query)
 {
     return(MendeleyRESTConsumer.Search(Query));
 }
Beispiel #3
0
 static void Main(string[] args)
 {
     var Result = MendeleyRESTConsumer.Search("Music");
 }