Exemple #1
0
        private void SearchBudgetEvent(object sender, EventArgs e)
        {
            var text   = BudgetText.Text;
            var budget = Decimal.Parse(text);

            //Dismiss the keyboard
            BudgetText.ResignFirstResponder();

            var restaurants = requester.GetRestaurantsBudget(budget);

            ResultsViewController results = this.Storyboard.InstantiateViewController("ResultsViewController") as ResultsViewController;

            if (results != null)
            {
                results.Restaurants = restaurants;
                this.NavigationController.PushViewController(results, true);
            }
        }
 public ResultsDataSource(ResultsViewController c)
 {
     this.controller = c;
 }