Example #1
0
        private void lab_circle_Click(object sender, EventArgs e)
        {
            _tool_text   = lab_circle.Text;
            _insert_tool = "Circle";

            //生成结构体数据
            CircleShuJu circleshuju = new CircleShuJu();

            circleshuju.ImageFather = (IImageFather)MultTree.TreeStatic.Mult_Tree_Node_Picture.Obj;
            _tag = circleshuju;
            ok_returen();
        }
Example #2
0
        private void CalibrationFrm_Load(object sender, EventArgs e)
        {
            #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

            _Set_Cal = new SetCalibrationShuJu();

#if DEBUG == true
            if (TreeStatic.Mult_Tree_Node.Obj == null)
            {
                _ICal = new CalibrationShuJu();
            }
            else
            {
                _ICal = (CalibrationShuJu)TreeStatic.Mult_Tree_Node.Obj;;
            }
#else
            _ICircleShuJu = new CircleShuJu();
#endif

            _Set_Cal.Set_show_row_col(_ICal, this.Controls);

            #region   显示标定的工具
            this._Set_Cal.Set_showTool(this._ICal, listBox_cal_tool);

            //foreach (string tool in _ICal._Cal_tool_path)
            //{
            //    listBox_cal_tool.Items.Add(tool);
            //}
            #endregion
        }