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