コード例 #1
0
		public override bool FinishedLaunching (UIApplication app, NSDictionary options)
		{
			TestFlight.TakeOffThreadSafe ("fb57eee9-f5f5-4ec3-96eb-404e6dd2573d");

			Shared = this;
			FileCache.SaveLocation = System.IO.Directory.GetParent (Environment.GetFolderPath (Environment.SpecialFolder.Personal)).ToString () + "/tmp";

			UIApplication.SharedApplication.SetStatusBarStyle (UIStatusBarStyle.LightContent, false);

			window = new UIWindow (UIScreen.MainScreen.Bounds);
			UINavigationBar.Appearance.SetTitleTextAttributes (new UITextAttributes {
				TextColor = UIColor.White
			});

			var productVc = new ProductListViewController ();
			productVc.ProductTapped += ShowProductDetail;
			navigation = new UINavigationController (productVc);

			navigation.NavigationBar.TintColor = UIColor.White;
			navigation.NavigationBar.BarTintColor = Color.Blue;

			window.RootViewController = navigation;
			window.MakeKeyAndVisible ();
			return true;
		}
コード例 #2
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Shared = this;
            FileCache.SaveLocation = System.IO.Directory.GetParent (Environment.GetFolderPath (Environment.SpecialFolder.Personal)).ToString () + "/tmp";

            UIApplication.SharedApplication.SetStatusBarStyle (UIStatusBarStyle.LightContent, false);

            window = new UIWindow (UIScreen.MainScreen.Bounds);
            UINavigationBar.Appearance.SetTitleTextAttributes (new UITextAttributes {
                TextColor = UIColor.White
            });
            UINavigationBar.Appearance.TintColor = UIColor.White;
            UINavigationBar.Appearance.BarTintColor = Color.Blue;

            var productVc = new ProductListViewController ();
            productVc.ProductTapped += ShowProductDetail;

            navigation = (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Pad) ?
                (IRootViewController)new PadRootViewController () : new PhoneRootViewController ();

            navigation.PushViewController(productVc, false);

            window.RootViewController = navigation as UIViewController;
            window.MakeKeyAndVisible ();
            return true;
        }
コード例 #3
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            TestFlight.TakeOffThreadSafe("fb57eee9-f5f5-4ec3-96eb-404e6dd2573d");

            Shared = this;
            FileCache.SaveLocation = System.IO.Directory.GetParent(Environment.GetFolderPath(Environment.SpecialFolder.Personal)).ToString() + "/tmp";

            UIApplication.SharedApplication.SetStatusBarStyle(UIStatusBarStyle.LightContent, false);

            window = new UIWindow(UIScreen.MainScreen.Bounds);
            UINavigationBar.Appearance.SetTitleTextAttributes(new UITextAttributes {
                TextColor = UIColor.White
            });

            var productVc = new ProductListViewController();

            productVc.ProductTapped += ShowProductDetail;
            navigation = new UINavigationController(productVc);

            navigation.NavigationBar.TintColor    = UIColor.White;
            navigation.NavigationBar.BarTintColor = Color.Blue;

            window.RootViewController = navigation;
            window.MakeKeyAndVisible();
            return(true);
        }
コード例 #4
0
		public override bool FinishedLaunching (UIApplication app, NSDictionary options)
		{
			Shared = this;
            FileCache.FileExists = (file) => (File.Exists(file));

			UIApplication.SharedApplication.SetStatusBarStyle (UIStatusBarStyle.LightContent, false);

			window = new UIWindow (UIScreen.MainScreen.Bounds);
			UINavigationBar.Appearance.SetTitleTextAttributes (new UITextAttributes {
				TextColor = UIColor.White
			});

			var productVc = new ProductListViewController ();
			productVc.ProductTapped += ShowProductDetail;
			navigation = new UINavigationController (productVc);

			navigation.NavigationBar.TintColor = UIColor.White;
			navigation.NavigationBar.BarTintColor = Color.Blue.ToUIColor ();

			window.RootViewController = navigation;
			window.MakeKeyAndVisible ();
			return true;
		}
コード例 #5
0
		public LinearDataSource(ProductListViewController vc, List<Product> p)
		{
			this.vc = vc;
			this.product = p;
		}
コード例 #6
0
		public LinearDelegate(ProductListViewController vc,IReadOnlyList<Product> productSelected, Action<Product> product)
		{
			this.vc = vc;
			this.Products = productSelected;
			this.ProductSelected = product;
		}