public AircraftViewController(AircraftDetailsViewController details) :
            base(UITableViewStyle.Plain, new RootElement(null))
        {
            Title = "Aircraft";

            SearchPlaceholder = "Search Aircraft";
            AutoHideSearch    = true;
            EnableSearch      = true;
            Autorotate        = false;

            this.details = details;
        }
        public AircraftViewController(AircraftDetailsViewController details)
            : base(UITableViewStyle.Plain, new RootElement (null))
        {
            Title = "Aircraft";

            SearchPlaceholder = "Search Aircraft";
            AutoHideSearch = true;
            EnableSearch = true;
            Autorotate = false;

            this.details = details;
        }
Beispiel #3
0
        public AircraftSplitViewController()
        {
            TabBarItem.Image = UIImage.FromBundle("Images/aircraft");
            Title            = "Aircraft";

            details  = new AircraftDetailsViewController();
            overview = new AircraftViewController(details);

            controllers = new UIViewController[] {
                new UINavigationController(overview),
                new UINavigationController(details),
            };

            ViewControllers = controllers;
        }
        public AircraftSplitViewController()
        {
            TabBarItem.Image = UIImage.FromBundle ("Images/aircraft");
            Title = "Aircraft";

            details = new AircraftDetailsViewController ();
            overview = new AircraftViewController (details);

            controllers = new UIViewController[] {
                new UINavigationController (overview),
                new UINavigationController (details),
            };

            ViewControllers = controllers;
        }
        protected override void Dispose(bool disposing)
        {
            if (disposing) {
                controllers = null;

                if (overview != null) {
                    overview.Dispose ();
                    overview = null;
                }

                if (details != null) {
                    details.Dispose ();
                    details = null;
                }
            }

            base.Dispose (disposing);
        }
Beispiel #6
0
        protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);

            if (controllers != null)
            {
                controllers = null;
            }

            if (overview != null)
            {
                overview.Dispose();
                overview = null;
            }

            if (details != null)
            {
                details.Dispose();
                details = null;
            }
        }