public FormFindLine(ref object findLine) { InitializeComponent(); _instance = this; myToolInfo = (IToolInfo)findLine; myFindLine = (FindLine)myToolInfo.tool; //myFindLine.inputImage = ComGlobalParams.inputImageGlobal; // 暂时直接将图像传递给该工具 myFindLine.DispImage(); }
public FormFindLine(ref object findLine) { InitializeComponent(); _instance = this; if (findLine.GetType().FullName != "System.Object") { myToolInfo = (IToolInfo)findLine; myFindLine = (FindLine)myToolInfo.tool; //myFindLine.inputImage = ComGlobalParams.inputImageGlobal; // 暂时直接将图像传递给该工具 myFindLine.DispImage(); } }