Esempio n. 1
0
        public void ShowDistance()
        {
            //获取卷线盘运算距离
            string s = JxpRealLen.ToString("0.00");

            if (Jxp != null && !oldCodedata.Equals(s))
            {
                HKCam.StringAddTest(0, "距离:" + s + "M", 350, 600);
                oldCodedata = s;
            }
            else
            {
                if (Jxp == null && oldCodedata == "")
                {
                    HKCam.StringAddTest(0, "距离:0M", 450, 600);
                    oldCodedata = "0";
                }
            }
        }
Esempio n. 2
0
        public void ShowHKInfo()
        {
            if (PrjName != prj.PrjName)
            {
                HKCam.StringAddTest(1, prj.PrjName, 10, 15);
                PrjName = prj.PrjName;
            }

            if (InsQdJingHao != prj.InsQdJingHao)
            {
                HKCam.StringAddTest(2, prj.InsQdJingHao + "---" + prj.InsZdJingHao, 10, 50);
                InsQdJingHao = prj.InsQdJingHao;
            }

            if (InsGuanDuanDiameter != prj.InsGuanDuanDiameter)
            {
                HKCam.StringAddTest(3, "DN" + prj.InsGuanDuanDiameter + "mm", 10, 95);
                InsGuanDuanDiameter = prj.InsGuanDuanDiameter;
            }
        }