public int AddToImages(FormStandard frm) { int index = lstImages.Items.Add(frm); lstImages.SelectedIndex = index; return(index); }
public FormStandard CreateFrmStandard(string filename) { FormStandard frm; Bitmap image = new Bitmap(filename); string imageName = Path.GetFileName(filename); frm = new FormStandard(imageName, image, this); frm.FormClosing += new System.Windows.Forms.FormClosingEventHandler(MainFormClosing); frm.Show(); int index = lstImages.Items.Add(frm); lstImages.SelectedIndex = index; return(frm); }
public void Remove(FormStandard item) { //MessageBox.Show("Removing " + item.ToString(), "Stuff", MessageBoxButtons.YesNo, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button1); lstImages.Items.Remove(item); ExecutionStack.Remove(item); }