示例#1
0
        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);
        }
示例#2
0
 private void buttonStop_Click(object sender, EventArgs e)
 {
     buttonStop.Enabled = false;
     asio.Stop();
 }