예제 #1
0
 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");
     }
 }