void changeIPTC(object id) { var iptc = new IPTCViewModel(BusinessLayer.GetIPTC(id)); LicenseBox.Text = iptc.License ?? "Select License"; CategoryBox.Text = iptc.Category ?? "Category"; KeyWordsBox.Text = iptc.KeyWords ?? "KeyWords"; PhotographerBox.Text = iptc.PhotographerName ?? "Select Photographer"; NotesBox.Text = iptc.Notes ?? "Notes..."; }
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()); }