예제 #1
0
 private void reflectPlayerStateInGUI(PlayState playState)
 {
     if (playState.Equals(PlayState.PAUSED))
     {
         this.mainPlayPauseButton.ImageKey = "gtk-media-play-ltr.png";
     }
     else if (playState.Equals(PlayState.PLAYING))
     {
         this.mainPlayPauseButton.ImageKey = "gtk-media-pause.png";
     }
     else if (playState.Equals(PlayState.STOPPED))
     {
         //basically the same as paused
         this.mainPlayPauseButton.ImageKey = "gtk-media-play-ltr.png";
     }
 }
예제 #2
0
 private void reflectPlayerStateInGUI(PlayState playState)
 {
     if (playState.Equals(PlayState.PAUSED))
     {
         this.mainPlayPauseButton.ImageKey = "gtk-media-play-ltr.png";
     }
     else if (playState.Equals(PlayState.PLAYING))
     {
         this.mainPlayPauseButton.ImageKey = "gtk-media-pause.png";
     }
     else if (playState.Equals(PlayState.STOPPED))
     {
         //basically the same as paused
         this.mainPlayPauseButton.ImageKey = "gtk-media-play-ltr.png";
     }
 }