private async void UIElement_OnPreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e) { AsyncDataDownloadAgent <bool> a = new AsyncDataDownloadAgent <bool>(new ContentChanger() { Control = _Content, List = _NavListBox, Button = MenuToggleButton }); await a.PromptDownload("MainDialog"); }
private async void _ClearClick(object sender, RoutedEventArgs e) { var d = MessageBox.Show("My Wise Dude, Are you sure?", "Clear Database", MessageBoxButton.YesNo); if (d == MessageBoxResult.No) { return; } AsyncDataDownloadAgent <bool> a = new AsyncDataDownloadAgent <bool>(new DataWiper()); await a.PromptDownload("MainDialog"); }
private async void _Enabled(object sender, RoutedEventArgs e) { _EnabledText.Text = "Enabled"; _EnabledColorZone.Mode = ColorZoneMode.Accent; if (Listener.IsEnabled) { return; } AsyncDataDownloadAgent <bool> a = new AsyncDataDownloadAgent <bool>(new ListenerStarter()); await a.PromptDownload("MainDialog"); }
private async void _PromptFormsClick(object sender, RoutedEventArgs e) { AsyncDataDownloadAgent <bool> a = new AsyncDataDownloadAgent <bool>(new ManualPrompter()); await a.PromptDownload("MainDialog"); }
private async void _ExportClick(object sender, RoutedEventArgs e) { AsyncDataDownloadAgent <bool> a = new AsyncDataDownloadAgent <bool>(new DataExporter()); await a.PromptDownload("MainDialog"); }