예제 #1
0
        public void Parse(string s)
        {
            StringExpr = s;
            var p = s.Split(';');

            if (p.Length != 2)
            {
                return;
            }

            _text.SetRawExpression(p[0]);
            _size.SetRawExpression(p[1]);
            FormattedText = GetText();
        }
예제 #2
0
 private void ValueTextBoxTextChanged(object sender, EventArgs eventArgs)
 {
     if (!_ignoreTextChange && !string.IsNullOrWhiteSpace(textBox2.Text))
     {
         if (Expr == null)
         {
             Expr = DataStorage.Add(new ScalarExpression("data", textBox1.Text, textBox2.Text));
             Expr.ValueChanged += ExprValueChanged;
         }
         else
         {
             Expr.SetRawExpression(textBox2.Text);
         }
         StepManager.RefreshToCurrentStep();
     }
 }
예제 #3
0
        public void Parse(string s)
        {
            StringExpr = s;
            var p = s.Split(';');

            if (p.Length != 4)
            {
                return;
            }

            _r.SetRawExpression(p[0]);
            _g.SetRawExpression(p[1]);
            _b.SetRawExpression(p[2]);
            _a.SetRawExpression(p[3]);
            Brush = new SolidColorBrush(GetColor());
            Brush.Freeze();
            Pen = new Pen(Brush, 2);
            Pen.Freeze();
        }