public void VisionAction(VisionActionType Action) { try { this.Invoke(visionActionDelegate, Action); } catch { } }
private void VisionActionDelegateFunc(VisionActionType Action) { try { switch (Action) { case VisionActionType.ImageAcquisition: cmdImageAcquisitionNewImageCommand_Click(null, null); break; case VisionActionType.RunTool: Subject_Ran(null, null); break; } } catch { } }