private void interpretToolStripMenuItem_Click(object sender, EventArgs e) { int n = listBox1.SelectedIndex; if (listBox1.SelectedIndex == -1) { if (treeView1.SelectedNode == null) return; else n = Convert.ToInt32(treeView1.SelectedNode.Name); } else n = CurrentObjects[n]; InterpreterHost ip = new InterpreterHost(pcc.FileName, n); ip.Text = "Interpreter (SequenceEditor)"; ip.Show(); }
public void Interpreter() { int n; if (pcc == null || !GetSelected(out n) || n < 0) { return; } InterpreterHost ip = new InterpreterHost(pcc.FileName, n); ip.Text = "Interpreter (Package Editor)"; ip.MdiParent = this.MdiParent; ip.Show(); }