212 lines
14 KiB
PowerShell
212 lines
14 KiB
PowerShell
#Generated Form Function
|
||
function GenerateForm {
|
||
########################################################################
|
||
# Code Generated By: SAPIEN Technologies PrimalForms (Community Edition) v1.0.9.0
|
||
# Generated On: 26.07.2019 23:04
|
||
# Generated By: MCK1
|
||
########################################################################
|
||
|
||
#region Import the Assemblies
|
||
[reflection.assembly]::loadwithpartialname("System.Drawing") | Out-Null
|
||
[reflection.assembly]::loadwithpartialname("System.Windows.Forms") | Out-Null
|
||
#endregion
|
||
|
||
#region Generated Form Objects
|
||
$form1 = New-Object System.Windows.Forms.Form
|
||
$label1 = New-Object System.Windows.Forms.Label
|
||
$tabControl1 = New-Object System.Windows.Forms.TabControl
|
||
$tabPage1 = New-Object System.Windows.Forms.TabPage
|
||
$pictureBox1 = New-Object System.Windows.Forms.PictureBox
|
||
$groupBox1 = New-Object System.Windows.Forms.GroupBox
|
||
$tabPage2 = New-Object System.Windows.Forms.TabPage
|
||
$dataGridView1 = New-Object System.Windows.Forms.DataGridView
|
||
$statusBar1 = New-Object System.Windows.Forms.StatusBar
|
||
$InitialFormWindowState = New-Object System.Windows.Forms.FormWindowState
|
||
#endregion Generated Form Objects
|
||
|
||
#----------------------------------------------
|
||
#Generated Event Script Blocks
|
||
#----------------------------------------------
|
||
#Provide Custom Code for events specified in PrimalForms.
|
||
$handler_statusBar1_PanelClick=
|
||
{
|
||
#TODO: Place custom script here
|
||
|
||
}
|
||
|
||
$OnLoadForm_StateCorrection=
|
||
{#Correct the initial state of the form to prevent the .Net maximized form issue
|
||
$form1.WindowState = $InitialFormWindowState
|
||
}
|
||
|
||
#----------------------------------------------
|
||
#region Generated Form Code
|
||
$System_Drawing_Size = New-Object System.Drawing.Size
|
||
$System_Drawing_Size.Height = 561
|
||
$System_Drawing_Size.Width = 784
|
||
$form1.ClientSize = $System_Drawing_Size
|
||
$form1.DataBindings.DefaultDataSourceUpdateMode = 0
|
||
$form1.Enabled = $False
|
||
$form1.Name = "form1"
|
||
$form1.ShowIcon = $False
|
||
$form1.StartPosition = 1
|
||
$form1.Text = "DIGITAL DATA - ThinClient"
|
||
$form1.TopMost = $True
|
||
|
||
$label1.DataBindings.DefaultDataSourceUpdateMode = 0
|
||
|
||
$System_Drawing_Point = New-Object System.Drawing.Point
|
||
$System_Drawing_Point.X = 683
|
||
$System_Drawing_Point.Y = 537
|
||
$label1.Location = $System_Drawing_Point
|
||
$label1.Name = "label1"
|
||
$System_Drawing_Size = New-Object System.Drawing.Size
|
||
$System_Drawing_Size.Height = 23
|
||
$System_Drawing_Size.Width = 100
|
||
$label1.Size = $System_Drawing_Size
|
||
$label1.TabIndex = 2
|
||
$label1.Text = "label1"
|
||
|
||
$form1.Controls.Add($label1)
|
||
|
||
$tabControl1.DataBindings.DefaultDataSourceUpdateMode = 0
|
||
$System_Drawing_Point = New-Object System.Drawing.Point
|
||
$System_Drawing_Point.X = 12
|
||
$System_Drawing_Point.Y = 12
|
||
$tabControl1.Location = $System_Drawing_Point
|
||
$tabControl1.Name = "tabControl1"
|
||
$tabControl1.SelectedIndex = 0
|
||
$System_Drawing_Size = New-Object System.Drawing.Size
|
||
$System_Drawing_Size.Height = 521
|
||
$System_Drawing_Size.Width = 760
|
||
$tabControl1.Size = $System_Drawing_Size
|
||
$tabControl1.TabIndex = 1
|
||
|
||
$form1.Controls.Add($tabControl1)
|
||
$tabPage1.DataBindings.DefaultDataSourceUpdateMode = 0
|
||
$System_Drawing_Point = New-Object System.Drawing.Point
|
||
$System_Drawing_Point.X = 4
|
||
$System_Drawing_Point.Y = 22
|
||
$tabPage1.Location = $System_Drawing_Point
|
||
$tabPage1.Name = "tabPage1"
|
||
$System_Windows_Forms_Padding = New-Object System.Windows.Forms.Padding
|
||
$System_Windows_Forms_Padding.All = 3
|
||
$System_Windows_Forms_Padding.Bottom = 3
|
||
$System_Windows_Forms_Padding.Left = 3
|
||
$System_Windows_Forms_Padding.Right = 3
|
||
$System_Windows_Forms_Padding.Top = 3
|
||
$tabPage1.Padding = $System_Windows_Forms_Padding
|
||
$System_Drawing_Size = New-Object System.Drawing.Size
|
||
$System_Drawing_Size.Height = 495
|
||
$System_Drawing_Size.Width = 752
|
||
$tabPage1.Size = $System_Drawing_Size
|
||
$tabPage1.TabIndex = 0
|
||
$tabPage1.Text = "RDP"
|
||
$tabPage1.UseVisualStyleBackColor = $True
|
||
|
||
$tabControl1.Controls.Add($tabPage1)
|
||
|
||
$pictureBox1.DataBindings.DefaultDataSourceUpdateMode = 0
|
||
|
||
|
||
|
||
$System_Drawing_Point = New-Object System.Drawing.Point
|
||
$System_Drawing_Point.X = 552
|
||
$System_Drawing_Point.Y = 95
|
||
$pictureBox1.Location = $System_Drawing_Point
|
||
$pictureBox1.Name = "pictureBox1"
|
||
$System_Drawing_Size = New-Object System.Drawing.Size
|
||
$System_Drawing_Size.Height = 50
|
||
$System_Drawing_Size.Width = 100
|
||
$pictureBox1.Size = $System_Drawing_Size
|
||
$pictureBox1.TabIndex = 1
|
||
$pictureBox1.TabStop = $False
|
||
|
||
$tabPage1.Controls.Add($pictureBox1)
|
||
|
||
|
||
$groupBox1.DataBindings.DefaultDataSourceUpdateMode = 0
|
||
$System_Drawing_Point = New-Object System.Drawing.Point
|
||
$System_Drawing_Point.X = 39
|
||
$System_Drawing_Point.Y = 45
|
||
$groupBox1.Location = $System_Drawing_Point
|
||
$groupBox1.Name = "groupBox1"
|
||
$System_Drawing_Size = New-Object System.Drawing.Size
|
||
$System_Drawing_Size.Height = 100
|
||
$System_Drawing_Size.Width = 200
|
||
$groupBox1.Size = $System_Drawing_Size
|
||
$groupBox1.TabIndex = 0
|
||
$groupBox1.TabStop = $False
|
||
$groupBox1.Text = "groupBox1"
|
||
|
||
$tabPage1.Controls.Add($groupBox1)
|
||
|
||
|
||
$tabPage2.DataBindings.DefaultDataSourceUpdateMode = 0
|
||
$System_Drawing_Point = New-Object System.Drawing.Point
|
||
$System_Drawing_Point.X = 4
|
||
$System_Drawing_Point.Y = 22
|
||
$tabPage2.Location = $System_Drawing_Point
|
||
$tabPage2.Name = "tabPage2"
|
||
$System_Windows_Forms_Padding = New-Object System.Windows.Forms.Padding
|
||
$System_Windows_Forms_Padding.All = 3
|
||
$System_Windows_Forms_Padding.Bottom = 3
|
||
$System_Windows_Forms_Padding.Left = 3
|
||
$System_Windows_Forms_Padding.Right = 3
|
||
$System_Windows_Forms_Padding.Top = 3
|
||
$tabPage2.Padding = $System_Windows_Forms_Padding
|
||
$System_Drawing_Size = New-Object System.Drawing.Size
|
||
$System_Drawing_Size.Height = 495
|
||
$System_Drawing_Size.Width = 752
|
||
$tabPage2.Size = $System_Drawing_Size
|
||
$tabPage2.TabIndex = 1
|
||
$tabPage2.Text = "Log"
|
||
$tabPage2.UseVisualStyleBackColor = $True
|
||
|
||
$tabControl1.Controls.Add($tabPage2)
|
||
$dataGridView1.DataBindings.DefaultDataSourceUpdateMode = 0
|
||
$System_Drawing_Point = New-Object System.Drawing.Point
|
||
$System_Drawing_Point.X = 6
|
||
$System_Drawing_Point.Y = 6
|
||
$dataGridView1.Location = $System_Drawing_Point
|
||
$dataGridView1.Name = "dataGridView1"
|
||
$System_Drawing_Size = New-Object System.Drawing.Size
|
||
$System_Drawing_Size.Height = 483
|
||
$System_Drawing_Size.Width = 740
|
||
$dataGridView1.Size = $System_Drawing_Size
|
||
$dataGridView1.TabIndex = 0
|
||
|
||
$tabPage2.Controls.Add($dataGridView1)
|
||
|
||
|
||
|
||
$statusBar1.DataBindings.DefaultDataSourceUpdateMode = 0
|
||
$System_Drawing_Point = New-Object System.Drawing.Point
|
||
$System_Drawing_Point.X = 0
|
||
$System_Drawing_Point.Y = 539
|
||
$statusBar1.Location = $System_Drawing_Point
|
||
$statusBar1.Name = "statusBar1"
|
||
$System_Drawing_Size = New-Object System.Drawing.Size
|
||
$System_Drawing_Size.Height = 22
|
||
$System_Drawing_Size.Width = 784
|
||
$statusBar1.Size = $System_Drawing_Size
|
||
$statusBar1.TabIndex = 0
|
||
$statusBar1.Text = "statusBar1"
|
||
$statusBar1.add_PanelClick($handler_statusBar1_PanelClick)
|
||
|
||
$form1.Controls.Add($statusBar1)
|
||
|
||
#endregion Generated Form Code
|
||
|
||
#Save the initial state of the form
|
||
$InitialFormWindowState = $form1.WindowState
|
||
#Init the OnLoad event to correct the initial state of the form
|
||
$form1.add_Load($OnLoadForm_StateCorrection)
|
||
#Show the Form
|
||
$form1.ShowDialog()| Out-Null
|
||
|
||
} #End Function
|
||
|
||
#Call the Function
|
||
GenerateForm
|