private void imageInfoDeleted(object sender, EventArgs e) { ImageInfoEditor editor = (ImageInfoEditor)sender; pnlImages.Controls.Remove(editor); _dirty = true; }
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); }