private void DoLogin()
 {
     this.m_LoginRemoteMessage = null;
     if (AssetStoreClient.HasActiveSessionID)
     {
         AssetStoreClient.Logout();
     }
     AssetStoreClient.LoginWithCredentials(this.m_Username, this.m_Password, AssetStoreClient.RememberSession, delegate(string errorMessage) {
         this.m_LoginRemoteMessage = errorMessage;
         if (errorMessage == null)
         {
             base.Close();
         }
         else
         {
             base.Repaint();
         }
     });
 }
Exemplo n.º 2
0
 private void DoLogin()
 {
     this.m_LoginRemoteMessage = (string)null;
     if (AssetStoreClient.HasActiveSessionID)
     {
         AssetStoreClient.Logout();
     }
     AssetStoreClient.LoginWithCredentials(this.m_Username, this.m_Password, AssetStoreClient.RememberSession, (AssetStoreClient.DoneLoginCallback)(errorMessage =>
     {
         this.m_LoginRemoteMessage = errorMessage;
         if (errorMessage == null)
         {
             this.Close();
         }
         else
         {
             this.Repaint();
         }
     }));
 }