53 lines
1.3 KiB
C#
53 lines
1.3 KiB
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.ComponentModel;
|
|||
|
using System.Data;
|
|||
|
using System.Drawing;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using System.Windows.Forms;
|
|||
|
|
|||
|
namespace WindowsFormsApp1
|
|||
|
{
|
|||
|
public partial class Form2 : Form
|
|||
|
{
|
|||
|
public Form2()
|
|||
|
{
|
|||
|
InitializeComponent();
|
|||
|
}
|
|||
|
public float dx;
|
|||
|
public float dy;
|
|||
|
public float dz;
|
|||
|
public float dq1;
|
|||
|
public float dq2;
|
|||
|
public float dq3;
|
|||
|
public float dq4;
|
|||
|
internal bool oKorCancel;
|
|||
|
|
|||
|
private void button1_Click(object sender, EventArgs e)//獲取修改值
|
|||
|
{
|
|||
|
dx = Convert.ToSingle(textBox1.Text);
|
|||
|
dy = Convert.ToSingle(textBox2.Text);
|
|||
|
dz = Convert.ToSingle(textBox3.Text);
|
|||
|
dq1 = Convert.ToSingle(textBox4.Text);//採四元數法
|
|||
|
dq2 = Convert.ToSingle(textBox5.Text);
|
|||
|
dq3 = Convert.ToSingle(textBox6.Text);
|
|||
|
dq4 = Convert.ToSingle(textBox7.Text);
|
|||
|
oKorCancel = true;
|
|||
|
this.Hide();
|
|||
|
}
|
|||
|
|
|||
|
private void button2_Click(object sender, EventArgs e)
|
|||
|
{
|
|||
|
this.Hide();
|
|||
|
oKorCancel=false;
|
|||
|
}
|
|||
|
|
|||
|
private void Form2_Load(object sender, EventArgs e)
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
}
|