mirror of
https://github.com/XFox111/GUTSchedule.git
synced 2026-04-22 06:58:01 +03:00
Code cleanup and optimizing
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using System.Collections.Generic;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
|
||||
namespace GUTSchedule.UWP.Controls
|
||||
{
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user