Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            string s = textBox1.Text;

            tree = new TParser(ClientRectangle.Width, ClientRectangle.Height);
            tree.Recyrse(s, out tree.top);
            tree.SetXY(tree.top, 200, 60);
            label1.Text = "= " + Convert.ToString(tree.top.Value);
            MyDraw();
        }
Ejemplo n.º 2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            g = CreateGraphics();
            string s = textBox1.Text;

            tree = new TParser(ClientRectangle.Width, ClientRectangle.Height);
            tree.Recyrse(s, out tree.top);
            tree.SetXY(tree.top, 200, 60);
            label1.Text = "= " + Convert.ToString(tree.top.Value);
            MyDraw();
        }