Beispiel #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            employees   = EmployeeManager.GetAll();
            ListAdapter = new RootAdapter(this, employees);

            ListView.ItemClick += (s, ea) => {
                var employeeDetails = new Intent(this, typeof(DetailActivity));
                employeeDetails.PutExtra("EmployeeId", employees[ea.Position].Id);
                StartActivity(employeeDetails);
            };
        }
Beispiel #2
0
        NSString cellIdentifier = new NSString("EmployeeCell");         // set in Storyboard

        public RootViewSource()
        {
            employees = EmployeeManager.GetAll();
        }