| Quintiq file version 2.0 | 
| #parent: #root | 
| Method CopyShiftPattern ( | 
|   ShiftPattern selection, | 
|   internal[GUIComponent] parent | 
| ) as ShiftPattern id:Method_DialogCreateEditShiftPattern_CopyShiftPattern | 
| { | 
|   #keys: '[11660.0.14330607]' | 
|   Body: | 
|   [* | 
|     // Copy shift pattern | 
|      | 
|     EditorNumberOfDays.Text( [String]selection.NumberOfDays() ); | 
|     EditorNumberOfDays.Enabled( false ); | 
|     result := this.DoModal( parent ); | 
|     sp := null( ShiftPattern ); | 
|     if ( result > 0 ) | 
|     { | 
|       sp := selection.Copy( EditorName.Text(), [Number]EditorNumberOfDays.Text(), selection.MinimumDuration(), MacroPlan ); | 
|     } | 
|     return sp; | 
|   *] | 
| } |