예제 #1
0
파일: LagerDAO.cs 프로젝트: Skalar/Indexer
        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);
            }
        }
예제 #2
0
파일: LagerDAO.cs 프로젝트: Skalar/Indexer
 void SaveInsurancePhotoInner(InsurancePhoto photo, InsurancePhoto item)
 {
     if (item == null) {
         conn.Insert (photo);
     }
     else {
         conn.Update (photo);
     }
 }
예제 #3
0
 protected override void Dispose(bool disposing)
 {
     vip.Dispose ();
     vc = null;
     photo = null;
     base.Dispose (disposing);
 }
예제 #4
0
        public override void DidSelectItem(CarouselView carousel, int index)
        {
            photo = vc.Photos [index];

            vip = new ViewInsurancePhoto (photo);
            vc.NavigationController.PushViewController (vip, false);
        }
예제 #5
0
 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 ();
 }
예제 #6
0
 protected override void Dispose(bool disposing)
 {
     scrollView.Dispose ();
     iv.Dispose ();
     photo = null;
     base.Dispose (disposing);
 }
예제 #7
0
 public ViewInsurancePhoto(InsurancePhoto photo)
 {
     this.photo = photo;
 }