using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsApp2 { public partial class Camera_glue : Form { public Camera_glue() { InitializeComponent(); } private void Camera_glue_Load(object sender, EventArgs e) { this.numericUpDown11.Value = DialogSetup.cam_setting.Cameraglue[0].shoot[0]; this.numericUpDown12.Value = DialogSetup.cam_setting.Cameraglue[0].shoot[1]; this.numericUpDown13.Value = DialogSetup.cam_setting.Cameraglue[0].shoot[2]; this.numericUpDown21.Value = DialogSetup.cam_setting.Cameraglue[1].shoot[0]; this.numericUpDown22.Value = DialogSetup.cam_setting.Cameraglue[1].shoot[1]; this.numericUpDown23.Value = DialogSetup.cam_setting.Cameraglue[1].shoot[2]; this.numericUpDown31.Value = DialogSetup.cam_setting.Cameraglue[2].shoot[0]; this.numericUpDown32.Value = DialogSetup.cam_setting.Cameraglue[2].shoot[1]; this.numericUpDown33.Value = DialogSetup.cam_setting.Cameraglue[2].shoot[2]; this.numericUpDown41.Value = DialogSetup.cam_setting.Cameraglue[3].shoot[0]; this.numericUpDown42.Value = DialogSetup.cam_setting.Cameraglue[3].shoot[1]; this.numericUpDown43.Value = DialogSetup.cam_setting.Cameraglue[3].shoot[2]; this.numericUpDown51.Value = DialogSetup.cam_setting.Cameraglue[4].shoot[0]; this.numericUpDown52.Value = DialogSetup.cam_setting.Cameraglue[4].shoot[1]; this.numericUpDown53.Value = DialogSetup.cam_setting.Cameraglue[4].shoot[2]; this.numericUpDown61.Value = DialogSetup.cam_setting.Cameraglue[5].shoot[0]; this.numericUpDown62.Value = DialogSetup.cam_setting.Cameraglue[5].shoot[1]; this.numericUpDown63.Value = DialogSetup.cam_setting.Cameraglue[5].shoot[2]; this.numericUpDown71.Value = DialogSetup.cam_setting.Cameraglue[6].shoot[0]; this.numericUpDown72.Value = DialogSetup.cam_setting.Cameraglue[6].shoot[1]; this.numericUpDown73.Value = DialogSetup.cam_setting.Cameraglue[6].shoot[2]; this.numericUpDown81.Value = DialogSetup.cam_setting.Cameraglue[7].shoot[0]; this.numericUpDown82.Value = DialogSetup.cam_setting.Cameraglue[7].shoot[1]; this.numericUpDown83.Value = DialogSetup.cam_setting.Cameraglue[7].shoot[2]; } private void button1_Click(object sender, EventArgs e) { DialogSetup.cam_setting.Cameraglue[0].shoot[0] = Convert.ToInt32(this.numericUpDown11.Value); DialogSetup.cam_setting.Cameraglue[0].shoot[1] = Convert.ToInt32(this.numericUpDown12.Value); DialogSetup.cam_setting.Cameraglue[0].shoot[2] = Convert.ToInt32(this.numericUpDown13.Value); DialogSetup.cam_setting.Cameraglue[1].shoot[0] = Convert.ToInt32(this.numericUpDown21.Value); DialogSetup.cam_setting.Cameraglue[1].shoot[1] = Convert.ToInt32(this.numericUpDown22.Value); DialogSetup.cam_setting.Cameraglue[1].shoot[2] = Convert.ToInt32(this.numericUpDown23.Value); DialogSetup.cam_setting.Cameraglue[2].shoot[0] = Convert.ToInt32(this.numericUpDown31.Value); DialogSetup.cam_setting.Cameraglue[2].shoot[1] = Convert.ToInt32(this.numericUpDown32.Value); DialogSetup.cam_setting.Cameraglue[2].shoot[2] = Convert.ToInt32(this.numericUpDown33.Value); DialogSetup.cam_setting.Cameraglue[3].shoot[0] = Convert.ToInt32(this.numericUpDown41.Value); DialogSetup.cam_setting.Cameraglue[3].shoot[1] = Convert.ToInt32(this.numericUpDown42.Value); DialogSetup.cam_setting.Cameraglue[3].shoot[2] = Convert.ToInt32(this.numericUpDown43.Value); DialogSetup.cam_setting.Cameraglue[4].shoot[0] = Convert.ToInt32(this.numericUpDown51.Value); DialogSetup.cam_setting.Cameraglue[4].shoot[1] = Convert.ToInt32(this.numericUpDown52.Value); DialogSetup.cam_setting.Cameraglue[4].shoot[2] = Convert.ToInt32(this.numericUpDown53.Value); DialogSetup.cam_setting.Cameraglue[5].shoot[0] = Convert.ToInt32(this.numericUpDown61.Value); DialogSetup.cam_setting.Cameraglue[5].shoot[1] = Convert.ToInt32(this.numericUpDown62.Value); DialogSetup.cam_setting.Cameraglue[5].shoot[2] = Convert.ToInt32(this.numericUpDown63.Value); DialogSetup.cam_setting.Cameraglue[6].shoot[0] = Convert.ToInt32(this.numericUpDown71.Value); DialogSetup.cam_setting.Cameraglue[6].shoot[1] = Convert.ToInt32(this.numericUpDown72.Value); DialogSetup.cam_setting.Cameraglue[6].shoot[2] = Convert.ToInt32(this.numericUpDown73.Value); DialogSetup.cam_setting.Cameraglue[7].shoot[0] = Convert.ToInt32(this.numericUpDown81.Value); DialogSetup.cam_setting.Cameraglue[7].shoot[1] = Convert.ToInt32(this.numericUpDown82.Value); DialogSetup.cam_setting.Cameraglue[7].shoot[2] = Convert.ToInt32(this.numericUpDown83.Value); /// this.Close(); MessageBox.Show("请点击‘保存参数’按钮,进行保存设置", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly); } } }