internal void Add (PicasaPicture picture)
		{
			if (BaseGet (picture.UniqueID) != null)
				throw new Exception ("Duplicate picture?");

			BaseAdd (picture.UniqueID, picture);
		}
Beispiel #2
0
        internal void Add(PicasaPicture picture)
        {
            if (BaseGet(picture.UniqueID) != null)
            {
                throw new Exception("Duplicate picture?");
            }

            BaseAdd(picture.UniqueID, picture);
        }
Beispiel #3
0
    static void Main(string [] args)
    {
        string user = args [0];
        string albumid = args [1];
        string imageid = args [2];
        string tag = args [3];
        Console.Write ("Password: "******"")
            password = null;

        ServicePointManager.ServerCertificateValidationCallback +=  delegate { return true; };
        GoogleConnection conn = new GoogleConnection (GoogleService.Picasa);
        conn.Authenticate (user, password);
        PicasaPicture picture = new PicasaPicture (conn, albumid, imageid);
        Console.WriteLine ("  Image Name: {0} ID: {1}", picture.Title, picture.UniqueID);
        picture.AddTag (tag);
    }