################################################################################ # # 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 ################################################################################ function Get-ScriptDirectory { #Return the directory name of this script $Invocation = (Get-Variable MyInvocation -Scope 1).Value Split-Path $Invocation.MyCommand.Path } $ScriptPath = Get-ScriptDirectory # Chargement des assemblies externes Add-Type -AssemblyName System.Windows.Forms Add-Type -AssemblyName System.Drawing $FMain = New-Object System.Windows.Forms.Form $components = New-Object System.ComponentModel.Container $menuStrip1 = New-Object System.Windows.Forms.MenuStrip $Mconnexion = New-Object System.Windows.Forms.ToolStripMenuItem $MConnexionSharepoint = New-Object System.Windows.Forms.ToolStripMenuItem $Mquestion = New-Object System.Windows.Forms.ToolStripMenuItem $MQuestionApropos = New-Object System.Windows.Forms.ToolStripMenuItem $MQuestionWiki = New-Object System.Windows.Forms.ToolStripMenuItem $Bgo = New-Object System.Windows.Forms.Button $comboBox1 = New-Object System.Windows.Forms.ComboBox $comboBox2 = New-Object System.Windows.Forms.ComboBox $progressBar1 = New-Object System.Windows.Forms.ProgressBar $sourceInfo = New-Object System.Windows.Forms.ToolTip($components) $label1 = New-Object System.Windows.Forms.Label $label2 = New-Object System.Windows.Forms.Label # # menuStrip1 # $menuStrip1.Items.AddRange(@( $Mconnexion, $Mquestion)) $menuStrip1.Location = New-Object System.Drawing.Point(0, 0) $menuStrip1.Name = "menuStrip1" $menuStrip1.Size = New-Object System.Drawing.Size(800, 24) $menuStrip1.TabIndex = 0 $menuStrip1.Text = "menuStrip1" # # Mconnexion # $Mconnexion.DropDownItems.AddRange(@( $MConnexionSharepoint)) $Mconnexion.Name = "Mconnexion" $Mconnexion.Size = New-Object System.Drawing.Size(77, 20) $Mconnexion.Text = "Connexion" # # MConnexionSharepoint # $MConnexionSharepoint.CheckOnClick = $true $MConnexionSharepoint.Name = "MConnexionSharepoint" $MConnexionSharepoint.Size = New-Object System.Drawing.Size(131, 22) $MConnexionSharepoint.Text = "Sharepoint" # # Mquestion # $Mquestion.DropDownItems.AddRange(@( $MQuestionApropos, $MQuestionWiki)) $Mquestion.Name = "Mquestion" $Mquestion.Size = New-Object System.Drawing.Size(24, 20) $Mquestion.Text = "?" # # MQuestionApropos # $MQuestionApropos.Name = "MQuestionApropos" $MQuestionApropos.Size = New-Object System.Drawing.Size(131, 22) $MQuestionApropos.Text = "A propos..." # # MQuestionWiki # $MQuestionWiki.Name = "MQuestionWiki" $MQuestionWiki.Size = New-Object System.Drawing.Size(131, 22) $MQuestionWiki.Text = "Wiki" # # Bgo # $Bgo.ForeColor = [System.Drawing.Color]::White $Bgo.Location = New-Object System.Drawing.Point(688, 155) $Bgo.Name = "Bgo" $Bgo.Size = New-Object System.Drawing.Size(75, 23) $Bgo.TabIndex = 1 $Bgo.Text = "GO" $Bgo.UseVisualStyleBackColor = $true # # comboBox1 # $comboBox1.ForeColor = [System.Drawing.Color]::White $comboBox1.FormattingEnabled = $true $comboBox1.Location = New-Object System.Drawing.Point(27, 131) $comboBox1.Name = "comboBox1" $comboBox1.Size = New-Object System.Drawing.Size(587, 21) $comboBox1.TabIndex = 2 # # comboBox2 # $comboBox2.ForeColor = [System.Drawing.Color]::White $comboBox2.FormattingEnabled = $true $comboBox2.Location = New-Object System.Drawing.Point(27, 182) $comboBox2.Name = "comboBox2" $comboBox2.Size = New-Object System.Drawing.Size(587, 21) $comboBox2.TabIndex = 3 # # progressBar1 # $progressBar1.Location = New-Object System.Drawing.Point(12, 345) $progressBar1.Name = "progressBar1" $progressBar1.Size = New-Object System.Drawing.Size(776, 23) $progressBar1.TabIndex = 4 # # label1 # $label1.AutoSize = $true $label1.Location = New-Object System.Drawing.Point(27, 112) $label1.Name = "label1" $label1.Size = New-Object System.Drawing.Size(62, 13) $label1.TabIndex = 5 $label1.Text = "Site Source" # # label2 # $label2.AutoSize = $true $label2.Location = New-Object System.Drawing.Point(27, 166) $label2.Name = "label2" $label2.Size = New-Object System.Drawing.Size(81, 13) $label2.TabIndex = 6 $label2.Text = "Site Destination" # # FMain # $FMain.BackColor = [System.Drawing.SystemColors]::ControlText $FMain.ClientSize = New-Object System.Drawing.Size(800, 450) $FMain.Controls.Add($label2) $FMain.Controls.Add($label1) $FMain.Controls.Add($progressBar1) $FMain.Controls.Add($comboBox2) $FMain.Controls.Add($comboBox1) $FMain.Controls.Add($Bgo) $FMain.Controls.Add($menuStrip1) $FMain.ForeColor = [System.Drawing.Color]::Snow $FMain.MainMenuStrip = $menuStrip1 $FMain.Name = "FMain" $FMain.Text = "SharePoint Mover GUI" $FMain.ShowDialog()