Ejemplo n.º 1
0
        public async Task ScheduleAsync(BackgroundTask task)
        {
            EventLog.LogEvent("scheduleTask", "{type}", task.TypeName);

            task.Status = BackgroundTaskStatus.Scheduled;

            // send message with MVVM messenger
            Messenger.Default.Send(new BackgroundTaskMessage(task));

            Tasks.Insert(0, task);
            OnNewTask?.Invoke(task);
            //ExecuteWithTracking(task).Forget();
            await Task.Factory.StartNew(() => ExecuteWithTracking(task), TaskCreationOptions.LongRunning);
        }
Ejemplo n.º 2
0
        private void ShowReleaseNotes_Click(object sender, RoutedEventArgs e)
        {
            ShowReleaseNotesAsync().Forget();

            EventLog.LogEvent("openFlyout", "{name}", "releaseNotes");
        }
Ejemplo n.º 3
0
        private void AboutFlyoutHeaderButton_Click(object sender, RoutedEventArgs e)
        {
            aboutFlyout.IsOpen = !aboutFlyout.IsOpen;

            EventLog.LogEvent("openFlyout", "{name}", "about");
        }
Ejemplo n.º 4
0
        private void SettingsFlyoutHeaderButton_Click(object sender, RoutedEventArgs e)
        {
            settingsFlyout.IsOpen = !settingsFlyout.IsOpen;

            EventLog.LogEvent("openFlyout", "{name}", "settings");
        }