public void CollectLog() { //bool collect_dump = (MessageBox.Show("Collect system dump?", "Get Log", MessageBoxButton.YesNo) == MessageBoxResult.Yes) ? true : false; CanExec = false; var task = QAToolsFacade.CollectLog(false); task.GetAwaiter().OnCompleted(() => { CanExec = true; }); }
private void CollectLogBtn_Click(object sender, RoutedEventArgs e) { bool collect_dump = (MessageBox.Show("Collect system dump?", "Get Log", MessageBoxButton.YesNo) == MessageBoxResult.Yes) ? true : false; QAToolsFacade.CollectLog(collect_dump); }