public PhotoMapViewController (UIViewController msp, List<Image> images, HeaderInfos headerInfos) : base("PhotoMapViewController", null) { _MSP = msp; this.images = images; this.headerInfos = headerInfos; }
void HandleOkTouchDown (object sender, EventArgs e) { var images = likedMediaView.GetLoadedImages ().Select(f => f.Img).ToList(); var headersInfos = new HeaderInfos() { SubTitle = album.Title, Title = "Album" }; UINavigationController navCont = AppDelegateIPhone.AIphone.GetCurrentNavControler(); var b = new PhotoMapViewController(navCont, images, headersInfos); b.View.Frame = UIScreen.MainScreen.Bounds; if (navCont != null) navCont.VisibleViewController.PresentModalViewController(b, true); }
private void HandleMapBtnTouchDown (object sender, EventArgs e) { var headerInfos = new HeaderInfos() { SubTitle = keyword, Title = "Keywords", }; var navCont = AppDelegateIPhone.aroundNavigationController != null ? AppDelegateIPhone.aroundNavigationController.VisibleViewController : AppDelegateIPhone.AIphone.GetCurrentNavControler(); if (navCont != null) { var b = new PhotoMapViewController(navCont, images, headerInfos); b.View.Frame = UIScreen.MainScreen.Bounds; navCont.PresentModalViewController(b, true); } }
void HandleMapPicTouchUpInside (object sender, EventArgs e) { Action act = () => { //var fullImages = AppDelegateIPhone.AIphone.ImgServ.GetImagesOfUser(user.Id, DateTime.MaxValue).ToList(); var images = new List<Image>(); foreach (var element in MemberRoot[0]) { if (element is MemberPhotoElement) { var memberPhoto = (MemberPhotoElement)element; images.Add(memberPhoto.Tweet.Image); } } InvokeOnMainThread(()=> { var headersInfos = new HeaderInfos() { SubTitle = user.Name, Title = "Posts" }; UINavigationController navCont = AppDelegateIPhone.aroundNavigationController ?? AppDelegateIPhone.AIphone.GetCurrentNavControler(); var b = new PhotoMapViewController(navCont, images, headersInfos); b.View.Frame = UIScreen.MainScreen.Bounds; if (navCont != null) navCont.VisibleViewController.PresentModalViewController(b, true); }); }; AppDelegateIPhone.ShowRealLoading(null, "Localizing photos", null, act); }
void HandleMapBtnTouchDown (object sender, EventArgs e) { List<Image> images = SearchByKeyword.FoundImages; var hInfos = new HeaderInfos() { SubTitle = SearchByKeyword.SearchedText, Title = "keywords" }; var b = new PhotoMapViewController(this, images, hInfos); b.View.Frame = UIScreen.MainScreen.Bounds; this.PresentModalViewController(b, true); }