private bool Stop(bool bRestart) { Console.WriteLine("D: MainWindow Stop()"); if (buttonStop.IsEnabled == true && asio.GetStatus() == AsioCS.AsioStatus.Running) { backgroundWorker1.CancelAsync(); m_restart = bRestart; asio.Stop(); buttonStop.IsEnabled = false; return(true); } Console.WriteLine("D: MainWindow Stop() 空振り"); return(false); }