コード例 #1
0
ファイル: PhoneServicePage.xaml.cs プロジェクト: rphuang/riot
 private void Stop()
 {
     _active = false;
     _host.QuitProcessRequests();
     StartStopButton.Text = "Start";
     //TextLabel.Text = $"HttpHost stopped at {DateTime.Now} \n";
 }
コード例 #2
0
 private void StopPhoneService()
 {
     ServiceOnOffButton.Text = "S.On";
     if (_phoneServiceStarted)
     {
         _phoneServiceStarted = false;
         _host?.QuitProcessRequests();
         // stop CommandToSpeech
         _piCar.PostSetting("piCar.commandToSpeechMode", "no");
     }
 }