示例#1
0
		private void HandleGetVideosCompleted (object sender, Loewenbraeu.Data.Service.GetVideosCompletedEventArgs args)
		{
			bool error = ServiceAgent.HandleAsynchCompletedError (args, "GetVideos");
			
			InvokeOnMainThread (delegate {
				Busy = false;
				if (error)
					return;
				
				List<Model.Video> result = args.Result.ToList().ToLbkVideo();
				this.BindVideos (result);
			});
		}
示例#2
0
		private void HandleGetPicturesCompleted (object sender, Loewenbraeu.Data.Service.GetPicturesCompletedEventArgs args)
		{
			bool error = ServiceAgent.HandleAsynchCompletedError (args, "GetEvents");
			using (var pool = new NSAutoreleasePool()) {
			
				pool.InvokeOnMainThread (delegate	{
					Util.PopNetworkActive ();
					if (error)
						return;
					
					List<Picture> result = args.Result.ToList ();
					ShowGalery (result);
				});
			}
		}
示例#3
0
		private void HandleGetEventsCompleted (object sender, Loewenbraeu.Data.Service.GetEventsCompletedEventArgs args)
		{
			InvokeOnMainThread (delegate	{
				if (Util.IsAsynchCompletedError (args, "GetEvents")) {
					_hud.StopAnimating ();
					this.NavigationItem.RightBarButtonItem.Enabled = true;
					_dvc.ReloadComplete ();
					return;
				}
				try {
					List<Event> result = args.Result.ToList ();
					this.BindEvents (result);
				} catch (Exception ex) {
					using (UIAlertView alert = new UIAlertView("GetEventsCompleted",ex.Message,null,"OK",null)) {
						alert.Show ();
					}
				} finally {
					this.NavigationItem.RightBarButtonItem.Enabled = true;
					_hud.StopAnimating ();
					// Notify the dialog view controller that we are done
					// this will hide the progress info
					_dvc.ReloadComplete ();
				}
			});
		}