public MapLocationViewController(MapFlipViewController mfvc)
            : base()
        {
            FlipController = mfvc;

            _locations = new List<MapLocation>();
            _locations.Add(new MapLocation{Title="Monospace", Location=new CLLocationCoordinate2D(30.262251,-97.740537)});
            _locations.Add(new MapLocation{Title="Your location", Location=new CLLocationCoordinate2D(0,0)});
        }
        public MapLocationViewController(MapFlipViewController mfvc)
            : base()
        {
            FlipController = mfvc;

            _locations = new List<MapLocation>();
            _locations.Add(new MapLocation{Title="PDC09", Location=new CLLocationCoordinate2D(34.040303,-118.269131)});
            _locations.Add(new MapLocation{Title="Underground at PDC", Subtitle="The Conga Room, 800 W. Olympic Blvd", Location=new CLLocationCoordinate2D(34.0449739973182,-118.263979174573)});
            _locations.Add(new MapLocation{Title="Your location", Location=new CLLocationCoordinate2D(0,0)});
        }
        public MapLocationViewController(MapFlipViewController mfvc) : base()
        {
            FlipController = mfvc;

            _locations = new List <MapLocation>();
            _locations.Add(new MapLocation {
                Title = "Monospace", Location = new CLLocationCoordinate2D(30.262251, -97.740537)
            });
            _locations.Add(new MapLocation {
                Title = "Your location", Location = new CLLocationCoordinate2D(0, 0)
            });
        }
Esempio n. 4
0
        /// <summary>
        /// Create the four ViewControllers that we are going to use for the tabs:
        /// Sessions, Speakers, Rss, Twitter
        /// </summary>
        public override void ViewDidLoad()
        {
            base.ViewDidLoad ();

            var dvc = new DaysViewController ();
            navSessionController = new MonoTouch.UIKit.UINavigationController();
            navSessionController.PushViewController(dvc, false);
            navSessionController.NavigationBar.BarStyle = UIBarStyle.Black;
            navSessionController.TopViewController.Title ="Sessions";
            navSessionController.TabBarItem = new UITabBarItem("Sessions", UIImage.FromFile("tabsession.png"), 0);
            //http://discussions.apple.com/thread.jspa?threadID=1649012&tstart=0
            //navSessionController.NavigationBar.TintColor = UIColor.Cyan;

            var svc = new SpeakersViewController();
            navSpeakerController = new MonoTouch.UIKit.UINavigationController();
            navSpeakerController.PushViewController(svc, false);
            navSpeakerController.TopViewController.View.BackgroundColor = new UIColor(65.0f,169.0f,198.0f,255.0f);
            navSpeakerController.NavigationBar.BarStyle = UIBarStyle.Black;
            navSpeakerController.TopViewController.Title ="Speakers";
            navSpeakerController.TabBarItem = new UITabBarItem("Speakers", UIImage.FromFile("tabmono.png"), 0);

            var rvc = new BlogViewController();
            navBlogController = new MonoTouch.UIKit.UINavigationController();
            navBlogController.PushViewController(rvc, false);
            navBlogController.NavigationBar.BarStyle = UIBarStyle.Black;
            navBlogController.TopViewController.Title ="Blog";
            navBlogController.TabBarItem = new UITabBarItem("Blog", UIImage.FromFile("tabblogger.png"), 0);

            var tvc = new TwitterViewController();
            navTwitterController = new MonoTouch.UIKit.UINavigationController();
            navTwitterController.PushViewController(tvc, false);
            navTwitterController.NavigationBar.BarStyle = UIBarStyle.Black;
            navTwitterController.TopViewController.Title ="Twitter";
            navTwitterController.TabBarItem = new UITabBarItem("Twitter", UIImage.FromFile("tabtwitter.png"), 0);

            var mvc = new MapFlipViewController();
            mvc.Title = "Map";
            mvc.TabBarItem = new UITabBarItem("Map", UIImage.FromFile("tabmap.png"), 0);

            var pvc = new SponsorsViewController();
            pvc.Title = "Sponsors";
            pvc.TabBarItem = new UITabBarItem("Sponsors", UIImage.FromFile("tabsponsor.png"), 0);

            var u = new UIViewController[]{
                navSessionController, navSpeakerController, navTwitterController, mvc, pvc, navBlogController};

            this.SelectedViewController = navSessionController;

            this.ViewControllers = u;

            this.MoreNavigationController.NavigationBar.BarStyle = UIBarStyle.Black;
        }
Esempio n. 5
0
        /// <summary>
        /// Create the four ViewControllers that we are going to use for the tabs:
        /// Sessions, Speakers, Rss, Twitter
        /// </summary>
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            var dvc = new DaysViewController();

            navSessionController = new MonoTouch.UIKit.UINavigationController();
            navSessionController.PushViewController(dvc, false);
            navSessionController.NavigationBar.BarStyle  = UIBarStyle.Black;
            navSessionController.TopViewController.Title = "Sessions";
            navSessionController.TabBarItem = new UITabBarItem("Sessions", UIImage.FromFile("tabsession.png"), 0);
            //http://discussions.apple.com/thread.jspa?threadID=1649012&tstart=0
            //navSessionController.NavigationBar.TintColor = UIColor.Cyan;


            var svc = new SpeakersViewController();

            navSpeakerController = new MonoTouch.UIKit.UINavigationController();
            navSpeakerController.PushViewController(svc, false);
            navSpeakerController.TopViewController.View.BackgroundColor = new UIColor(65.0f, 169.0f, 198.0f, 255.0f);
            navSpeakerController.NavigationBar.BarStyle  = UIBarStyle.Black;
            navSpeakerController.TopViewController.Title = "Speakers";
            navSpeakerController.TabBarItem = new UITabBarItem("Speakers", UIImage.FromFile("tabmono.png"), 0);

            var rvc = new BlogViewController();

            navBlogController = new MonoTouch.UIKit.UINavigationController();
            navBlogController.PushViewController(rvc, false);
            navBlogController.NavigationBar.BarStyle  = UIBarStyle.Black;
            navBlogController.TopViewController.Title = "Blog";
            navBlogController.TabBarItem = new UITabBarItem("Blog", UIImage.FromFile("tabblogger.png"), 0);

            var tvc = new TwitterViewController();

            navTwitterController = new MonoTouch.UIKit.UINavigationController();
            navTwitterController.PushViewController(tvc, false);
            navTwitterController.NavigationBar.BarStyle  = UIBarStyle.Black;
            navTwitterController.TopViewController.Title = "Twitter";
            navTwitterController.TabBarItem = new UITabBarItem("Twitter", UIImage.FromFile("tabtwitter.png"), 0);


            var mvc = new MapFlipViewController();

            mvc.Title      = "Map";
            mvc.TabBarItem = new UITabBarItem("Map", UIImage.FromFile("tabmap.png"), 0);


            var pvc = new SponsorsViewController();

            pvc.Title      = "Sponsors";
            pvc.TabBarItem = new UITabBarItem("Sponsors", UIImage.FromFile("tabsponsor.png"), 0);

            var u = new UIViewController[] {
                navSessionController, navSpeakerController, navTwitterController, mvc, pvc, navBlogController
            };

            this.SelectedViewController = navSessionController;

            this.ViewControllers = u;

            this.MoreNavigationController.NavigationBar.BarStyle = UIBarStyle.Black;
        }
Esempio n. 6
0
 public MapViewController(MapFlipViewController mfvc)
     : base()
 {
     _mfvc = mfvc;
     ConferenceLocation = new CLLocationCoordinate2D(30.262251,-97.740537);
 }
 public MapViewController(MapFlipViewController mfvc) : base()
 {
     _mfvc = mfvc;
     ConferenceLocation = new CLLocationCoordinate2D(30.262251, -97.740537);
 }
Esempio n. 8
0
 public MapViewController(MapFlipViewController mfvc)
     : base()
 {
     _mfvc = mfvc;
     ConferenceLocation = new CLLocationCoordinate2D(34.040303,-118.269131);
 }