void ShowEmployeePicker() { employeePicker = new EmployeePickerViewController { Employees = MainPage.Employees, Selected = async(employee) => { Visit.Employee = employee; navController.PopToRootViewController(true); employeePicker = null; }, CreateNew = ShowNewVisitor }; navController.PushViewController(employeePicker, true); }
void ShowEmployeePicker() { employeePicker = new EmployeePickerViewController { Employees = MainPage.Employees, Selected = async (employee) => { Visit.Employee = employee; navController.PopToRootViewController(true); employeePicker = null; }, CreateNew = ShowNewVisitor }; navController.PushViewController(employeePicker, true); }