public override void OnClick() { foreach (System.Windows.Forms.Form form in Application.OpenForms) { if (form.Name.Equals("MeasureResult")) { MeasureResult m_form = (MeasureResult)form; m_form.closeauto = true; form.Close(); break; } } Init(); ///20140218 lyf ���������ʾ���� if (m_frmMeasureResult == null || m_frmMeasureResult.IsDisposed) m_frmMeasureResult = new MeasureResult(m_hookHelper); m_frmMeasureResult.Show(); m_frmMeasureResult.TopMost = true; m_frmMeasureResult.tsmiDistanceUnit.Visible = false; }
public override void OnClick() { foreach (System.Windows.Forms.Form form in Application.OpenForms) { if (form.Name.Equals("MeasureResult")) { MeasureResult m_form = (MeasureResult)form; m_form.closeauto = true; form.Close(); break; } } Init(); ///20140218 lyf 弹出结果显示窗体 if (m_frmMeasureResult == null || m_frmMeasureResult.IsDisposed) { m_frmMeasureResult = new MeasureResult(m_hookHelper); } m_frmMeasureResult.Show(); m_frmMeasureResult.TopMost = true; m_frmMeasureResult.tsmiDistanceUnit.Visible = false; }
public override void OnClick() { //初始化 foreach (System.Windows.Forms.Form form in Application.OpenForms) { if (form.Name.Equals("MeasureResult")) { MeasureResult m_form = (MeasureResult)form; m_form.closeauto = true; form.Close(); break; } } Init(); ///20140218 lyf 弹出结果显示窗体 if (_MsgInfo == null || _MsgInfo.IsDisposed) { _MsgInfo = new MeasureResult(m_hookHelper); } _MsgInfo.Show(); _MsgInfo.TopMost = true; _MsgInfo.tsmiAreaUnit.Visible = false; }
void msgInfo_FromClosing(object sender, FormClosingEventArgs e) { //DeleteAllElements(m_hookHelper); _MsgInfo = null; }
void msgInfo_FromClosing(object sender, FormClosingEventArgs e) { //DeleteAllElements(m_hookHelper); _MsgInfo = null; }
public override void OnClick() { //��ʼ�� foreach (System.Windows.Forms.Form form in Application.OpenForms) { if (form.Name.Equals("MeasureResult")) { MeasureResult m_form = (MeasureResult)form; m_form.closeauto = true; form.Close(); break; } } Init(); ///20140218 lyf ���������ʾ���� if (_MsgInfo == null || _MsgInfo.IsDisposed) _MsgInfo = new MeasureResult(m_hookHelper); _MsgInfo.Show(); _MsgInfo.TopMost = true; _MsgInfo.tsmiAreaUnit.Visible = false; }