Exemplo n.º 1
0
        public int AddToImages(FormStandard frm)
        {
            int index = lstImages.Items.Add(frm);

            lstImages.SelectedIndex = index;
            return(index);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public void Remove(FormStandard item)
 {
     //MessageBox.Show("Removing " + item.ToString(), "Stuff", MessageBoxButtons.YesNo, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button1);
     lstImages.Items.Remove(item);
     ExecutionStack.Remove(item);
 }