private void PushOnStackToolStripMenuItem_Click(object sender, EventArgs e) { foreach (FormStandard f in lstImages.SelectedItems) { ExecutionStack.Push(f); } }
private void CloseAllToolStripMenuItem1_Click(object sender, EventArgs e) { foreach (IOperand f in lstImages.Items) { ExecutionStack.Remove(f); } lstImages.Items.Clear(); }
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(); } }
public void Remove(FormStandard item) { //MessageBox.Show("Removing " + item.ToString(), "Stuff", MessageBoxButtons.YesNo, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button1); lstImages.Items.Remove(item); ExecutionStack.Remove(item); }
private void ClearAllToolStripMenuItem_Click(object sender, EventArgs e) { ExecutionStack.RemoveAll(); }
private void SwapXAndYToolStripMenuItem_Click(object sender, EventArgs e) { ExecutionStack.SwapXY(); }
private void PopToolStripMenuItem1_Click(object sender, EventArgs e) { ExecutionStack.Pop(); }