void ReleaseDesignerOutlets()
 {
     if (BudgetText != null)
     {
         BudgetText.Dispose();
         BudgetText = null;
     }
     if (SearchButton != null)
     {
         SearchButton.Dispose();
         SearchButton = null;
     }
 }
Exemple #2
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);
            }
        }