private void addImageToolStripMenuItem_Click(object sender, EventArgs e) { editImageFormOLD form = new editImageFormOLD(); form.ShowDialog(); form.Dispose(); this.SearchGo(); }
private void Pic_Edit(object sender, EventArgs e) { string path = ((ToolStripButton)sender).Name; editImageFormOLD form = new editImageFormOLD(); form.EditMode = true; ImageData img = null; for (int i = 0; i < ImageDataList.Images.Count; i++) { ImageData id = ImageDataList.Images [i]; if (id.path == path) { img = id; break; } } if (img != null) { form.data = img; form.ShowDialog(); } form.Dispose(); }