public static void ShowToast(string title, string message, string icon = null, string url = null)
        {
            Common.Log.Debug($"NotificationManager: Toast request '{title}' '{message}'");

            if (icon == null)
            {
                icon = IcoMoon.Notification;
            }

            UserControl control = new SimpleToast(title, message, icon, url);

            GetService()?.Show(control);
        }
示例#2
0
        private ToastNotification MakeToast(GeofenceStateChangeReport report, Alarm alarm)
        {
            var tost = new SimpleToast("You have entered location", alarm.Name, alarm.AlarmSound);

            return(new ToastNotification(tost.ToastBlueprint));
        }