Exemplo n.º 1
0
        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];
            }
            Interpreter2.Interpreter2 ip = new Interpreter2.Interpreter2();
            ip.MdiParent = this.MdiParent;
            ip.pcc       = pcc;
            ip.Index     = n;
            ip.InitInterpreter();
            ip.Show();
        }
Exemplo n.º 2
0
 public void Interpreter()
 {
     int n = GetSelected();
     if (n == -1 || !(CurrentView == 2 || CurrentView == 3))
         return;
     Interpreter2.Interpreter2 ip = new Interpreter2.Interpreter2();
     ip.MdiParent = this.MdiParent;
     ip.pcc = pcc;
     ip.Index = n;
     ip.InitInterpreter();
     ip.Show();
 }
Exemplo n.º 3
0
        public void Interpreter()
        {
            int n = GetSelected();

            if (n == -1 || !(CurrentView == 2 || CurrentView == 3))
            {
                return;
            }
            Interpreter2.Interpreter2 ip = new Interpreter2.Interpreter2();
            ip.MdiParent = this.MdiParent;
            ip.pcc       = pcc;
            ip.Index     = n;
            ip.InitInterpreter();
            ip.Show();
        }
Exemplo n.º 4
0
 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];
     Interpreter2.Interpreter2 ip = new Interpreter2.Interpreter2();
     ip.MdiParent = this.MdiParent;
     ip.pcc = pcc;
     ip.Index = n;
     ip.InitInterpreter();
     ip.Show();
 }