Feb 5, 2010 at 8:42 AM
Edited Feb 5, 2010 at 8:43 AM
the biggest problem is, that the Titel is translated and the window has now automation element.
This means you get have to search for the window by window.Name and this has to be language independent.
All other is very easy:
write a wrapper class!
in the constructor get the dialog and all visible elements.
from the window get the parts which are nessasarry for you =>
buttons, textboxes and so on, all these elements have automation ID's and they will be the same on the different OS versions (as I can see).
in c# I will use Properties for all the elements I need.
and some functions for complex operations.