protected override void OnResume() { if (OnePage.mainPage == null) { MainPage = new OnePage(); } else { OnePage.mainPage.ValidInternetConnection(); } // Handle when your app resumes }
public App() { Double diagonal = (float)Math.Sqrt(Math.Pow(ScreenWidth, 2) + Math.Pow(ScreenHeight, 2)); ScaleWidth = DisplayWidth / Constants.BaseWidth; ScaleHeight = DisplayHeight / Constants.BaseHeight; ScreenScale = diagonal / Constants.BaseDiagonal; MainPage = new OnePage(); //string fff = "http://api.odezhda-master.ru/api/freedata/products?expand=productsAttributesFullInfo,productsDescription&advancedFilter=[\n\t{\"tableAlias\": \"productsAlias\"},\n\t{ \n\t\t\"relation\":\"productsDescription\", \n\t\t\"relationAlias\":\"productsDescriptionAlias\", \n\t\t\"relationParameter\": \"\"\n\t},\n\t\t\t[\">\", \"productsAlias.products_quantity\", \"0\"]\n\t\t,\n\t{ \n\t\t\"relation\":\"productsToCategories\", \n\t\t\"relationAlias\":\"productsToCategoriesAlias\", \n\t\t\"relationParameter\": {\"productsToCategoriesAlias.categories_id\": [1632]}\n\t}\n\t\t]&advancedSort={\"products_date_added\": \"desc\"}&page=1&per-page=40;\r\n"; //fff = System.Net.WebUtility.UrlDecode(fff); // DateTime dt = DateTime.Now.AddDays (1); // var logs = AppsLog.GetLog (DateTime.Now.AddDays (-1), DateTime.Now.AddDays (+1), ""); //Product product = Product.GetProductsByID(1467329); //Utils.GetProductAvailabilitySchedule(product.SchedulesList); }
void Initialization() { if (!ValidInternetConnection()) { return; } mainPage = this; SetGlobalStyle(); indication = new ActivityIndicator { Color = Device.OnPlatform(Color.Black, Color.Gray, Color.Default), IsRunning = true, VerticalOptions = LayoutOptions.CenterAndExpand, }; Content = indication; Show(); }