private void _processSubmissionResult(string value){
JsonObject json = ((JsonObject)(_parse(value)["result"]));
if (!string.IsNullOrEmpty(json.s("message"))){
using (var v = new UIAlertView(json.b("success") ? "Success" : "Error", json.s("message"), null, "OK")) {
v.Show();
}
}
var action = json.s("action");
var url = json.s("navigateto");
if (!string.IsNullOrEmpty(action)){
_invokeSubmissionResultAction(action, json);
} else if (!string.IsNullOrEmpty(url)){
NavigateTo(url);
} else if (json.b("success")) {
if (NavigationController.ViewControllers[0]==this &&
NavigationController!=null && NavigationController.ParentViewController!=null &&
NavigationController.ParentViewController.ModalViewController==NavigationController){
NavigationController.ParentViewController.DismissModalViewControllerAnimated(true);
} else {
NavigationController.PopViewControllerAnimated(true);
}
}
}