|
@@ -21,6 +21,9 @@ namespace HOZProject
|
|
{
|
|
{
|
|
public partial class FormUnitControl : Form
|
|
public partial class FormUnitControl : Form
|
|
{
|
|
{
|
|
|
|
+ //全局只有一个fatorySEM
|
|
|
|
+ FactoryHardware factorySEM = FactoryHardware.Instance;
|
|
|
|
+
|
|
#region 系统参数
|
|
#region 系统参数
|
|
private String path = Directory.GetCurrentDirectory();
|
|
private String path = Directory.GetCurrentDirectory();
|
|
private SmartSEM sem = new SmartSEM();
|
|
private SmartSEM sem = new SmartSEM();
|
|
@@ -29,7 +32,8 @@ namespace HOZProject
|
|
#region 构造函数
|
|
#region 构造函数
|
|
public FormUnitControl()
|
|
public FormUnitControl()
|
|
{
|
|
{
|
|
- InitializeComponent();
|
|
|
|
|
|
+ InitializeComponent();
|
|
|
|
+
|
|
|
|
|
|
//Calling Notification for updated status
|
|
//Calling Notification for updated status
|
|
//CZEMApi.Notify += new _EMApiEvents_NotifyEventHandler(CZEMApi_Notify);
|
|
//CZEMApi.Notify += new _EMApiEvents_NotifyEventHandler(CZEMApi_Notify);
|
|
@@ -187,6 +191,10 @@ namespace HOZProject
|
|
#region 缩放Get
|
|
#region 缩放Get
|
|
private void btnenlargeGet_Click(object sender, EventArgs e)
|
|
private void btnenlargeGet_Click(object sender, EventArgs e)
|
|
{
|
|
{
|
|
|
|
+ ISEMControl iSEM = factorySEM.ISEM;
|
|
|
|
+ iSEM.GetMagnification();
|
|
|
|
+
|
|
|
|
+
|
|
float ret = sem.GetMagnification();
|
|
float ret = sem.GetMagnification();
|
|
if (float.IsNaN(ret))
|
|
if (float.IsNaN(ret))
|
|
{
|
|
{
|