/// <summary> /// Method to go to the "Alert" page /// </summary> /// <returns></returns> private async Task GoToAlerts() { AlertsWindow page = new AlertsWindow(UserServices, AlertServices, MaterialServices, ProductServices, MaterialsProductServices, SaleServices, await AlertServices.GetAllAlerts()); page.Show(); CurrentPage.Close(); }
public void Show() { if (AlertsLayoutWindow.IsDisposed) { AlertsLayoutWindow = new AlertsWindow(); } if (AlertsLayoutWindow.chromiumWebBrowser == null) { AlertsLayoutWindow.SetupBrowser(); } AlertsLayoutWindow.Show(); }
private AlertsController() { AlertsLayoutWindow = new AlertsWindow(); if (CustomAchievementEnabled && !File.Exists(CustomAchievementFile)) { CustomAchievementEnabled = false; } if (CustomMasteryEnabled && !File.Exists(CustomMasteryFile)) { CustomMasteryEnabled = false; } NotificationRequests = new ConcurrentQueue <NotificationRequest>(); Stopwatch = new Stopwatch(); NotificationsTask = Task.Factory.StartNew(() => { }); CanPlay = false; }