MonoMobile.Forms.FormDialogViewController._processFile C# (CSharp) Method

_processFile() private method

private _processFile ( string file, string values ) : void
file string
values string
return void
		private void _processFile(string file, string values) {
			if (string.IsNullOrEmpty(values) && file.Contains(' ')) {
				var temp = file.Split(' ');
				file = temp[0];
				values = temp[1];
			}
			
			_url = file + " " + values;
			
			if (file.StartsWith(Constants.Http)){
				Loading = true;
				var req = CreateRequestForUrl(file);
				new UrlConnection(Constants.UrlConnectionNameForm, req, (string result)=>{
					InvokeOnMainThread(()=>{
						_processContentOfFile(result, values);	
						LoadView();
						Loading = false;
						
					});
				}, (error)=>{ NetworkFailed(error); });
			} else {
				
				string str = NSBundle.MainBundle.PathForResource (file, "js");
				Console.WriteLine(str);
				_processContentOfFile(File.ReadAllText(str), values);
			}
		}