Ejemplo n.º 1
0
 public PictureModel(int ID)
 {
     this.ID      = ID;
     EXIF         = new EXIFModel();
     IPTC         = new IPTCModel();
     Photographer = new PhotographerModel();
     Camera       = new CameraModel();
 }
Ejemplo n.º 2
0
 public PictureModel()
 {
     IPTC         = new IPTCModel();
     IPTC         = new IPTCModel();
     EXIF         = new EXIFModel();
     Camera       = new CameraModel();
     Photographer = new PhotographerModel();
 }
Ejemplo n.º 3
0
 public PictureModel(IPictureViewModel viewModel)
 {
     ID       = viewModel.ID;
     FileName = viewModel.FileName;
     IPTC     = new IPTCModel(viewModel.IPTC);
     EXIF     = new EXIFModel(viewModel.EXIF);
     if (viewModel.Camera != null)
     {
         Camera = new CameraModel(viewModel.Camera);
     }
     if (viewModel.Photographer != null)
     {
         Photographer = new PhotographerModel(viewModel.Photographer);
     }
 }