コード例 #1
0
        public PictureViewModel(PictureModel picture)
        {
            //if (picture is PictureModel)
            //{
            //    IPTC = new IPTCViewModel((IPTCModel)picture.IPTC);
            //    EXIF = new EXIFViewModel((EXIFModel)picture.EXIF);
            //    Photographer = new PhotographerViewModel((PhotographerModel)picture.Photographer);
            //}

            if (picture != null)
            {
                ID           = picture.ID;
                FileName     = picture.FileName;
                EXIF         = picture.EXIF;
                IPTC         = picture.IPTC;
                Photographer = new PhotographerViewModel(picture.Photographer);
                string name    = picture.FileName;
                string creator = picture.IPTC.Creator;
            }
        }
コード例 #2
0
 public void savePhotographer(PhotographerViewModel photographer)
 {
     _bl.savePhotographer(new PhotographerModel(photographer));
     ((PhotographerListViewModel)PhotographersList).snycPhotographers();
 }