|
@@ -1291,7 +1291,7 @@ namespace HOZProject
|
|
|
double degree = 0;
|
|
|
int direction = 0;
|
|
|
int state = 0;
|
|
|
- wr.Img_OffsetAngle_Direction("D:/aaaa.jpg", out degree, out direction, out state);
|
|
|
+ wr.Img_OffsetAngle_Direction("D:/aaaa.jpg",1,"LG", out degree, out direction, out state);
|
|
|
lbldegree1.Text = degree.ToString("0.0");
|
|
|
lbldirection1.Text = direction.ToString();
|
|
|
lblstate1.Text = state.ToString();
|
|
@@ -1393,27 +1393,27 @@ namespace HOZProject
|
|
|
|
|
|
private void btnCreateConfig_Click(object sender, EventArgs e)
|
|
|
{
|
|
|
- ConfigManager cfm = new ConfigManager();
|
|
|
+ ConfigFile cfm = new ConfigFile();
|
|
|
cfm.PT_Depostion = chkpt0.Checked;
|
|
|
cfm.Template_File = txtTemplateFile.Text;
|
|
|
cfm.Sample_Name = txtSampleName.Text;
|
|
|
- cfm.M_Config_Param.Voltage = Convert.ToDouble(txtvoltage.Text);
|
|
|
- cfm.M_Config_Param.Magnification = Convert.ToDouble(txtMag.Text);
|
|
|
- cfm.M_Config_Param.Pixel_Size = Convert.ToDouble(txtpixel.Text);
|
|
|
+ //cfm.M_Config_Param.Voltage = Convert.ToDouble(txtvoltage.Text);
|
|
|
+ //cfm.M_Config_Param.Magnification = Convert.ToDouble(txtMag.Text);
|
|
|
+ //cfm.M_Config_Param.Pixel_Size = Convert.ToDouble(txtpixel.Text);
|
|
|
cfm.CreateXml(@"E:\test.cfg");
|
|
|
cfm.Save(@"E:\test.cfg");
|
|
|
}
|
|
|
|
|
|
private void btnReadConfig_Click(object sender, EventArgs e)
|
|
|
{
|
|
|
- ConfigManager cfm = new ConfigManager();
|
|
|
+ ConfigFile cfm = new ConfigFile();
|
|
|
cfm.Read(@"E:\test.cfg");
|
|
|
this.ckbPT.Checked = cfm.PT_Depostion;
|
|
|
this.lblTemplateFile.Text = cfm.Template_File;
|
|
|
this.lblSampleName.Text = cfm.Sample_Name;
|
|
|
- this.lblvoltage.Text = cfm.M_Config_Param.Voltage.ToString();
|
|
|
- this.lblmag.Text = cfm.M_Config_Param.Magnification.ToString();
|
|
|
- this.lblpixel.Text = cfm.M_Config_Param.Pixel_Size.ToString();
|
|
|
+ //this.lblvoltage.Text = cfm.M_Config_Param.Voltage.ToString();
|
|
|
+ //this.lblmag.Text = cfm.M_Config_Param.Magnification.ToString();
|
|
|
+ //this.lblpixel.Text = cfm.M_Config_Param.Pixel_Size.ToString();
|
|
|
}
|
|
|
}
|
|
|
}
|