Beispiel #1
0
        public static PointByCoordinates CreatePointByCoordinates(Drawing drawing, Func <double> xValueProvider, Func <double> yValueProvider)
        {
            var result = new PointByCoordinates()
            {
                Drawing = drawing
            };

            result.XExpression.Value = xValueProvider;
            result.YExpression.Value = yValueProvider;
            return(result);
        }
Beispiel #2
0
        public static PointByCoordinates CreatePointByCoordinates(Drawing drawing, string x, string y)
        {
            var result = new PointByCoordinates()
            {
                Drawing = drawing
            };

            result.XExpression.Text = x;
            result.YExpression.Text = y;
            result.XExpression.Recalculate();
            result.YExpression.Recalculate();
            return(result);
        }