diff --git a/Sharepoint/gui/spmover/Events.ps1 b/Sharepoint/gui/spmover/Events.ps1 index cfe172a..c14e15c 100644 Binary files a/Sharepoint/gui/spmover/Events.ps1 and b/Sharepoint/gui/spmover/Events.ps1 differ diff --git a/Sharepoint/gui/spmover/Functions.ps1 b/Sharepoint/gui/spmover/Functions.ps1 index 63b27ff..82e7427 100644 Binary files a/Sharepoint/gui/spmover/Functions.ps1 and b/Sharepoint/gui/spmover/Functions.ps1 differ diff --git a/Sharepoint/gui/spmover/exceptions.txt b/Sharepoint/gui/spmover/exceptions.txt new file mode 100644 index 0000000..cf10aca --- /dev/null +++ b/Sharepoint/gui/spmover/exceptions.txt @@ -0,0 +1,14 @@ +20240307 08:51:28: ForEach-Object: C:\Users\SebastienQUEROL\git.azuze.fr\ps-scripts\Sharepoint\gui\spmover\Functions.ps1:43:31 Line | 43 | $Xml.Attributes | ForEach-Object { | ~~~~~~~~~~~~~~~~ | Exception setting "Image": "Cannot convert the "System.Drawing.Bitmap" value of type "System.String" to type "System.Drawing.Image"." +20240307 09:27:01: New-Object: C:\Users\SebastienQUEROL\git.azuze.fr\ps-scripts\Sharepoint\gui\spmover\Functions.ps1:33:71 Line | 33 | … ) {$newControl = New-Object System.Windows.Forms.$($Xml.ToString())} | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Cannot find type [System.Windows.Forms.Image]: verify that the assembly containing this type is loaded. +20240307 09:28:50: New-Object: C:\Users\SebastienQUEROL\git.azuze.fr\ps-scripts\Sharepoint\gui\spmover\Functions.ps1:33:71 Line | 33 | … ) {$newControl = New-Object System.Windows.Forms.$($Xml.ToString())} | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Cannot find type [System.Windows.Forms.Image]: verify that the assembly containing this type is loaded. +20240307 09:34:41: ForEach-Object: C:\Users\SebastienQUEROL\git.azuze.fr\ps-scripts\Sharepoint\gui\spmover\Functions.ps1:43:31 Line | 43 | $Xml.Attributes | ForEach-Object { | ~~~~~~~~~~~~~~~~ | Exception setting "Image": "Cannot convert the "System.Drawing.Bitmap" value of type "System.String" to type "System.Drawing.Image"." +20240307 09:34:53: ForEach-Object: C:\Users\SebastienQUEROL\git.azuze.fr\ps-scripts\Sharepoint\gui\spmover\Functions.ps1:43:31 Line | 43 | $Xml.Attributes | ForEach-Object { | ~~~~~~~~~~~~~~~~ | Exception setting "Image": "Cannot convert the "System.Drawing.Bitmap" value of type "System.String" to type "System.Drawing.Image"." +20240307 09:38:58: ForEach-Object: C:\Users\SebastienQUEROL\git.azuze.fr\ps-scripts\Sharepoint\gui\spmover\Functions.ps1:43:31 Line | 43 | $Xml.Attributes | ForEach-Object { | ~~~~~~~~~~~~~~~~ | Exception setting "Image": "Cannot convert the "System.Drawing.Bitmap" value of type "System.String" to type "System.Drawing.Image"." +20240307 09:40:53: ForEach-Object: C:\Users\SebastienQUEROL\git.azuze.fr\ps-scripts\Sharepoint\gui\spmover\Functions.ps1:43:31 Line | 43 | $Xml.Attributes | ForEach-Object { | ~~~~~~~~~~~~~~~~ | Exception setting "Image": "Cannot convert the "System.Drawing.Bitmap" value of type "System.String" to type "System.Drawing.Image"." +20240307 09:41:31: ForEach-Object: C:\Users\SebastienQUEROL\git.azuze.fr\ps-scripts\Sharepoint\gui\spmover\Functions.ps1:43:31 Line | 43 | $Xml.Attributes | ForEach-Object { | ~~~~~~~~~~~~~~~~ | Exception setting "Image": "Cannot convert the "System.Drawing.Image" value of type "System.String" to type "System.Drawing.Image"." +20240307 09:44:00: ForEach-Object: C:\Users\SebastienQUEROL\git.azuze.fr\ps-scripts\Sharepoint\gui\spmover\Functions.ps1:43:31 Line | 43 | $Xml.Attributes | ForEach-Object { | ~~~~~~~~~~~~~~~~ | Exception setting "Image": "Cannot convert the "System.Drawing.Bitmap" value of type "System.String" to type "System.Drawing.Image"." +20240307 09:44:41: ForEach-Object: C:\Users\SebastienQUEROL\git.azuze.fr\ps-scripts\Sharepoint\gui\spmover\Functions.ps1:43:31 Line | 43 | $Xml.Attributes | ForEach-Object { | ~~~~~~~~~~~~~~~~ | Exception setting "Image": "Cannot convert the "System.Drawing.Bitmap" value of type "System.String" to type "System.Drawing.Image"." +20240307 09:45:56: ForEach-Object: C:\Users\SebastienQUEROL\git.azuze.fr\ps-scripts\Sharepoint\gui\spmover\Functions.ps1:43:31 Line | 43 | $Xml.Attributes | ForEach-Object { | ~~~~~~~~~~~~~~~~ | Exception setting "Image": "Cannot convert the "System.Drawing.Bitmap" value of type "System.String" to type "System.Drawing.Image"." +20240307 09:47:04: ForEach-Object: C:\Users\SebastienQUEROL\git.azuze.fr\ps-scripts\Sharepoint\gui\spmover\Functions.ps1:43:31 Line | 43 | $Xml.Attributes | ForEach-Object { | ~~~~~~~~~~~~~~~~ | Exception setting "Image": "Cannot convert the "System.Drawing.Bitmap" value of type "System.String" to type "System.Drawing.Image"." +20240307 09:48:25: ForEach-Object: C:\Users\SebastienQUEROL\git.azuze.fr\ps-scripts\Sharepoint\gui\spmover\Functions.ps1:43:31 Line | 43 | $Xml.Attributes | ForEach-Object { | ~~~~~~~~~~~~~~~~ | Exception calling "Add" with "2" argument(s): "Item has already been added. Key in dictionary: 'lbl_byWho' Key being added: 'lbl_byWho'" +20240307 11:16:28: InvalidOperation: Line | 45 | $Script:refs['btn_Start'].Add_Click($eventSB['btn_Start'].Cli … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Cannot index into a null array. diff --git a/Sharepoint/gui/spmover/logo.png b/Sharepoint/gui/spmover/logo.png new file mode 100644 index 0000000..10e7b7d Binary files /dev/null and b/Sharepoint/gui/spmover/logo.png differ diff --git a/Sharepoint/gui/spmover/spmover1.ps1 b/Sharepoint/gui/spmover/spmover1.ps1 index c5dcc09..9073ff2 100644 --- a/Sharepoint/gui/spmover/spmover1.ps1 +++ b/Sharepoint/gui/spmover/spmover1.ps1 @@ -1,124 +1,165 @@ -<# - .NOTES - =========================================================================== - FileName: spmover1.ps1 - Author: SebastienQUEROL - Created On: 2024/03/07 - Last Updated: 2024/03/07 - Organization: - Version: v0.1 - =========================================================================== +################################################################################ +# +# Name : SharePoint Mover +# Version : 0.1 +# Author : +# Date : 07/03/2024 +# + # Generated with ConvertForm module version 2.0.0 +# PowerShell version 7.4.1 +# +# Invocation Line : Convert-Form -Path $Source -Destination $Destination -Encoding ascii -force +# Source : C:\Users\SebastienQUEROL\source\repos\sharepointmover-gui\Form1.Designer.cs +################################################################################ - .DESCRIPTION - - .DEPENDENCIES -#> - -# ScriptBlock to Execute in STA Runspace -$sbGUI = { - param($BaseDir) - - #region Environment Setup - - try { - Add-Type -AssemblyName System.Windows.Forms - Add-Type -AssemblyName System.Drawing - - - } catch {Update-ErrorLog -ErrorRecord $_ -Message "Exception encountered during Environment Setup."} - - #endregion Environment Setup - - #region Dot Sourcing of files - - $dotSourceDir = $BaseDir - - . "$($dotSourceDir)\Functions.ps1" - . "$($dotSourceDir)\Events.ps1" - - #endregion Dot Sourcing of files - - #region Form Initialization - - try { - ConvertFrom-WinFormsXML -Reference refs -Suppress -Xml @" -
- - - -