private Statement readFS() { ForkStatement fs = new ForkStatement(); Console.WriteLine("Input fork's statement"); fs.setS(readStatement()); return(fs); }
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(); }