Пример #1
0
 private void OnNetworkStateChanged(object o, Banshee.Networking.NetworkStateChangedArgs args)
 {
     if (!args.Connected && job != null)
     {
         network_failed = true;
         job.Dispose();
     }
     else
     {
         network_failed = false;
         FetchArtistImages();
     }
 }
Пример #2
0
        private void OnStateChanged()
        {
            NetworkStateChangedHandler handler = StateChanged;

            if (handler != null)
            {
                NetworkStateChangedArgs state_changed_args = new NetworkStateChangedArgs();
                state_changed_args.Connected = Connected;
                handler(this, state_changed_args);
            }

            if (Connected)
            {
                Log.Debug("Network Connection Established", "Connected");
            }
            else
            {
                Log.Debug("Network Connection Unavailable", "Disconnected");
            }
        }
Пример #3
0
 private void HandleNetworkStateChanged(object o, NetworkStateChangedArgs args)
 {
     connection.UpdateNetworkState (args.Connected);
 }
Пример #4
0
        private void OnStateChanged ()
        {
            NetworkStateChangedHandler handler = StateChanged;
            if(handler != null) {
                NetworkStateChangedArgs state_changed_args = new NetworkStateChangedArgs();
                state_changed_args.Connected = Connected;
                handler(this, state_changed_args);
            }

            if(Connected) {
                Log.Debug("Network Connection Established", "Connected");
            } else {
                Log.Debug("Network Connection Unavailable", "Disconnected");
            }
        }
Пример #5
0
 private void OnNetworkStateChanged (object o, NetworkStateChangedArgs args)
 {
     RefreshFeeds ();
 }
Пример #6
0
        private void OnNetworkStateChanged(object o, NetworkStateChangedArgs args)
        {
            if (!args.Connected) {
                browser.Dispose ();
                browser = null;
                return;
            }

            Browse ();
        }