Пример #1
0
        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");
        }
Пример #2
0
        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");
        }
Пример #3
0
        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");
        }
Пример #4
0
 private async void _PromptFormsClick(object sender, RoutedEventArgs e)
 {
     AsyncDataDownloadAgent <bool> a = new AsyncDataDownloadAgent <bool>(new ManualPrompter());
     await a.PromptDownload("MainDialog");
 }
Пример #5
0
 private async void _ExportClick(object sender, RoutedEventArgs e)
 {
     AsyncDataDownloadAgent <bool> a = new AsyncDataDownloadAgent <bool>(new DataExporter());
     await a.PromptDownload("MainDialog");
 }