Exemple #1
0
        public override void DoCommand(object sender, EventArgs args)
        {
            var ui  = _serviceProvider.GetUIThread();
            var cts = new CancellationTokenSource();
            var dlg = new DiagnosticsWindow(_serviceProvider, Task.Run(() => GetData(ui, cts.Token), cts.Token));

            dlg.ShowModal();
            cts.Cancel();
        }
Exemple #2
0
        public override void DoCommand(object sender, EventArgs args)
        {
            var  ui              = _serviceProvider.GetUIThread();
            var  cts             = new CancellationTokenSource();
            bool skipAnalysisLog = Keyboard.IsKeyDown(Key.LeftShift) || Keyboard.IsKeyDown(Key.RightShift);
            var  dlg             = new DiagnosticsWindow(_serviceProvider, Task.Run(() => GetData(ui, skipAnalysisLog, cts.Token), cts.Token));

            dlg.ShowModal();
            cts.Cancel();
        }
Exemple #3
0
 public override void DoCommand(object sender, EventArgs args) {
     var ui = _serviceProvider.GetUIThread();
     var cts = new CancellationTokenSource();
     bool skipAnalysisLog = Keyboard.IsKeyDown(Key.LeftShift) || Keyboard.IsKeyDown(Key.RightShift);
     var dlg = new DiagnosticsWindow(_serviceProvider, Task.Run(() => GetData(ui, skipAnalysisLog, cts.Token), cts.Token));
     dlg.ShowModal();
     cts.Cancel();
 }