private void HandleConnectionStateChanged(object sender, ConnectionStateChangedArgs args)
 {
     if (args.State == ConnectionState.Connected)
     {
         ThreadAssist.ProxyToMain(delegate {
             if (lastfm != null && lastfm.Account != null)
             {
                 UpdateForUser(lastfm.Account.UserName);
             }
         });
     }
 }
 private void HandleConnectionStateChanged(object sender, ConnectionStateChangedArgs args)
 {
     UpdateUI(args.State);
 }
Ejemplo n.º 3
0
 private void HandleConnectionStateChanged(object sender, ConnectionStateChangedArgs args)
 {
     UpdateActions();
 }
Ejemplo n.º 4
0
        private void ConnectionOnConnectionStateChanged(ConnectionStateChangedArgs args)
        {
            if(args.NewState != ConnectionState.Connected)
                return;

            tmrLoadAnimation.Stop();
            btnLogin.Text = "Login";
            btnLogin.Enabled = true;
        }