Esempio n. 1
0
        void ButnAddClicked(object sender, EventArgs e)
        {
            DetailViewController detailViewController = new DetailViewController();

            detailViewController.Id = null;
            NavigationController.PushViewController(detailViewController, false);
        }
Esempio n. 2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            table = new UITableView(View.Bounds, UITableViewStyle.Plain);
            Add(table);
            var sourse = CreateTableSource(_filter);

            sourse.ItemClicked += (id) =>
            {
                DetailViewController detailViewController = new DetailViewController();
                detailViewController.Id = id;
                NavigationController.PushViewController(detailViewController, true);
            };

            table.Source = sourse;

            _butnAdd = new UIBarButtonItem(UIBarButtonSystemItem.Add, ButnAddClicked);
            NavigationItem.RightBarButtonItem = _butnAdd;
            _butnMenu       = new UIBarButtonItem();
            _butnMenu.Title = "Menu";

            NavigationItem.LeftBarButtonItem = _butnMenu;
            NavigationItem.Title             = "All Requests";
            NavigationController.NavigationBar.BackgroundColor = UIColor.FromRGB(57, 197, 214);
        }