private void UpdateUI(ConnectionState state)
 {
     if (state == ConnectionState.Connected)
     {
         HideStatus();
         if (this == ServiceManager.SourceManager.ActiveSource)
         {
             TuneAndLoad();
         }
     }
     else
     {
         track_model.Clear();
         SetStatus(RadioConnection.MessageFor(state), state != ConnectionState.Connecting, state);
         OnUpdated();
     }
 }
예제 #2
0
 private void UpdateUI(ConnectionState state)
 {
     if (state == ConnectionState.Connected) {
         HideStatus ();
         if (this == ServiceManager.SourceManager.ActiveSource) {
             TuneAndLoad ();
         }
     } else {
         track_model.Clear ();
         SetStatus (RadioConnection.MessageFor (state), state != ConnectionState.Connecting, state);
         OnUpdated ();
     }
 }
예제 #3
0
 public void SetStatus(string message, bool error, ConnectionState state)
 {
     base.SetStatus (message, error);
     //LastfmSource.SetStatus (status_message, error, state);
 }
 public void SetStatus(string message, bool error, ConnectionState state)
 {
     base.SetStatus(message, error);
     //LastfmSource.SetStatus (status_message, error, state);
 }