Ejemplo n.º 1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            View = _expensesView = new TripInfoView();

            var doneButton = new UIBarButtonItem(UIBarButtonSystemItem.Done, (s, e) => {
            });

            _expensesView.AddNewExpenseButton.TouchUpInside += (sender, e) => {
                if (editExpenseController == null)
                {
                    editExpenseController = new EditExpenseScreenController();
                }
                NavigationController.PushViewController(editExpenseController, false);
            };

            NavigationItem.SetRightBarButtonItem(doneButton, false);
        }
Ejemplo n.º 2
0
		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();

			View = _expensesView = new TripInfoView ();

			var doneButton = new UIBarButtonItem (UIBarButtonSystemItem.Done, (s,e) => {


			});

			_expensesView.AddNewExpenseButton.TouchUpInside += (sender, e) => {
				if(editExpenseController == null)
					editExpenseController = new EditExpenseScreenController();
				NavigationController.PushViewController(editExpenseController, false);
			};

			NavigationItem.SetRightBarButtonItem(doneButton, false);

		}