1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| Quintiq file version 2.0
| #parent: #root
| StaticMethod CanDelete (
| output String feedback_o,
| OptimizerPuzzleBases optimizerpuzzles
| ) declarative remote as Boolean
| {
| Description: 'Indicate if all the puzzles selected can be deleted'
| TextBody:
| [*
| // Check if world want to be deleted
| isWorldIncluded := exists( optimizerpuzzles,
| Elements,
| e,
| e.IsWorld() );
|
| if( isWorldIncluded )
| {
| feedback_o := Translations::MP_OptimizerPuzzleBase_CannotDeleteWorld();
| }
|
| return not isWorldIncluded;
| *]
| }
|
|