Form1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Quiz4
{
public partial class Form1 : Form
{
PinBoard board = new PinBoard(); //建立板子
Triangle tri = new Triangle(); //建立三角形
Random rand = new Random(); //產生亂數
public Form1()
{
InitializeComponent();
}
private void btnToWork1_Click(object sender, EventArgs e)
{
board.rows = int.Parse(txtRows.Text);
board.cols = int.Parse(txtColumns.Text);
board.rowInterval = Double.Parse(txtRowInterval.Text);
board.colInterval = Double.Parse(txtColumnInterval.Text);
board.CreatePins();
txtPoint1Row.AppendText("");
TrianglePin:
for (int i = 0; i < 3; i++)
{
//以亂數產生三角形的三個點
tri.pointArray[i] = board.pinArray[rand.Next(board.cols), rand.Next(board.rows)];
}
if (!tri.IsTriangulable())
{
goto TrianglePin;
}
txtPoint1Column.Text = tri.pointArray[0].x.ToString();
txtPoint1Row.Text = tri.pointArray[0].y.ToString();
txtPoint2Column.Text = tri.pointArray[1].x.ToString();
txtPoint2Row.Text = tri.pointArray[1].y.ToString();
txtPoint3Column.Text = tri.pointArray[2].x.ToString();
txtPoint3Row.Text = tri.pointArray[2].y.ToString();
txtPoint1X.Text = tri.pointArray[0].xCoordinate.ToString();
txtPoint1Y.Text = tri.pointArray[0].yCoordinate.ToString();
txtPoint2X.Text = tri.pointArray[1].xCoordinate.ToString();
txtPoint2Y.Text = tri.pointArray[1].yCoordinate.ToString();
txtPoint3X.Text = tri.pointArray[2].xCoordinate.ToString();
txtPoint3Y.Text = tri.pointArray[2].yCoordinate.ToString();
}
private void btnToWork2_Click(object sender, EventArgs e)
{
txtDisplay.Clear();
Triangle tri2 = new Triangle();
tri2.pointArray[0] = board.pinArray[int.Parse(txtPoint1Column.Text), int.Parse(txtPoint1Row.Text)];
tri2.pointArray[1] = board.pinArray[int.Parse(txtPoint2Column.Text), int.Parse(txtPoint2Row.Text)];
tri2.pointArray[2] = board.pinArray[int.Parse(txtPoint3Column.Text), int.Parse(txtPoint3Row.Text)];
txtPoint1X.Text = (Double.Parse(txtPoint1Column.Text) * Double.Parse(txtColumnInterval.Text)).ToString();
txtPoint1Y.Text = (Double.Parse(txtPoint1Row.Text) * Double.Parse(txtRowInterval.Text)).ToString();
txtPoint2X.Text = (Double.Parse(txtPoint2Column.Text) * Double.Parse(txtColumnInterval.Text)).ToString();
txtPoint2Y.Text = (Double.Parse(txtPoint2Row.Text) * Double.Parse(txtRowInterval.Text)).ToString();
txtPoint3X.Text = (Double.Parse(txtPoint3Column.Text) * Double.Parse(txtColumnInterval.Text)).ToString();
txtPoint3Y.Text = (Double.Parse(txtPoint3Row.Text) * Double.Parse(txtRowInterval.Text)).ToString();
txtDisplay.AppendText("三角形的周長是:" + tri2.Perimeter().ToString() + Environment.NewLine);
txtDisplay.AppendText("三角形的面積是:" + tri2.Area().ToString() + Environment.NewLine);
txtDisplay.AppendText("三角形的外接圓半徑是:" + tri2.RadiusOfCircumcircle().ToString() + Environment.NewLine);
}
}
}
Triangle.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Quiz4
{
class Triangle
{
public Point[] pointArray = new Point[3]; //建立三角形的三個點
public bool IsTriangulable()//判斷是否符合構成三角形的條件
{
double lengthA = pointArray[0].DistanceBetweenTwoPoints(pointArray[1]);
double lengthB = pointArray[1].DistanceBetweenTwoPoints(pointArray[2]);
double lengthC = pointArray[2].DistanceBetweenTwoPoints(pointArray[0]);
double temp = 0;
while (true)
{
if (lengthB > lengthA) //將lengthA變為最長邊
{
temp = lengthB;
lengthB = lengthA;
lengthA = temp;
}
else if (lengthC > lengthB)//lengthC變為最短邊
{
temp = lengthC;
lengthC = lengthB;
lengthB = temp;
}
else
{
break;
}
}
if (lengthA < (lengthB + lengthC)) //三角形兩邊和大於第三邊
{
return true;
}
else
{
return false;
}
}
public double Perimeter() //計算三角形的周長
{
//由DistanceTo()計算兩點間的距離算出三角形三邊之邊長
double lengthA = pointArray[0].DistanceBetweenTwoPoints(pointArray[1]);
double lengthB = pointArray[1].DistanceBetweenTwoPoints(pointArray[2]);
double lengthC = pointArray[2].DistanceBetweenTwoPoints(pointArray[0]);
return lengthA + lengthB + lengthC;
}
public double Area()
{
double lengthA = pointArray[0].DistanceBetweenTwoPoints(pointArray[1]);
double lengthB = pointArray[1].DistanceBetweenTwoPoints(pointArray[2]);
double lengthC = pointArray[2].DistanceBetweenTwoPoints(pointArray[0]);
//以海龍公式計算三角形面積
return Math.Sqrt((0.5 * this.Perimeter()) * (0.5 * this.Perimeter() - lengthA) * (0.5 * this.Perimeter() - lengthB) * (0.5 * this.Perimeter() - lengthC));
}
public double RadiusOfCircumcircle()
{
double lengthA = pointArray[0].DistanceBetweenTwoPoints(pointArray[1]);
double lengthB = pointArray[1].DistanceBetweenTwoPoints(pointArray[2]);
double lengthC = pointArray[2].DistanceBetweenTwoPoints(pointArray[0]);
return (lengthA * lengthB * lengthC) / (4 * this.Area());
//由餘弦公式計算出角A之餘弦值
//double cosA = (lengthB * lengthB + lengthC * lengthC - lengthA * lengthA) / (2 * lengthB * lengthC);
//double sinA = Math.Sqrt(1 - cosA * cosA);
//求得外接圓半徑
//return 0.5 * lengthA / sinA;
}
}
}
PinBoard.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Quiz4
{
class PinBoard
{
public int rows;
public int cols;
public Double rowInterval;
public Double colInterval;
public Point[,] pinArray;
public void CreatePins() //產生矩陣各點之位置,並依行列間距計算出各點x.y之座標,
{
pinArray = new Point[cols, rows];
for (int i = 0; i < cols; i++)
{
for (int j = 0; j < rows; j++)
{
pinArray[i, j] = new Point();
pinArray[i, j].x = i;
pinArray[i, j].y = j;
pinArray[i, j].xCoordinate = (pinArray[i, j].x * colInterval);
pinArray[i, j].yCoordinate = (pinArray[i, j].y * rowInterval);
}
}
}
}
}
MyPoint.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Quiz4
{
class Point
{
public double x;
public double y;
public double xCoordinate;
public double yCoordinate;
public double DistanceBetweenTwoPoints(Point pin) //計算該點和某點之間的距離
{
return Math.Sqrt(Math.Pow((pin.xCoordinate - this.xCoordinate), 2) + Math.Pow((pin.yCoordinate - this.yCoordinate), 2));
}
}
}
Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace Quiz4
{
static class Program
{
///
/// 應用程式的主要進入點。
///
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
Form1.Designer.cs(按我顯示)
namespace Quiz4
{
partial class Form1
{
///
/// 設計工具所需的變數。
///
private System.ComponentModel.IContainer components = null;
///
/// 清除任何使用中的資源。
///
/// 如果應該處置 Managed 資源則為 true,否則為 false。
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form 設計工具產生的程式碼
///
/// 此為設計工具支援所需的方法 - 請勿使用程式碼編輯器
/// 修改這個方法的內容。
///
private void InitializeComponent()
{
this.btnToWork1 = new System.Windows.Forms.Button();
this.lblRows = new System.Windows.Forms.Label();
this.txtDisplay = new System.Windows.Forms.TextBox();
this.txtRows = new System.Windows.Forms.TextBox();
this.txtColumns = new System.Windows.Forms.TextBox();
this.txtColumnInterval = new System.Windows.Forms.TextBox();
this.txtRowInterval = new System.Windows.Forms.TextBox();
this.lblRowInterval = new System.Windows.Forms.Label();
this.lblColumns = new System.Windows.Forms.Label();
this.lblColumnInterval = new System.Windows.Forms.Label();
this.gbox1 = new System.Windows.Forms.GroupBox();
this.gbox2 = new System.Windows.Forms.GroupBox();
this.txtPoint3Y = new System.Windows.Forms.TextBox();
this.txtPoint1Y = new System.Windows.Forms.TextBox();
this.txtPoint2Y = new System.Windows.Forms.TextBox();
this.lblCoordY = new System.Windows.Forms.Label();
this.lblCoordX = new System.Windows.Forms.Label();
this.lblColumn = new System.Windows.Forms.Label();
this.lblRow = new System.Windows.Forms.Label();
this.txtPoint3X = new System.Windows.Forms.TextBox();
this.txtPoint1X = new System.Windows.Forms.TextBox();
this.txtPoint2X = new System.Windows.Forms.TextBox();
this.lblPoint3 = new System.Windows.Forms.Label();
this.txtPoint3Row = new System.Windows.Forms.TextBox();
this.txtPoint3Column = new System.Windows.Forms.TextBox();
this.btnToWork2 = new System.Windows.Forms.Button();
this.lblPoint1 = new System.Windows.Forms.Label();
this.txtPoint1Row = new System.Windows.Forms.TextBox();
this.lblPoint2 = new System.Windows.Forms.Label();
this.txtPoint1Column = new System.Windows.Forms.TextBox();
this.txtPoint2Column = new System.Windows.Forms.TextBox();
this.txtPoint2Row = new System.Windows.Forms.TextBox();
this.gbox1.SuspendLayout();
this.gbox2.SuspendLayout();
this.SuspendLayout();
//
// btnToWork1
//
this.btnToWork1.Location = new System.Drawing.Point(340, 69);
this.btnToWork1.Name = "btnToWork1";
this.btnToWork1.Size = new System.Drawing.Size(127, 23);
this.btnToWork1.TabIndex = 0;
this.btnToWork1.Text = "Generate Triangle";
this.btnToWork1.UseVisualStyleBackColor = true;
this.btnToWork1.Click += new System.EventHandler(this.btnToWork1_Click);
//
// lblRows
//
this.lblRows.AutoSize = true;
this.lblRows.Location = new System.Drawing.Point(20, 57);
this.lblRows.Name = "lblRows";
this.lblRows.Size = new System.Drawing.Size(31, 12);
this.lblRows.TabIndex = 1;
this.lblRows.Text = "Rows";
//
// txtDisplay
//
this.txtDisplay.Location = new System.Drawing.Point(582, 22);
this.txtDisplay.Multiline = true;
this.txtDisplay.Name = "txtDisplay";
this.txtDisplay.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.txtDisplay.Size = new System.Drawing.Size(471, 364);
this.txtDisplay.TabIndex = 2;
//
// txtRows
//
this.txtRows.Location = new System.Drawing.Point(55, 50);
this.txtRows.Name = "txtRows";
this.txtRows.Size = new System.Drawing.Size(100, 22);
this.txtRows.TabIndex = 3;
//
// txtColumns
//
this.txtColumns.Location = new System.Drawing.Point(214, 50);
this.txtColumns.Name = "txtColumns";
this.txtColumns.Size = new System.Drawing.Size(100, 22);
this.txtColumns.TabIndex = 4;
//
// txtColumnInterval
//
this.txtColumnInterval.Location = new System.Drawing.Point(55, 89);
this.txtColumnInterval.Name = "txtColumnInterval";
this.txtColumnInterval.Size = new System.Drawing.Size(100, 22);
this.txtColumnInterval.TabIndex = 5;
//
// txtRowInterval
//
this.txtRowInterval.Location = new System.Drawing.Point(214, 89);
this.txtRowInterval.Name = "txtRowInterval";
this.txtRowInterval.Size = new System.Drawing.Size(100, 22);
this.txtRowInterval.TabIndex = 6;
//
// lblRowInterval
//
this.lblRowInterval.AutoSize = true;
this.lblRowInterval.Location = new System.Drawing.Point(159, 92);
this.lblRowInterval.Name = "lblRowInterval";
this.lblRowInterval.Size = new System.Drawing.Size(49, 12);
this.lblRowInterval.TabIndex = 7;
this.lblRowInterval.Text = "YInterval";
//
// lblColumns
//
this.lblColumns.AutoSize = true;
this.lblColumns.Location = new System.Drawing.Point(161, 57);
this.lblColumns.Name = "lblColumns";
this.lblColumns.Size = new System.Drawing.Size(47, 12);
this.lblColumns.TabIndex = 8;
this.lblColumns.Text = "Columns";
//
// lblColumnInterval
//
this.lblColumnInterval.AutoSize = true;
this.lblColumnInterval.Location = new System.Drawing.Point(6, 92);
this.lblColumnInterval.Name = "lblColumnInterval";
this.lblColumnInterval.Size = new System.Drawing.Size(49, 12);
this.lblColumnInterval.TabIndex = 9;
this.lblColumnInterval.Text = "XInterval";
//
// gbox1
//
this.gbox1.Controls.Add(this.btnToWork1);
this.gbox1.Controls.Add(this.lblColumnInterval);
this.gbox1.Controls.Add(this.lblRows);
this.gbox1.Controls.Add(this.lblColumns);
this.gbox1.Controls.Add(this.txtRows);
this.gbox1.Controls.Add(this.lblRowInterval);
this.gbox1.Controls.Add(this.txtColumns);
this.gbox1.Controls.Add(this.txtRowInterval);
this.gbox1.Controls.Add(this.txtColumnInterval);
this.gbox1.Location = new System.Drawing.Point(29, 22);
this.gbox1.Name = "gbox1";
this.gbox1.Size = new System.Drawing.Size(525, 132);
this.gbox1.TabIndex = 10;
this.gbox1.TabStop = false;
this.gbox1.Text = "PinBoard Perimeters";
//
// gbox2
//
this.gbox2.Controls.Add(this.txtPoint3Y);
this.gbox2.Controls.Add(this.txtPoint1Y);
this.gbox2.Controls.Add(this.txtPoint2Y);
this.gbox2.Controls.Add(this.lblCoordY);
this.gbox2.Controls.Add(this.lblCoordX);
this.gbox2.Controls.Add(this.lblColumn);
this.gbox2.Controls.Add(this.lblRow);
this.gbox2.Controls.Add(this.txtPoint3X);
this.gbox2.Controls.Add(this.txtPoint1X);
this.gbox2.Controls.Add(this.txtPoint2X);
this.gbox2.Controls.Add(this.lblPoint3);
this.gbox2.Controls.Add(this.txtPoint3Row);
this.gbox2.Controls.Add(this.txtPoint3Column);
this.gbox2.Controls.Add(this.btnToWork2);
this.gbox2.Controls.Add(this.lblPoint1);
this.gbox2.Controls.Add(this.txtPoint1Row);
this.gbox2.Controls.Add(this.lblPoint2);
this.gbox2.Controls.Add(this.txtPoint1Column);
this.gbox2.Controls.Add(this.txtPoint2Column);
this.gbox2.Controls.Add(this.txtPoint2Row);
this.gbox2.Location = new System.Drawing.Point(29, 170);
this.gbox2.Name = "gbox2";
this.gbox2.Size = new System.Drawing.Size(525, 216);
this.gbox2.TabIndex = 11;
this.gbox2.TabStop = false;
this.gbox2.Text = "Coordinates of Triangle";
//
// txtPoint3Y
//
this.txtPoint3Y.Enabled = false;
this.txtPoint3Y.Location = new System.Drawing.Point(407, 140);
this.txtPoint3Y.Name = "txtPoint3Y";
this.txtPoint3Y.Size = new System.Drawing.Size(100, 22);
this.txtPoint3Y.TabIndex = 26;
//
// txtPoint1Y
//
this.txtPoint1Y.Enabled = false;
this.txtPoint1Y.Location = new System.Drawing.Point(407, 50);
this.txtPoint1Y.Name = "txtPoint1Y";
this.txtPoint1Y.Size = new System.Drawing.Size(100, 22);
this.txtPoint1Y.TabIndex = 24;
//
// txtPoint2Y
//
this.txtPoint2Y.Enabled = false;
this.txtPoint2Y.Location = new System.Drawing.Point(407, 99);
this.txtPoint2Y.Name = "txtPoint2Y";
this.txtPoint2Y.Size = new System.Drawing.Size(100, 22);
this.txtPoint2Y.TabIndex = 25;
//
// lblCoordY
//
this.lblCoordY.AutoSize = true;
this.lblCoordY.Location = new System.Drawing.Point(437, 35);
this.lblCoordY.Name = "lblCoordY";
this.lblCoordY.Size = new System.Drawing.Size(13, 12);
this.lblCoordY.TabIndex = 23;
this.lblCoordY.Text = "Y";
//
// lblCoordX
//
this.lblCoordX.AutoSize = true;
this.lblCoordX.Location = new System.Drawing.Point(321, 35);
this.lblCoordX.Name = "lblCoordX";
this.lblCoordX.Size = new System.Drawing.Size(13, 12);
this.lblCoordX.TabIndex = 22;
this.lblCoordX.Text = "X";
//
// lblColumn
//
this.lblColumn.AutoSize = true;
this.lblColumn.Location = new System.Drawing.Point(204, 35);
this.lblColumn.Name = "lblColumn";
this.lblColumn.Size = new System.Drawing.Size(43, 12);
this.lblColumn.TabIndex = 21;
this.lblColumn.Text = "Column";
//
// lblRow
//
this.lblRow.AutoSize = true;
this.lblRow.Location = new System.Drawing.Point(85, 35);
this.lblRow.Name = "lblRow";
this.lblRow.Size = new System.Drawing.Size(27, 12);
this.lblRow.TabIndex = 20;
this.lblRow.Text = "Row";
//
// txtPoint3X
//
this.txtPoint3X.Enabled = false;
this.txtPoint3X.Location = new System.Drawing.Point(291, 140);
this.txtPoint3X.Name = "txtPoint3X";
this.txtPoint3X.Size = new System.Drawing.Size(100, 22);
this.txtPoint3X.TabIndex = 18;
//
// txtPoint1X
//
this.txtPoint1X.Enabled = false;
this.txtPoint1X.Location = new System.Drawing.Point(291, 50);
this.txtPoint1X.Name = "txtPoint1X";
this.txtPoint1X.Size = new System.Drawing.Size(100, 22);
this.txtPoint1X.TabIndex = 14;
//
// txtPoint2X
//
this.txtPoint2X.Enabled = false;
this.txtPoint2X.Location = new System.Drawing.Point(291, 99);
this.txtPoint2X.Name = "txtPoint2X";
this.txtPoint2X.Size = new System.Drawing.Size(100, 22);
this.txtPoint2X.TabIndex = 16;
//
// lblPoint3
//
this.lblPoint3.AutoSize = true;
this.lblPoint3.Location = new System.Drawing.Point(16, 143);
this.lblPoint3.Name = "lblPoint3";
this.lblPoint3.Size = new System.Drawing.Size(35, 12);
this.lblPoint3.TabIndex = 10;
this.lblPoint3.Text = "Point3";
//
// txtPoint3Row
//
this.txtPoint3Row.Location = new System.Drawing.Point(55, 140);
this.txtPoint3Row.Name = "txtPoint3Row";
this.txtPoint3Row.Size = new System.Drawing.Size(100, 22);
this.txtPoint3Row.TabIndex = 11;
//
// txtPoint3Column
//
this.txtPoint3Column.Location = new System.Drawing.Point(174, 140);
this.txtPoint3Column.Name = "txtPoint3Column";
this.txtPoint3Column.Size = new System.Drawing.Size(100, 22);
this.txtPoint3Column.TabIndex = 12;
//
// btnToWork2
//
this.btnToWork2.Location = new System.Drawing.Point(410, 187);
this.btnToWork2.Name = "btnToWork2";
this.btnToWork2.Size = new System.Drawing.Size(75, 23);
this.btnToWork2.TabIndex = 0;
this.btnToWork2.Text = "Calculate";
this.btnToWork2.UseVisualStyleBackColor = true;
this.btnToWork2.Click += new System.EventHandler(this.btnToWork2_Click);
//
// lblPoint1
//
this.lblPoint1.AutoSize = true;
this.lblPoint1.Location = new System.Drawing.Point(16, 53);
this.lblPoint1.Name = "lblPoint1";
this.lblPoint1.Size = new System.Drawing.Size(35, 12);
this.lblPoint1.TabIndex = 1;
this.lblPoint1.Text = "Point1";
//
// txtPoint1Row
//
this.txtPoint1Row.Location = new System.Drawing.Point(55, 50);
this.txtPoint1Row.Name = "txtPoint1Row";
this.txtPoint1Row.Size = new System.Drawing.Size(100, 22);
this.txtPoint1Row.TabIndex = 3;
//
// lblPoint2
//
this.lblPoint2.AutoSize = true;
this.lblPoint2.Location = new System.Drawing.Point(16, 102);
this.lblPoint2.Name = "lblPoint2";
this.lblPoint2.Size = new System.Drawing.Size(35, 12);
this.lblPoint2.TabIndex = 7;
this.lblPoint2.Text = "Point2";
//
// txtPoint1Column
//
this.txtPoint1Column.Location = new System.Drawing.Point(174, 50);
this.txtPoint1Column.Name = "txtPoint1Column";
this.txtPoint1Column.Size = new System.Drawing.Size(100, 22);
this.txtPoint1Column.TabIndex = 4;
//
// txtPoint2Column
//
this.txtPoint2Column.Location = new System.Drawing.Point(174, 99);
this.txtPoint2Column.Name = "txtPoint2Column";
this.txtPoint2Column.Size = new System.Drawing.Size(100, 22);
this.txtPoint2Column.TabIndex = 6;
//
// txtPoint2Row
//
this.txtPoint2Row.Location = new System.Drawing.Point(55, 99);
this.txtPoint2Row.Name = "txtPoint2Row";
this.txtPoint2Row.Size = new System.Drawing.Size(100, 22);
this.txtPoint2Row.TabIndex = 5;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1065, 401);
this.Controls.Add(this.gbox2);
this.Controls.Add(this.gbox1);
this.Controls.Add(this.txtDisplay);
this.Name = "Form1";
this.Text = "Form1";
this.gbox1.ResumeLayout(false);
this.gbox1.PerformLayout();
this.gbox2.ResumeLayout(false);
this.gbox2.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button btnToWork1;
private System.Windows.Forms.Label lblRows;
private System.Windows.Forms.TextBox txtDisplay;
private System.Windows.Forms.TextBox txtRows;
private System.Windows.Forms.TextBox txtColumns;
private System.Windows.Forms.TextBox txtColumnInterval;
private System.Windows.Forms.TextBox txtRowInterval;
private System.Windows.Forms.Label lblRowInterval;
private System.Windows.Forms.Label lblColumns;
private System.Windows.Forms.Label lblColumnInterval;
private System.Windows.Forms.GroupBox gbox1;
private System.Windows.Forms.GroupBox gbox2;
private System.Windows.Forms.Label lblCoordY;
private System.Windows.Forms.Label lblCoordX;
private System.Windows.Forms.Label lblColumn;
private System.Windows.Forms.Label lblRow;
private System.Windows.Forms.TextBox txtPoint3X;
private System.Windows.Forms.TextBox txtPoint1X;
private System.Windows.Forms.TextBox txtPoint2X;
private System.Windows.Forms.Label lblPoint3;
private System.Windows.Forms.TextBox txtPoint3Row;
private System.Windows.Forms.TextBox txtPoint3Column;
private System.Windows.Forms.Button btnToWork2;
private System.Windows.Forms.Label lblPoint1;
private System.Windows.Forms.TextBox txtPoint1Row;
private System.Windows.Forms.Label lblPoint2;
private System.Windows.Forms.TextBox txtPoint1Column;
private System.Windows.Forms.TextBox txtPoint2Column;
private System.Windows.Forms.TextBox txtPoint2Row;
private System.Windows.Forms.TextBox txtPoint3Y;
private System.Windows.Forms.TextBox txtPoint1Y;
private System.Windows.Forms.TextBox txtPoint2Y;
}
}
沒有留言:
張貼留言