public static bool Handle(IMQueryMenuNode.Context context) { return (context.ExecuteContextMenuAction( PluginMetadata.Processes.CreateMeasTask, UpdateInspectionsByTour )); }
public static bool Handle(IMQueryMenuNode.Context context) { return (context.ExecuteContextMenuAction( PluginMetadata.Processes.StartMeasurementsSO, CreateMeasTaskByAllotment )); }
public static bool Handle(IMQueryMenuNode.Context context) { return (context.ExecuteContextMenuAction( PluginMetadata.Processes.BuildInspections, BuildInspectionsByTour )); }
public static bool ExecuteContextMenuAction(this IMQueryMenuNode.Context context, string process, Func <int, bool> action) { try { using (var scope = Logger.StartTrace(process, "Execute", () => context.TableId, () => context.TableName)) { return(action(context.TableId)); } } catch (Exception e) { Logger.WriteExeption(process, e); return(false); } }