public override void RowSelected(UITableView tableView, Foundation.NSIndexPath indexPath) { var feedResultsVC = new SearchResultsViewController(); var search = savedSearches[indexPath.Row]; QueryGeneration helper = new QueryGeneration(); var query = helper.Generate(savedSearches[indexPath.Row]); Console.WriteLine(query); feedResultsVC.Query = query; feedResultsVC.MaxListings = search.MaxListings; feedResultsVC.WeeksOld = search.PostedDate; owner.ShowViewController(feedResultsVC, owner); }
void SearchButton_Clicked(object sender, EventArgs e) { QueryGeneration queryHelper = new QueryGeneration(); var feedViewController = new SearchResultsViewController(); SearchObject searchObject = new SearchObject(); searchObject.SearchLocation = Location; searchObject.Category = SubCategory.Value != null ? new KeyValuePair <object, object>(SubCategory.Value, SubCategory.Key) : new KeyValuePair <object, object>(Category.Key, Category.Value); searchObject.SearchItems = this.SearchItems; searchObject.Conditions = this.Conditions; var query = queryHelper.Generate(searchObject); feedViewController.Query = query; feedViewController.MaxListings = MaxListings; feedViewController.WeeksOld = WeeksOld; this.ShowViewController(feedViewController, this); }