27 lines
695 B
C#
27 lines
695 B
C#
using Aurora;
|
|
using Aurora.Api;
|
|
using VisionCommon;
|
|
using System;
|
|
|
|
namespace VisionUI.Pattern {
|
|
/// <summary>
|
|
/// 강제 OK 핸들러 등록
|
|
/// </summary>
|
|
public class ForceOkHandlerFactory {
|
|
private static Logger _logger = new Logger(typeof(ForceOkHandlerFactory).Name);
|
|
/// <summary>
|
|
/// 등록
|
|
/// </summary>
|
|
public static void Register() {
|
|
try {
|
|
foreach (var fovInfo in VisionRecipeManager.GetFovInfos()) {
|
|
ForceOkHandler.SetHandler(fovInfo);
|
|
}
|
|
}
|
|
catch (Exception e) {
|
|
_logger.FuncE(e.Message);
|
|
}
|
|
}
|
|
}
|
|
}
|