Monday, July 2, 2007

Ejemplo de Evolution#

Para quien necesite agregar un contacto a Evolution con Evolution#, el codigo es el siguiente. using System; using Evolution; namespace myEvolutionAutomation { class MainClass { public static void Main(string[] args) { Evolution.Book b = new Book(); Contact contact = new Contact(); contact.BlogUrl = ""; contact.FullName = "ThePumpkin"; contact.Title = "Mr"; Console.WriteLine("Can Open Book?= {0}",b.Open(true)); Console.WriteLine("Can Add contact ={0}",b.AddContact(contact)); b.CommitContact(contact); } } }


Veerapuram Varadhan said...

Awesome! Are you using Evolution# for any projects? I would be interested to know how do you use it and whether it provides all the required APIs for your projet use. BTW, I am the current maintainer for Evolution#. :-)

Johan Hernandez said...

lol... Evolution# Rules:)
I use it to update my local Evolution Contacts from Windows Live Contacts. I'm working on a version for Gmail too.