private void ClientSendLocationsCompleted(object sender, GetValidSendLocationsCompletedEventArgs e) { _client.AddLogMessageMobileAsync("In Location Notification Send Page", "ClientSendLocationsCompleted Start", 0, GlobalData.loginData); try { ValidLocations = (Dictionary <int, string>)e.Result; /* * foreach (string s in e.Result) * { * _client.AddLogMessageTickerAppAsync("Result Value: ", s); * string [] keyvalue = s.Split('^'); * validLocations.Add(Int32.Parse(keyvalue[0]), keyvalue[1]); * }*/ //validLocations[8] = "cbo-it"; } catch (Exception ex) { _client.AddLogMessageMobileAsync("In Location Notification Send Page ClientSendLocationsCompleted. Error: ", ex.Message.ToString(), 0, GlobalData.loginData); _client.AddLogMessageMobileAsync("In Location Notification Send Page ClientSendLocationsCompleted. Inner Exception Error: ", ex.InnerException.ToString(), 0, GlobalData.loginData); } _client.AddLogMessageMobileAsync("In Location Notification Send Page. Error: ", "ClientSendLocationsCompleted End", 0, GlobalData.loginData); }
private void ClientSendLocationsCompleted(object sender, GetValidSendLocationsCompletedEventArgs e) { validLocations = e.Result; }