|  | @@ -15,6 +15,12 @@ Function AskContinue($text)
 | 
	
		
			
				|  |  |      [System.Windows.Forms.MessageBox]::Show($text, 'Continue','YesNo','Info')
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +Function MessageBox($text)
 | 
	
		
			
				|  |  | +{
 | 
	
		
			
				|  |  | +    [System.Windows.Forms.MessageBox]::Show($text, 'Continue','YesNo','Info')
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  Function WinDD($inFileName, $outFileName, $blocksize = 5Mb) {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      Write-Output ""
 | 
	
	
		
			
				|  | @@ -130,11 +136,11 @@ Function GuiPhysDev()
 | 
	
		
			
				|  |  |  Function GuiSelectDisk($disks){
 | 
	
		
			
				|  |  |      $labels = ($disks | foreach {$_ | GuiDiskLabel}) 
 | 
	
		
			
				|  |  |  	$dia = GuiSelectDialog $labels
 | 
	
		
			
				|  |  | -    $result = $dia.ShowDialog()
 | 
	
		
			
				|  |  | +    $result = $dia.form.ShowDialog()
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      if ($result -eq [System.Windows.Forms.DialogResult]::OK)
 | 
	
		
			
				|  |  |      {
 | 
	
		
			
				|  |  | -        $x = $dia.Tag.SelectedIndex
 | 
	
		
			
				|  |  | +        $x = $dia.listbox.SelectedIndex
 | 
	
		
			
				|  |  |          $disks[$x]
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  }
 | 
	
	
		
			
				|  | @@ -180,10 +186,12 @@ Function GuiSelectDialog($items){
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      $form.Controls.Add($listBox)
 | 
	
		
			
				|  |  | -    $form.Tag = $listBox
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      $form.Topmost = $true
 | 
	
		
			
				|  |  | -    $form
 | 
	
		
			
				|  |  | +    [PSCustomObject]@{ 
 | 
	
		
			
				|  |  | +        form = $form
 | 
	
		
			
				|  |  | +        listbox = $listBox
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  Function GuiDiskLabel(){
 |