Exemplo n.º 1
0
		public App()
		{
            MainPage = new XamarinFormsPageFactory().Init<HomePageModel, PFNavigationPage>();

			ImageService.Instance.LoadCompiledResource("loading.png").Preload();
			ImageService.Instance.LoadUrl("http://loremflickr.com/600/600/nature?filename=simple.jpg").DownloadOnly();
        }
Exemplo n.º 2
0
 public App()
 {
     // The root page of your application
     var pageFactory = new XamarinFormsPageFactory();
     var navigationPage = pageFactory.Init<HelloViewModel, PFNavigationPage>();
     MainPage = navigationPage;
 }
Exemplo n.º 3
0
        public App()
        {
            MainPage = new XamarinFormsPageFactory().Init <HomePageModel, PFNavigationPage>();

            ImageService.Instance.LoadCompiledResource("loading.png").Preload();
            ImageService.Instance.LoadUrl("http://loremflickr.com/600/600/nature?filename=simple.jpg").DownloadOnly();
        }
Exemplo n.º 4
0
		public App()
		{
			// The root page of your application
			MainPage = new XamarinFormsPageFactory().Init<MenuViewModel, PFNavigationPage>();
		}
Exemplo n.º 5
0
 public App()
 {
     // The root page of your application
     MainPage = new XamarinFormsPageFactory().Init <MenuViewModel, PFNavigationPage>();
 }
 public App()
 {
     MainPage = new XamarinFormsPageFactory().Init<HomeViewModel, PFNavigationPage>();
 }
Exemplo n.º 7
0
 public App()
 {
     MainPage = new XamarinFormsPageFactory().Init <HomePageModel, PFNavigationPage>();
 }
Exemplo n.º 8
0
        void OnLogin(string login, string password)
        {
            var apiObj = new Api ();
            //var background = new Image { Aspect = Aspect.AspectFit };
            //background.Source = ImageSource.FromFile ();
            var userObj = apiObj.GetUser (login, password);
            App.user = userObj;
            App.startShift ();
            App.check = new Check ();
            App.check.check_items = new List<CheckItem>();
            App.check.author = App.user;
            App.check.shift = App.shift;
            //App.MasterDetailPage.Master = new MenuPageOld ();
            var menuPage = new XamarinFormsPageFactory().Init<MenuViewModel, PFNavigationPage>();
            menuPage.Title = "Menu";
            App.MasterDetailPage.Master = menuPage;
            App.MasterDetailPage.IsGestureEnabled = true;
            NavigationPage.SetHasNavigationBar (this, false);
            //var carouselPage = new CarouselPage ();
            var categories = App.api.getCategories (App.user);
            if (categories == null) {
                categories = new List<Category>();
            }
            foreach (var category in categories) {
            //	carouselPage.Children.Add (new CategoryPage(category));
            }

            var carouselPage = new SalesReportPage ();

            App.MasterDetailPage.Detail = carouselPage;
        }