示例#1
0
        private void PowerButton_Click(object sender, RoutedEventArgs e)
        {
            _radio.ToggelPower();

            RefreshUI();

            if (_radio.IsOn)
            {
                ChangePlayingStation(_radio.GetStation(_currentChannelID).URL);
            }
            else
            {
                StopPlaying();
            }
        }
示例#2
0
 public void TurnOnTest()
 {
     _radio.ToggelPower();
     Assert.That(_radio.IsOn, Is.True);
 }
示例#3
0
 public void TurnOffTest()
 {
     _radio.ToggelPower();
     Assert.That(_radio.IsOn, Is.False);
 }