Ejemplo n.º 1
0
        private Statement readFS()
        {
            ForkStatement fs = new ForkStatement();

            Console.WriteLine("Input fork's statement");
            fs.setS(readStatement());
            return(fs);
        }
Ejemplo n.º 2
0
        void ButtonForkClick(object sender, EventArgs e)
        {
            Statement st = null;

            using (StatementForm sf = new StatementForm("Fork's Statement"))
            {
                if (sf.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    st = sf.getStatement();
                }
            }
            ForkStatement fs = new ForkStatement();

            fs.setS(st);
            this.stmt = fs;
            finished();
        }