public void SaveInsurancePhoto(InsurancePhoto photo) { InsurancePhoto item = this.InsurancePhotoByID (photo.ID); if (limitedSave) { int count = GetAntallForsikringsBilder (); if (count > limitedSaves) { RaiseLimitExceeded (); } else { SaveInsurancePhotoInner (photo, item); } }else{ SaveInsurancePhotoInner (photo, item); } }
void SaveInsurancePhotoInner(InsurancePhoto photo, InsurancePhoto item) { if (item == null) { conn.Insert (photo); } else { conn.Update (photo); } }
protected override void Dispose(bool disposing) { vip.Dispose (); vc = null; photo = null; base.Dispose (disposing); }
public override void DidSelectItem(CarouselView carousel, int index) { photo = vc.Photos [index]; vip = new ViewInsurancePhoto (photo); vc.NavigationController.PushViewController (vip, false); }
private void mySavePicture(UIImage image) { Console.WriteLine ("mySavePicture()"); string name = RandomGeneratedName (); string[] names = SaveGalleryImage (name, image); InsurancePhoto photo = new InsurancePhoto (); photo.ImageFileName = names [0]; photo.ThumbFileName = names [1]; if (isLargeObject) { photo.IsLargeObject = "true"; photo.ObjectReferenceID = lagerobject.ID; } else { photo.IsLargeObject = "false"; photo.ObjectReferenceID = item.ID; } AppDelegate.dao.SaveInsurancePhoto (photo); Photos.Add (photo); carousel.ReloadData (); }
protected override void Dispose(bool disposing) { scrollView.Dispose (); iv.Dispose (); photo = null; base.Dispose (disposing); }
public ViewInsurancePhoto(InsurancePhoto photo) { this.photo = photo; }