コード例 #1
0
        void changeEXIF(object id)
        {
            var exif = new EXIFViewModel(BusinessLayer.GetEXIF(id));

            DateTimeBlock.Text    = exif.DateAndTime; // ?? "DD:MM:YYYY hh:mm:ss";
            OrientationBlock.Text = exif.Orientation; // ?? "XX°";
            FocalLengthBlock.Text = exif.FocalLength; // ?? "XXmm - YYmm";
            FNumberBlock.Text     = exif.FNumber;     // ?? "f/X.X";
            ExposureBlock.Text    = exif.Exposure;    // ?? "1/XXX or Y\"";
            IsoBlock.Text         = exif.Iso;         // ?? "XXX";
        }
コード例 #2
0
        public PictureViewModel(PictureModel mdl)
        {
            this.mdl = mdl;
            _camera  = new CameraViewModel();
            _iptc    = new IPTCViewModel();
            EXIFModel em = new EXIFModel();

            em.Make       = "Hi";
            em.ISOValue   = 30;
            em.Flash      = true;
            _exif         = new EXIFViewModel(em);
            _picTitle     = "";
            _photographer = new PhotographerViewModel(new PhotographerModel());
        }