/// <summary>
        /// 显示数据
        /// </summary>
        public void Set_showParamter(IDistancePointToLineShuJu IDis_, ListBox list_One, ListBox list_Two)
        {
            #region  确定路径是否存在
            IDis_.PathLine = this.panDuanToolShiFouCunZai(IDis_.PathLine);

            if (IDis_.PathLine == "")
            {
                IDis_.ILine = null;
            }
            else
            {
                list_One.Items.Add(IDis_.PathLine);
            }

            IDis_.PathPoint = this.panDuanToolShiFouCunZai(IDis_.PathPoint);

            if (IDis_.PathPoint == "")
            {
                IDis_.IrectShuJuPianYi    = null;
                IDis_.IrectShuJuPianYiOne = null;
            }
            else
            {
                list_Two.Items.Add(IDis_.PathPoint);
            }
            #endregion
        }
        /// <summary>
        /// 确定点
        /// </summary>
        /// <param name="IDis_"></param>
        /// <param name="iRect_"></param>
        /// <returns></returns>
        public bool Set_QueDingDian(IDistancePointToLineShuJu IDis_, Object iRect_)
        {
            bool ok  = false;
            var  ir_ = iRect_ as IRectShuJuPianYi;

            if (ir_ != null)
            {
                IDis_.IrectShuJuPianYi    = ir_;
                IDis_.IrectShuJuPianYiOne = ir_;
                ok = true;
            }
            return(ok);
        }
        /// <summary>
        /// 确定一条直线
        /// </summary>
        /// <param name="IDis_"></param>
        /// <param name="ob_"></param>
        /// <returns></returns>
        public bool Set_QueDingDiYiTiaoZhiXian(IDistancePointToLineShuJu IDis_, Object ob_)
        {
            bool        ok  = false;
            ILineStruct il_ = ob_ as ILineStruct;

            if (il_ != null)
            {
                IDis_.ILine = il_;
                ok          = true;
            }
            else
            {
                MessageBox.Show("没有直线");
            }
            return(ok);
        }
        private void ParentFrm_Load(object sender, EventArgs e)
        {
            halconWinControl_ROI1.init();
            halconWinControl_ROI1.Repaint += ROIMoveEvent;

            _read += read_one_image;
            _run  += run;

            #region 第一个点树
            //TreeNode tr_0 = new TreeNode();
            //tr_0.Text = "驱动1";
            //tr_0.Name = "System_1"; //新建一个驱动

            //if (treeView1.Nodes != null)
            //{
            //    treeView1.Nodes.Clear();
            //}//清空树

            //TreeStatic.load_MultTreeNode_To_TreeNode_ContainsSelf(tr_0, _ICheckStr.Check_Root);

            //treeView1.Nodes.Add(tr_0);//添加一个检测
            //treeView1.ExpandAll();

            MultTree.operationTreeViewTool.initTreeView(treeView1, _ICheckStr.Check_Root);

            #endregion

            #region  直线的树
            //TreeNode tr_1 = new TreeNode();
            //tr_1.Text = "驱动1";
            //tr_1.Name = "System_1"; //新建一个驱动

            //if (treeView2.Nodes != null)
            //{
            //    treeView2.Nodes.Clear();
            //}//清空树

            //TreeStatic.load_MultTreeNode_To_TreeNode_ContainsSelf(tr_1, _ICheckStr.Check_Root);

            //treeView2.Nodes.Add(tr_1);//添加一个检测
            //treeView2.ExpandAll();

            MultTree.operationTreeViewTool.initTreeView(treeView2, _ICheckStr.Check_Root);

            #endregion

            #region  无用代码
            //#region 初始化图片数据
            //if (TreeStatic.Mult_Tree_Node_Picture != null)
            //{
            //    if (TreeStatic.Mult_Tree_Node_Picture.SelfId.Contains("acquire"))
            //    {
            //        _IRead = (ReadImageHalconLibrary.ReadShuJu)TreeStatic.Mult_Tree_Node_Picture.Obj;

            //        #region  把图片写入

            //        foreach (string file_name in _IRead.Path_Picture)
            //        {
            //            listBox_acquire_picture.Items.Add(file_name); //加载所有文件
            //        }
            //        #endregion
            //    }
            //    else
            //    {
            //        _IRead = new ReadImageHalconLibrary.ReadShuJu();
            //    }
            //}
            //else
            //{
            //    _IRead = new ReadImageHalconLibrary.ReadShuJu();
            //}
            //#endregion
            #endregion

            #region  初始化设置器
            _setDistancePoint = new Set_DistancePointToLine();
            #endregion

#if DEBUG == true
            if (TreeStatic.Mult_Tree_Node.Obj == null)
            {
                _iDistancePoint = new DistancePointToLineShuJu();
            }
            else
            {
                _iDistancePoint = (DistancePointToLineShuJu)TreeStatic.Mult_Tree_Node.Obj;
            }
#else
#endif

            #region   显示路径

            this._setDistancePoint.Set_showParamter(this._iDistancePoint, this.listBox_DiErGeDingWeiDian, this.listBox_DiYiGeDian);

            #endregion
        }