| Quintiq file version 2.0 | 
| #parent: #root | 
| Method EditAlgorihmRun ( | 
|   structured[AlgorithmRun] selection, | 
|   internal[GUIComponent] parent | 
| ) id:Method_DialogEditAlgorithmRun_EditAlgorihmRun | 
| { | 
|   #keys: '[11660.0.354467903]' | 
|   Body: | 
|   [* | 
|     // Edit algorithm runs | 
|      | 
|     isbatchedit := selection.Size() > 1; | 
|      | 
|     data := shadow( selection.Element( 0 ) ); | 
|     Dialog.Data( data ); | 
|      | 
|     result := this.DoModal( parent ); | 
|      | 
|     if( result > 0 ) | 
|     { | 
|       if( isbatchedit ) | 
|       { | 
|         AlgorithmRun::Update( selection, | 
|                               data.Notes() ); | 
|       } | 
|       else | 
|       { | 
|         data.Commit(); | 
|       } | 
|     } | 
|   *] | 
| } |