Пример #1
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="filename"></param>
 /// <param name="mock"></param>
 public PictureModel(string filename, bool mock = false)
 {
     FileName = filename;
     Camera   = new CameraModel();
     //if (mock) return;
     //EXIF = MetaDataExtractor<EXIFModel>.Create(filename);
     //IPTC = MetaDataExtractor<IPTCModel>.Create(filename);
 }
Пример #2
0
 public PictureModel(int ID)
 {
     this.ID      = ID;
     EXIF         = new EXIFModel();
     IPTC         = new IPTCModel();
     Photographer = new PhotographerModel();
     Camera       = new CameraModel();
 }
Пример #3
0
 public PictureModel()
 {
     IPTC         = new IPTCModel();
     IPTC         = new IPTCModel();
     EXIF         = new EXIFModel();
     Camera       = new CameraModel();
     Photographer = new PhotographerModel();
 }
Пример #4
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);
     }
 }