Inheritance: NSUrlConnection
Beispiel #1
0
        public void NavigateTo(string file)
        {
            var dialog = this;

            UrlConnection.KillAllConnections();
            InvokeOnMainThread(() => {
                var controller = (JsonDialogViewController)Activator.CreateInstance(this.GetType(), file, true);
                dialog.NavigationController.PushViewController(controller, true);
            });
        }
Beispiel #2
0
        public override void FinishedLoading(NSUrlConnection connection)
        {
            UrlConnection.ConnectionEnded(_name);
            if (strCallback != null)
            {
                strCallback(data.ToString());
            }

            if (imgCallback != null)
            {
                imgCallback(UIImage.LoadFromData(data));
            }
        }
Beispiel #3
0
        public void NavigateTo(string file, IDictionary <string, string> hiddenfields)
        {
            var dialog = this;

            UrlConnection.KillAllConnections();
            InvokeOnMainThread(() => {
                var newcontroller = (JsonDialogViewController)Activator.CreateInstance(this.GetType(), file, true);
                foreach (var v in hiddenfields)
                {
                    newcontroller.SetValue(v.Key, v.Value);
                }

                dialog.NavigationController.PushViewController(newcontroller, true);
            });
        }
		public static void StartedDownloading(string name, UrlConnection connection){
			Connections.Add(name, connection);
			UIApplication.SharedApplication.NetworkActivityIndicatorVisible = true;
		}
Beispiel #5
0
 public static void StartedDownloading(string name, UrlConnection connection)
 {
     Connections.Add(name, connection);
     UIApplication.SharedApplication.NetworkActivityIndicatorVisible = true;
 }