@@ -1327,33 +1327,6 @@ function Remove-Files {
13271327 " `n ==== FEHLER bei Umbenennung/Loeschen: $_ ====" | Add-Content - LiteralPath $logDatei
13281328 }
13291329}
1330- function Show-MainGui {
1331- Add-Type - AssemblyName System.Windows.Forms
1332- Add-Type - AssemblyName System.Drawing
1333-
1334- # region 1. Fenster-Initialisierung
1335- $mainForm = New-Object System.Windows.Forms.Form
1336- $mainForm.Text = " PowerShell Video Transcoder"
1337- $mainForm.Size = New-Object System.Drawing.Size(800 , 600 )
1338- $mainForm.StartPosition = ' CenterScreen'
1339- $mainForm.MinimumSize = New-Object System.Drawing.Size(640 , 480 )
1340- # endregion
1341-
1342- # region 2. Haupt-Layout-Container
1343- $mainTableLayout = New-Object System.Windows.Forms.TableLayoutPanel
1344- $mainTableLayout.Dock = ' Fill'
1345- $mainTableLayout.ColumnCount = 1
1346- $mainTableLayout.RowCount = 3
1347- $mainTableLayout.RowStyles.Add ((New-Object System.Windows.Forms.RowStyle([System.Windows.Forms.SizeType ]::AutoSize))) | Out-Null
1348- $mainTableLayout.RowStyles.Add ((New-Object System.Windows.Forms.RowStyle([System.Windows.Forms.SizeType ]::AutoSize))) | Out-Null
1349- $mainTableLayout.RowStyles.Add ((New-Object System.Windows.Forms.RowStyle([System.Windows.Forms.SizeType ]::Percent, 100 ))) | Out-Null
1350- $mainForm.Controls.Add ($mainTableLayout )
1351- # endregion
1352-
1353- # Zeigt das Fenster an
1354- [void ]$mainForm.ShowDialog ()
1355- }
1356-
13571330# endregion
13581331
13591332# region Hauptskript
@@ -1569,6 +1542,4 @@ else {
15691542 Write-Host " Ordnerauswahl abgebrochen." - ForegroundColor Yellow
15701543}
15711544
1572- # Show-MainGui
1573-
15741545# endregion
0 commit comments