| 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
 | | Quintiq file version 2.0 |  | #parent: #root |  | Method SetImage ( |  |   internal[Image] image, |  |   String newimg, |  |   Boolean isunit |  | ) id:Method_DialogCreateEditGroup_SetImage |  | { |  |   #keys: '[107654.0.451587527]' |  |   Body: |  |   [* |  |     // Set image |  |      |  |     data := Dialog.Data(); |  |      |  |     image.SetProperty( 'Image', newimg ); |  |      |  |     // Need to update shadow object instead of label text because the text in label will not be commited / copied |  |     // to shadow object when data.Commit is called. |  |     if( isunit ) |  |     { |  |       data.IconForUnits( newimg ); |  |     } |  |      |  |     else |  |     { |  |       data.IconForStockingPoints( newimg ); |  |     } |  |   *] |  | } | 
 |