| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 | | Quintiq file version 2.0 |  | #parent: #root |  | Method NewStrategy ( |  |   internal[GUIComponent] parent |  | ) as Strategy id:Method_ScenarioManager_DialogCreateEditStrategy_NewStrategy |  | { |  |   #keys: '[112884.0.704997324]' |  |   Body: |  |   [* |  |     // New strategy |  |     Dialog.ShowHideComponents(); |  |      |  |     // There will 2 transactions for maintenance purpose, because there is quite some logic involved during creation of Strategy in the Editor. |  |     strategy := Strategy::Create( ScenarioManager, |  |                                   null( Strategy ), |  |                                   Strategy::GetUniqueStrategyName( Translations::MP_GlobalParameters_DefaultStrategyName(), ScenarioManager ), |  |                                   0, |  |                                   '', |  |                                   1000.0, |  |                                   1000.0, |  |                                   1.0, |  |                                   1000.0, |  |                                   1000.0, |  |                                   DateTime::MinDateTime(), |  |                                   true ); |  |      |  |     Dialog.EditStrategy( strategy, parent ); |  |      |  |     return strategy; |  |   *] |  | } | 
 |