Exemple #1
0
        private void ShowReminder(object sender, EventArgs e)
        {
            using (var service = new WindowsToastService())
            {
                var toast = new ToastModel
                {
                    Id        = "sd4g63d42",
                    Title     = "Esto es una notificación",
                    Body      = "Esto es una notificación",
                    Type      = ToastTypes.Notification,
                    Arguments = $"action={BackgroundDataTemplate.ShowTaskDetailsName}&listName=Casos de pruebas&taskId=48.58"
                };

                service.ShowToast(toast);
            }
        }
Exemple #2
0
        private void ShowAlarm(object sender, EventArgs e)
        {
            using (var service = new WindowsToastService())
            {
                var id    = "k5j3hf9s1s";
                var toast = new ToastModel
                {
                    Id        = id,
                    Title     = "Esto es una notificación",
                    Body      = "Esto es una notificación",
                    Type      = ToastTypes.Alarm,
                    Arguments = $"action={BackgroundDataTemplate.CompleteTaskName}&listName=Casos de pruebas&taskId=48.58&toastId={id}"
                };

                service.ShowToast(toast);
            }
        }