Exemplo n.º 1
0
 private void btnTool_Click(object sender, EventArgs e)
 {
     if (HTM.LoadUI() < 0)
     {
         HTUi.PopError("打开轴调试助手界面失败");
     }
 }
Exemplo n.º 2
0
        /// <summary>显示一个对话框窗口</summary>
        public void ShowCfgDialog()
        {
            if (!IsDeviceOpen)
            {
                MessageBox.Show("打开配置界面失败,Error:运动控制卡未打开!");
                return;
            }
            int opt = HTM.LoadUI();

            if (opt != 0)
            {
                throw new Exception("ShowCfgDialog() failed By:HTM.LoadUI(true) return Errorcode = " + opt);
            }
            return;
        }
Exemplo n.º 3
0
        public JFRealtimeUI GetRealtimeUI()
        {
            JFRealtimeUI ret = new JFRealtimeUI();

            if (!IsDeviceOpen)
            {
                return(ret);
            }
            ret.AutoScroll = true;
            int opt = HTM.LoadUI(ret);

            if (opt != 0)
            {
                throw new Exception("GetRealtimeUI() failed by HTM.LoadUI() return Errorcode = " + opt);
            }
            return(ret);
        }
Exemplo n.º 4
0
        /// <summary>
        /// 配置轨道宽度
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnFixTrack_Click(object sender, EventArgs e)
        {
            switch (HTUi.PopSelect("请在以下选项中选择配置导轨方式。", "直接配置", "轴调试助手", "取消"))
            {
            case 0:
                //保存为选中产品的轨道宽度

                break;

            case 1:
                if (HTM.LoadUI() < 0)
                {
                    HTUi.PopError("打开轴调试助手界面失败");
                }
                break;

            default:
                break;
            }
        }