1
0
mirror of https://github.com/XFox111/GUTSchedule.git synced 2026-04-22 06:58:01 +03:00

Updated UWP app to work with local in-app calendars

This commit is contained in:
Michael Gordeev
2020-03-13 14:21:30 +03:00
parent a71d31dd25
commit 5ae9efdc08
10 changed files with 100 additions and 71 deletions
@@ -0,0 +1,17 @@
using System.Collections.Generic;
using Windows.UI.Xaml.Controls;
namespace GUTSchedule.UWP
{
public sealed partial class ClearCalendarControl : ContentDialog
{
public IEnumerable<object> SelectedCalendars => targetsList.SelectedItems;
public bool ClearUpcomingOnly => clearUpcoming.IsChecked.Value;
public ClearCalendarControl() =>
InitializeComponent();
private async void ContentDialog_Loaded(object sender, Windows.UI.Xaml.RoutedEventArgs e) =>
targetsList.ItemsSource = await Calendar.GetCalendars();
}
}