Exemplo n.º 1
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            _customersVC = new CustomersViewController(new List <Customer> {
                new Customer("Jane", "Doe")
                {
                    IsFavorite = true
                },
                new Customer("Joe", "Smith"),
                new Customer("Steve", "Jones")
                {
                    Note = "Send email", IsFavorite = true
                },
                new Customer("Alice", "Smith")
                {
                    Note = "New customer"
                }
            });

            _navController = new UINavigationController(_customersVC);

            window.AddSubview(_navController.View);

            window.MakeKeyAndVisible();

            return(true);
        }
Exemplo n.º 2
0
 public override bool FinishedLaunching (UIApplication app, NSDictionary options)
 {
     _customersVC = new CustomersViewController (new List<Customer> { 
         new Customer ("Jane", "Doe") { IsFavorite = true }, 
         new Customer ("Joe", "Smith"), 
         new Customer ("Steve", "Jones") { Note = "Send email", IsFavorite = true }, 
         new Customer ("Alice", "Smith") { Note = "New customer" } 
     });
     
     _navController = new UINavigationController (_customersVC);
     
     window.AddSubview (_navController.View);
     
     window.MakeKeyAndVisible ();
     
     return true;
 }
Exemplo n.º 3
0
 public CustomersTableViewSource(CustomersViewController vc)
 {
     IsEditing = false;
     _vc       = vc;
 }
 public CustomersTableViewSource (CustomersViewController vc)
 {
     IsEditing = false;
     _vc = vc;
 }