//Задать фигуру public void SetShape(Shape shape) { Shape = shape; if (shape.Type == MsoShapeType.msoGroup) { var parsing = new ShapeViewParsing(); Node = (ProgNode)parsing.Parse(Shape, Formula); ErrMess = parsing.Keeper.ErrMess; } }
private void ButCondition_Click(object sender, EventArgs e) { var parsing = new ShapeViewParsing(); Result.Text = parsing.Parse(null, Formula.Text).ToTestString(); if (!parsing.Keeper.ErrMess.IsEmpty()) { Result.Text += parsing.Keeper.ErrMess; } }