Exemplo n.º 1
0
 private void LoadData()
 {
     try
     {
         if (!string.IsNullOrEmpty(AccessToken))
         {
             _client = new DropNetClient(AppKey, AppSecret, AccessToken, Secret);
             var data = _client.AccountInfo();
             UserName = data.display_name;
             IsLogedIn = true;
         }
         else
         {
             IsLogedIn = false;
         }
     }
     catch (Exception)
     {
         IsLogedIn = false;
     }
 }