| Quintiq file version 2.0 | 
| #parent: #root | 
| Method PTF_ToggleBatchEditUIState ( | 
|   Boolean enabled | 
| ) id:Method_LibPTF_dlgCreateEditTestScript_PTF_ToggleBatchEditUIState | 
| { | 
|   #keys: '[104342.0.747357661]' | 
|   Body: | 
|   [* | 
|     // Toggling the state of the components based on whether it is a batch edit | 
|     this.lblDescription().Enabled( enabled ); | 
|     this.edtDescription().Enabled( enabled ); | 
|      | 
|     this.lblUserName().Enabled( enabled ); | 
|     this.edtUser().Enabled( enabled ); | 
|      | 
|     this.lblPassword().Enabled( enabled ); | 
|     this.edtPassword().Enabled( enabled ); | 
|      | 
|     this.lblTestScript().Enabled( enabled ); | 
|     this.pnlTestScript().Enabled( enabled ); | 
|      | 
|     this.durOffset().Enabled( enabled ); | 
|      | 
|     this.durMinStartClientDelay().Enabled( enabled ); | 
|     this.lblStartClientDelayTo().Enabled( enabled ); | 
|     this.durMaxStartClientDelay().Enabled( enabled ); | 
|      | 
|     this.imgTestScriptStartOffset().SetProperty( "Tooltip", this.imgTestScriptStartOffset().GetProperty( "Tooltip" ) | 
|                                                               + String::NewLine() | 
|                                                               + "(Tick the checkbox to update)" ); | 
|      | 
|     this.imgStartClientOffset().SetProperty( "Tooltip", this.imgStartClientOffset().GetProperty( "Tooltip" ) | 
|                                                               + String::NewLine() | 
|                                                               + "(Tick the checkbox to update)" ); | 
|      | 
|     // Refresh text colour according to currect Enabled state | 
|     this.PTF_RefreshDurationSelectorState(); | 
|   *] | 
| } |