Ejemplo n.º 1
0
        private void LoadUserData()
        {
            Identity id = (Identity)cboIdentities.SelectedItem;

            ConfigInfo.FlickrApiToken = IdentityManager.GetUserToken(id.TokenFile);

            Flickr             flickr = new Flickr(ConfigInfo.FlickrApiKey, ConfigInfo.FlickrApiSecret, ConfigInfo.FlickrApiToken);
            PhotosetCollection sets   = flickr.PhotosetsGetList();

            foreach (Photoset p in sets)
            {
                lstSets.Items.Add(p.Title);
            }
        }
Ejemplo n.º 2
0
 private void UploadManager_Load(object sender, EventArgs e)
 {
     cboIdentities.Items.AddRange(IdentityManager.GetIdentities(TokenManager.GetTokenFiles(ConfigInfo.ApplicationDataFolder)));
 }