diff --git a/SharePointFunctions.ps1 b/SharePointFunctions.ps1 index 9045474..78b942b 100644 --- a/SharePointFunctions.ps1 +++ b/SharePointFunctions.ps1 @@ -124,7 +124,7 @@ function Get-FolderBrowser { $listBox = New-Object System.Windows.Forms.ListBox $listBox.Size = New-Object System.Drawing.Size(360, 320) $listBox.Location = New-Object System.Drawing.Point(10, 10) - $okButton = New-Object System.Windows.Forms.Button + $okButton = New-Object System.Windows.Forms.Button $okButton.Location = New-Object System.Drawing.Point(150, 340) $okButton.Size = New-Object System.Drawing.Size(75, 23) $okButton.Text = "OK" @@ -142,7 +142,8 @@ function Get-FolderBrowser { $form.Controls.Add($selectFolderButton) | Out-Null $form.FormBorderStyle = 'FixedDialog' $form.StartPosition = 'CenterScreen' - $form.Add_Shown({$Form.Activate()}) + $form.Add_Shown({$Form.Activate()}) + # Populate listbox foreach ($folder in $folderObjects) { $listBox.Items.Add($folder.Name) | Out-Null @@ -389,3 +390,7 @@ function Get-XlsFilesCurrentFolder { return $allFiles } + +function Convert-Files { + $script:txtStatus.Text += "Convert-Files function called (placeholder).`n" +}