コード例 #1
0
ファイル: Factory.cs プロジェクト: molihub/LiveGeometry
        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);
        }
コード例 #2
0
ファイル: Factory.cs プロジェクト: molihub/LiveGeometry
        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);
        }
コード例 #3
0
ファイル: Factory.cs プロジェクト: ondrej11/o106
 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;
 }
コード例 #4
0
ファイル: Factory.cs プロジェクト: ondrej11/o106
 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;
 }