Exemple #1
0
 private void PushOnStackToolStripMenuItem_Click(object sender, EventArgs e)
 {
     foreach (FormStandard f in lstImages.SelectedItems)
     {
         ExecutionStack.Push(f);
     }
 }
Exemple #2
0
 private void CloseAllToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     foreach (IOperand f in lstImages.Items)
     {
         ExecutionStack.Remove(f);
     }
     lstImages.Items.Clear();
 }
Exemple #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();
            }
        }
Exemple #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);
 }
Exemple #5
0
 private void ClearAllToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ExecutionStack.RemoveAll();
 }
Exemple #6
0
 private void SwapXAndYToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ExecutionStack.SwapXY();
 }
Exemple #7
0
 private void PopToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     ExecutionStack.Pop();
 }