Exemplo n.º 1
0
 public static bool Handle(IMQueryMenuNode.Context context)
 {
     return
         (context.ExecuteContextMenuAction(
              PluginMetadata.Processes.CreateMeasTask,
              UpdateInspectionsByTour
              ));
 }
Exemplo n.º 2
0
 public static bool Handle(IMQueryMenuNode.Context context)
 {
     return
         (context.ExecuteContextMenuAction(
              PluginMetadata.Processes.StartMeasurementsSO,
              CreateMeasTaskByAllotment
              ));
 }
Exemplo n.º 3
0
 public static bool Handle(IMQueryMenuNode.Context context)
 {
     return
         (context.ExecuteContextMenuAction(
              PluginMetadata.Processes.BuildInspections,
              BuildInspectionsByTour
              ));
 }
Exemplo n.º 4
0
 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);
     }
 }