public override async Task Run() { await InstallIfNeeded(); CssStyles.LoadAll(); Zebble.Device.App.ReceivedMemoryWarning += CleanUpMemory; Launch().RunInParallel(); }
public override async Task Run() { ApplicationName = "$SolutionName$"; await InstallIfNeeded(); CssStyles.LoadAll(); Device.App.ReceivedMemoryWarning += CleanUpMemory; LoadFirstPage().RunInParallel(); }
public override async Task Run() { ApplicationName = "TestZebbleChart"; await InstallIfNeeded(); CssStyles.LoadAll(); ImageService.MemoryCacheFolder("Images"); App.ReceivedMemoryWarning += CleanUpMemory; Services.PushNotificationListener.Initialize(); LoadFirstPage().RunInParallel(); }
public override async Task Run() { ApplicationName = "BikeSharing"; await InstallIfNeeded(); // RegisterDataProvider(typeof(AppData.AdoDotNetDataProviderFactory)); CssStyles.LoadAll(); ImageService.MemoryCacheFolder("Images"); //Device.System.ReceivedMemoryWarning.Handle(() => Alert.Toast("There is a shortage of memory. The application may crash.")); //Services.PushNotificationListener.Setup(); LoadFirstPageAsync().RunInParallel(); }
public override async Task Run() { ApplicationName = "$SolutionName$"; await InstallIfNeeded(); RegisterDataProvider(typeof(AppData.AdoDotNetDataProviderFactory)); CssStyles.LoadAll(); Device.System.ReceivedMemoryWarning.Handle(() => Alert.Toast("There is a shortage of memory. The application may crash.")); Services.PushNotificationListener.Setup(); LoadFirstPage().RunInParallel(); // Zebble.Sanity.Agent.Register(); }
public CkEditorMinimal() : base("textarea", true) { // prevent textarea to be displayed before page is loaded CssStyles.Add("display", "none"); }
private bool ProcessStyles(ref DocumentState state, CssStyles styles) { if (styles == null || styles.Count <= 0) return false; string value; value = styles.Get("font-family"); if (value != string.Empty) state.Face = value; value = styles.Get("font-weight"); if (value != string.Empty) state.Bold = !value.EqualsIgnoreCase("normal"); value = styles.Get("font-style"); if (value != string.Empty) state.Italic = value.EqualsIgnoreCase("italic"); value = styles.Get("text-decoration"); if (value != string.Empty) state.Underline = value.EqualsIgnoreCase("underline"); value = styles.Get("font-size"); if (value != string.Empty) state.Size = CssParser.ParseFontSize(value, state.Size); value = styles.Get("color"); if (value != string.Empty) state.Brush = value.ToColor().ToBrush(); return true; }