private void lab_line_Click(object sender, EventArgs e) { _tool_text = lab_line.Text; _insert_tool = "Line"; LineShuJu li_ = new LineShuJu(); li_.ImageFather = (IImageFather)MultTree.TreeStatic.Mult_Tree_Node_Picture.Obj; _tag = li_; ok_returen(); }
private void ParentFrm_Load(object sender, EventArgs e) { halconWinControl_ROI1.init(); _read += read_one_image; _run += run; _SetLineShuJu = new SetLineShuJu(); #region 无用代码 //_Line = new Line(); //_IReadImage = new ReadImage(); //#region 初始化数据 //if (TreeStatic.Mult_Tree_Node_Picture != null) //{ // if (TreeStatic.Mult_Tree_Node_Picture.SelfId.Contains("acquire")) // { // _IReadShuJu = (ReadShuJu)TreeStatic.Mult_Tree_Node_Picture.Obj; // #region 把图片写入 // foreach (string file_name in _IReadShuJu.Path_Picture) // { // listBox_acquire_picture.Items.Add(file_name); //加载所有文件 // } // #endregion // } // else // { // _IReadShuJu = new ReadShuJu(); // } //} //else //{ // _IReadShuJu = new ReadShuJu(); //} //#endregion #endregion #if DEBUG == true if (TreeStatic.Mult_Tree_Node.Obj == null) { _ILineShuJu = new LineShuJu(); } else { _ILineShuJu = (LineShuJu)TreeStatic.Mult_Tree_Node.Obj;; } #else _ILine = new LineShuJu(); #endif _SetLineShuJu.Set_Show_Parameter_HalconWindows(_ILineShuJu, this.Controls, this.halconWinControl_ROI1, ShuaXinJianCe); }