Ejemplo n.º 1
0
 // Token: 0x060004E6 RID: 1254 RVA: 0x00021BEC File Offset: 0x0001FDEC
 private void Handle_Finished(TakePhotoEventArgs args)
 {
     this.Files.Add(args.File);
     if (this.CanTakeMore)
     {
         PhotoView photoView = new PhotoView();
         photoView.Finished += this.Handle_Finished;
         photoView.Closed   += this.Handle_Closed;
         this.photoSL.Children.Add(photoView);
     }
 }
Ejemplo n.º 2
0
 // Token: 0x060004E7 RID: 1255 RVA: 0x00021C50 File Offset: 0x0001FE50
 private void Handle_Closed(TakePhotoEventArgs args)
 {
     this.Files.Remove(args.File);
     if (this.photoSL.Children.Count == 0 || (this.photoSL.Children.Count == 1 && !this.firstPhoto.HasPhoto))
     {
         return;
     }
     if (this.CanTakeMore || this.photoSL.Children.Count > 1)
     {
         this.photoSL.Children.RemoveAt(this.photoSL.Children.Count - 1);
     }
 }