public void Initialize()
{
WebClient wc = new WebClient();
wc.DownloadStringCompleted += new DownloadStringCompletedEventHandler(wc_DownloadStringCompleted);
if (Credential.CREDENTIAL.GetUrlParameters() != null)
{
string s = string.Format("{0}.json" +"?"+ Credential.CREDENTIAL.GetUrlParameters(), MapServiceUrl);
wc.DownloadStringAsync(new Uri(s, UriKind.Absolute), this);
}
else {
wc.DownloadStringAsync(new Uri(string.Format("{0}.json", MapServiceUrl), UriKind.Absolute), this);
}
}