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); }
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); }