Esempio n. 1
0
        private void btnApplyCalibration_Click(object sender, EventArgs e)
        {
            if (VerificationBox.Show() != DialogResult.Yes)
            {
                return;
            }

            Rectifier.EditBlockInputParams((ObservableCollection <RectifiedParam>)dataGridView1.DataSource,
                                           new List <Tuple <string, string> >()
            {
                new Tuple <string, string>("Y1", "Y1Offset"),
                new Tuple <string, string>("Y2", "Y2Offset"),
                new Tuple <string, string>("Angle", "AngleOffset"),
                new Tuple <string, string>("m", "mX"),
            }, ref UVGlue._block);

            try
            {
                UVGlue.SaveVPP();
                UVGlue.BackupVPP();
                MessageBox.Show("应用并保存成功");
            }
            catch
            {
                MessageBox.Show("保存失败");
            }
        }
Esempio n. 2
0
 public new static DialogResult Show()
 {
     _staticBox = new VerificationBox();
     _staticBox.ShowDialog();
     return(_staticResult);
 }