Example #1
0
        /// <summary>
        /// Shows the preview for the specified image (selected in the project window)
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The e.</param>
        public void ShowPreview(object sender, PhotoSelectedEvent e)
        {
            Photo             = e.Photo;
            pictureBox1.Image = Photo.Image;
            this.Text         = "Details: " + Photo.BaseFilename;

            // reset / initialize rubber band controls
            _detailControls.ForEach(RemoveRubberbandControl);
            _detailControls.Clear();
            foreach (var detailArea in Photo.Project.DetailAreas)
            {
                var r = _pbt.ToScreenCoords(detailArea.Crop);
                var p = new RubberbandControl()
                {
                    Location = r.Location, Size = r.Size, DetailArea = detailArea
                };
                AddRubberbandControl(p);
            }
        }
 public void ShowPhotoProperties(object sender, PhotoSelectedEvent e)
 {
     propertyGrid.SelectedObject = e.Photo;
 }
Example #3
0
 public void ShowPreview(object sender, PhotoSelectedEvent e)
 {
     Photo = e.Photo;
     Fill();
 }