Example #1
0
        private void imageInfoDeleted(object sender, EventArgs e)
        {
            ImageInfoEditor editor = (ImageInfoEditor)sender;

            pnlImages.Controls.Remove(editor);
            _dirty = true;
        }
Example #2
0
        private Control addImage(ImageInfo info)
        {
            ImageInfoEditor control = new ImageInfoEditor
            {
                Dock = DockStyle.Top
            };

            control.LoadEditorInfo(info);
            control.Changed += imageInfoChanged;
            control.Deleted += imageInfoDeleted;
            pnlImages.Controls.Add(control);
            return(control);
        }