Beispiel #1
0
        public async override void ViewDidLoad()
        {
            base.ViewDidLoad();
            this.Title = "Saved Searches";

            NavigationItem.SetLeftBarButtonItem(
                new UIBarButtonItem(UIImage.FromBundle("menu.png"), UIBarButtonItemStyle.Plain, (s, e) => NavigationController.PopViewController(true)),
                true);

            TableView.RowHeight          = UITableView.AutomaticDimension;
            TableView.EstimatedRowHeight = 70;

            savedSearches         = AppDelegate.databaseConnection.GetAllSearchesAsync().Result;
            searchTableViewSource = new SavedSearchesTableViewSource(this, await DeserializeSearches(savedSearches));

            TableView.Source = searchTableViewSource;
            TableView.ReloadData();
        }
        public async override void ViewDidLoad()
        {
            base.ViewDidLoad();
            this.Title = "Saved Searches";

            NavigationItem.SetLeftBarButtonItem(
                new UIBarButtonItem(UIImage.FromBundle("menu.png"), UIBarButtonItemStyle.Plain, (s, e) => NavigationController.PopViewController(true)), 
                true);

            TableView.RowHeight = UITableView.AutomaticDimension;
            TableView.EstimatedRowHeight = 70;

            savedSearches = AppDelegate.databaseConnection.GetAllSearchesAsync().Result;
            searchTableViewSource = new SavedSearchesTableViewSource(this, await DeserializeSearches(savedSearches));

            TableView.Source = searchTableViewSource;
            TableView.ReloadData();
        }