Dialog Picker Default Location for PC joined/not joined to a Domain.

Aug 21, 2009 at 6:47 PM

congratulations for the project.
I have this requirement.
I would like to be able to display the Dialog so that the default location is:
1) on computers in domain: Locations.GlobalCatalog
2) on the PC not in domain (workgroup): Locations.LocalComputer

All course without knowing whether your PC is in domain or not.
If I set the defaultLocation to Locations.GlobalCatalog I get an error on the PC not in domain.
If I set the defaultLocation to Locations.LocalComputer on PCs in domain, display by default the local machine.

Thank you,