Esempio n. 1
0
 private void PushOnStackToolStripMenuItem_Click(object sender, EventArgs e)
 {
     foreach (FormStandard f in lstImages.SelectedItems)
     {
         ExecutionStack.Push(f);
     }
 }
Esempio n. 2
0
 private void CloseAllToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     foreach (IOperand f in lstImages.Items)
     {
         ExecutionStack.Remove(f);
     }
     lstImages.Items.Clear();
 }
Esempio n. 3
0
        private void CloseToolStripMenuItem_Click(object sender, EventArgs e)
        {
            List <FormStandard> flist = new List <FormStandard>();

            foreach (FormStandard f in lstImages.SelectedItems)
            {
                ExecutionStack.Remove(f);
                flist.Add(f);
            }
            for (int i = 0; i < flist.Count; i++)
            {
                flist[i].Close();
            }
        }
Esempio n. 4
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);
 }
Esempio n. 5
0
 private void ClearAllToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ExecutionStack.RemoveAll();
 }
Esempio n. 6
0
 private void SwapXAndYToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ExecutionStack.SwapXY();
 }
Esempio n. 7
0
 private void PopToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     ExecutionStack.Pop();
 }