回覆列表
  • 1 # 使用者834195712159

    C# code private void InitializeFace(Array InitializeTDInfo)

    {

    if (InitializeTDInfo.Length > 0)

    {

    //需要判斷裡面的值是否為空

    for (Int32 i = 0; i < InitializeTDInfo.Length; i++)

    {

    Single r = ((TDFP.MyWebServiceRef.TDFPModel[])(InitializeTDInfo))[i].L1;//半徑

    Int32 x = ((TDFP.MyWebServiceRef.TDFPModel[])(InitializeTDInfo))[i].X;//圓點X座標

    Int32 y = ((TDFP.MyWebServiceRef.TDFPModel[])(InitializeTDInfo))[i].Y;//圓點Y座標

    Ellipse ellipseOne+ "i" = new Ellipse();//圓

    ellipseOne.Stroke = new SolidColorBrush(Color.FromArgb(255, 255, 255, 255));//動態設定Stroke屬性的方法。

    ellipseOne.StrokeThickness = 2;

    ellipseOne.Width = r * 2;

    ellipseOne.Height = r * 2;

    Canvas.SetLeft(ellipseOne, x - r);

    Canvas.SetTop(ellipseOne, y - r);

    panel.Children.Add(ellipseOne);

    ellipse.Add(ellipseOne);

    }

    }

    }

  • 中秋節和大豐收的關聯?
  • G6142都在哪些站下車?