public override bool FinishedLaunching (UIApplication app, NSDictionary options)
 {
     _customersVC = new CustomersViewController (new List<Customer> { 
         new Customer ("Jane", "Doe"), 
         new Customer ("Joe", "Smith"), 
         new Customer ("Steve", "Jones") { Note = "Send email" }, 
         new Customer ("Alice", "Smith") { Note = "New customer" } 
     });
     
     _navController = new UINavigationController (_customersVC);
     
     window.AddSubview (_navController.View);
     
     window.MakeKeyAndVisible ();
     
     return true;
 }
Beispiel #2
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            _customersVC = new CustomersViewController(new List <Customer> {
                new Customer("Jane", "Doe"),
                new Customer("Joe", "Smith"),
                new Customer("Steve", "Jones")
                {
                    Note = "Send email"
                },
                new Customer("Alice", "Smith")
                {
                    Note = "New customer"
                }
            });

            _navController = new UINavigationController(_customersVC);

            window.AddSubview(_navController.View);

            window.MakeKeyAndVisible();

            return(true);
        }
 public CustomersTableViewSource (CustomersViewController vc)
 {
     IsEditing = false;
     _vc = vc;
 }
 public CustomersTableViewSource(CustomersViewController vc)
 {
     IsEditing = false;
     _vc       = vc;
 }