-
Notifications
You must be signed in to change notification settings - Fork 1
/
WebServer.designer.ps1
169 lines (169 loc) · 8.66 KB
/
WebServer.designer.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
$Form1 = New-Object -TypeName System.Windows.Forms.Form
[System.Windows.Forms.Label]$LabelMain = $null
[System.Windows.Forms.Button]$ButtonStart = $null
[System.Windows.Forms.Button]$ButtonRestart = $null
[System.Windows.Forms.Button]$ButtonStop = $null
[System.Windows.Forms.TextBox]$TextBoxPath = $null
[System.Windows.Forms.Label]$LabelPath = $null
[System.Windows.Forms.Button]$ButtonBrowse = $null
[System.Windows.Forms.Button]$Button5 = $null
[System.Windows.Forms.TextBox]$TextBoxHTTPSPort = $null
[System.Windows.Forms.TextBox]$TextBoxHTTPPort = $null
[System.Windows.Forms.TextBox]$TextBoxHosts = $null
[System.Windows.Forms.CheckBox]$CheckBoxDirectory = $null
function InitializeComponent
{
$LabelMain = (New-Object -TypeName System.Windows.Forms.Label)
$ButtonStart = (New-Object -TypeName System.Windows.Forms.Button)
$ButtonRestart = (New-Object -TypeName System.Windows.Forms.Button)
$ButtonStop = (New-Object -TypeName System.Windows.Forms.Button)
$TextBoxPath = (New-Object -TypeName System.Windows.Forms.TextBox)
$LabelPath = (New-Object -TypeName System.Windows.Forms.Label)
$ButtonBrowse = (New-Object -TypeName System.Windows.Forms.Button)
$Button5 = (New-Object -TypeName System.Windows.Forms.Button)
$TextBoxHTTPSPort = (New-Object -TypeName System.Windows.Forms.TextBox)
$TextBoxHTTPPort = (New-Object -TypeName System.Windows.Forms.TextBox)
$TextBoxHosts = (New-Object -TypeName System.Windows.Forms.TextBox)
$CheckBoxDirectory = (New-Object -TypeName System.Windows.Forms.CheckBox)
$Form1.SuspendLayout()
#
#LabelMain
#
$LabelMain.Font = (New-Object -TypeName System.Drawing.Font -ArgumentList @([System.String]'Tahoma',[System.Single]13.8,[System.Drawing.FontStyle]::Regular,[System.Drawing.GraphicsUnit]::Point,([System.Byte][System.Byte]0)))
$LabelMain.Location = (New-Object -TypeName System.Drawing.Point -ArgumentList @([System.Int32]12,[System.Int32]9))
$LabelMain.Name = [System.String]'LabelMain'
$LabelMain.Size = (New-Object -TypeName System.Drawing.Size -ArgumentList @([System.Int32]432,[System.Int32]31))
$LabelMain.TabIndex = [System.Int32]0
$LabelMain.Text = [System.String]'PowerShell-WebServer Control Panel'
$LabelMain.UseCompatibleTextRendering = $true
#
#ButtonStart
#
$ButtonStart.Location = (New-Object -TypeName System.Drawing.Point -ArgumentList @([System.Int32]473,[System.Int32]98))
$ButtonStart.Name = [System.String]'ButtonStart'
$ButtonStart.Size = (New-Object -TypeName System.Drawing.Size -ArgumentList @([System.Int32]108,[System.Int32]23))
$ButtonStart.TabIndex = [System.Int32]1
$ButtonStart.Text = [System.String]'Start'
$ButtonStart.UseCompatibleTextRendering = $true
$ButtonStart.UseVisualStyleBackColor = $true
#
#ButtonRestart
#
$ButtonRestart.Location = (New-Object -TypeName System.Drawing.Point -ArgumentList @([System.Int32]473,[System.Int32]127))
$ButtonRestart.Name = [System.String]'ButtonRestart'
$ButtonRestart.Size = (New-Object -TypeName System.Drawing.Size -ArgumentList @([System.Int32]108,[System.Int32]23))
$ButtonRestart.TabIndex = [System.Int32]2
$ButtonRestart.Text = [System.String]'Restart'
$ButtonRestart.UseCompatibleTextRendering = $true
$ButtonRestart.UseVisualStyleBackColor = $true
#
#ButtonStop
#
$ButtonStop.Location = (New-Object -TypeName System.Drawing.Point -ArgumentList @([System.Int32]473,[System.Int32]156))
$ButtonStop.Name = [System.String]'ButtonStop'
$ButtonStop.Size = (New-Object -TypeName System.Drawing.Size -ArgumentList @([System.Int32]108,[System.Int32]23))
$ButtonStop.TabIndex = [System.Int32]3
$ButtonStop.Text = [System.String]'Stop'
$ButtonStop.UseCompatibleTextRendering = $true
$ButtonStop.UseVisualStyleBackColor = $true
#
#TextBoxPath
#
$TextBoxPath.Location = (New-Object -TypeName System.Drawing.Point -ArgumentList @([System.Int32]12,[System.Int32]66))
$TextBoxPath.Name = [System.String]'TextBoxPath'
$TextBoxPath.Size = (New-Object -TypeName System.Drawing.Size -ArgumentList @([System.Int32]453,[System.Int32]24))
$TextBoxPath.TabIndex = [System.Int32]4
#
#LabelPath
#
$LabelPath.Location = (New-Object -TypeName System.Drawing.Point -ArgumentList @([System.Int32]12,[System.Int32]40))
$LabelPath.Name = [System.String]'LabelPath'
$LabelPath.Size = (New-Object -TypeName System.Drawing.Size -ArgumentList @([System.Int32]100,[System.Int32]23))
$LabelPath.TabIndex = [System.Int32]5
$LabelPath.Text = [System.String]'Pfad:'
$LabelPath.UseCompatibleTextRendering = $true
#
#ButtonBrowse
#
$ButtonBrowse.Location = (New-Object -TypeName System.Drawing.Point -ArgumentList @([System.Int32]473,[System.Int32]66))
$ButtonBrowse.Name = [System.String]'ButtonBrowse'
$ButtonBrowse.Size = (New-Object -TypeName System.Drawing.Size -ArgumentList @([System.Int32]109,[System.Int32]23))
$ButtonBrowse.TabIndex = [System.Int32]6
$ButtonBrowse.Text = [System.String]'Browse'
$ButtonBrowse.UseCompatibleTextRendering = $true
$ButtonBrowse.UseVisualStyleBackColor = $true
#
#Button5
#
$Button5.Location = (New-Object -TypeName System.Drawing.Point -ArgumentList @([System.Int32]473,[System.Int32]186))
$Button5.Name = [System.String]'Button5'
$Button5.Size = (New-Object -TypeName System.Drawing.Size -ArgumentList @([System.Int32]109,[System.Int32]23))
$Button5.TabIndex = [System.Int32]7
$Button5.Text = [System.String]'Stop and Quit'
$Button5.UseCompatibleTextRendering = $true
$Button5.UseVisualStyleBackColor = $true
#
#TextBoxHTTPSPort
#
$TextBoxHTTPSPort.Location = (New-Object -TypeName System.Drawing.Point -ArgumentList @([System.Int32]12,[System.Int32]186))
$TextBoxHTTPSPort.Name = [System.String]'TextBoxHTTPSPort'
$TextBoxHTTPSPort.Size = (New-Object -TypeName System.Drawing.Size -ArgumentList @([System.Int32]453,[System.Int32]24))
$TextBoxHTTPSPort.TabIndex = [System.Int32]8
#
#TextBoxHTTPPort
#
$TextBoxHTTPPort.Location = (New-Object -TypeName System.Drawing.Point -ArgumentList @([System.Int32]12,[System.Int32]156))
$TextBoxHTTPPort.Name = [System.String]'TextBoxHTTPPort'
$TextBoxHTTPPort.Size = (New-Object -TypeName System.Drawing.Size -ArgumentList @([System.Int32]453,[System.Int32]24))
$TextBoxHTTPPort.TabIndex = [System.Int32]9
#
#TextBoxHosts
#
$TextBoxHosts.Location = (New-Object -TypeName System.Drawing.Point -ArgumentList @([System.Int32]12,[System.Int32]126))
$TextBoxHosts.Name = [System.String]'TextBoxHosts'
$TextBoxHosts.Size = (New-Object -TypeName System.Drawing.Size -ArgumentList @([System.Int32]453,[System.Int32]24))
$TextBoxHosts.TabIndex = [System.Int32]10
#
#CheckBoxDirectory
#
$CheckBoxDirectory.Location = (New-Object -TypeName System.Drawing.Point -ArgumentList @([System.Int32]12,[System.Int32]96))
$CheckBoxDirectory.Name = [System.String]'CheckBoxDirectory'
$CheckBoxDirectory.Size = (New-Object -TypeName System.Drawing.Size -ArgumentList @([System.Int32]104,[System.Int32]24))
$CheckBoxDirectory.TabIndex = [System.Int32]11
$CheckBoxDirectory.Text = [System.String]'Directory'
$CheckBoxDirectory.UseCompatibleTextRendering = $true
$CheckBoxDirectory.UseVisualStyleBackColor = $true
#
#Form1
#
$Form1.ClientSize = (New-Object -TypeName System.Drawing.Size -ArgumentList @([System.Int32]594,[System.Int32]221))
$Form1.Controls.Add($CheckBoxDirectory)
$Form1.Controls.Add($TextBoxHosts)
$Form1.Controls.Add($TextBoxHTTPPort)
$Form1.Controls.Add($TextBoxHTTPSPort)
$Form1.Controls.Add($Button5)
$Form1.Controls.Add($ButtonBrowse)
$Form1.Controls.Add($LabelPath)
$Form1.Controls.Add($TextBoxPath)
$Form1.Controls.Add($ButtonStop)
$Form1.Controls.Add($ButtonRestart)
$Form1.Controls.Add($ButtonStart)
$Form1.Controls.Add($LabelMain)
$Form1.Text = [System.String]'PowerShell WebServer by MinersWin'
$Form1.ResumeLayout($false)
$Form1.PerformLayout()
Add-Member -InputObject $Form1 -Name base -Value $base -MemberType NoteProperty
Add-Member -InputObject $Form1 -Name LabelMain -Value $LabelMain -MemberType NoteProperty
Add-Member -InputObject $Form1 -Name ButtonStart -Value $ButtonStart -MemberType NoteProperty
Add-Member -InputObject $Form1 -Name ButtonRestart -Value $ButtonRestart -MemberType NoteProperty
Add-Member -InputObject $Form1 -Name ButtonStop -Value $ButtonStop -MemberType NoteProperty
Add-Member -InputObject $Form1 -Name TextBoxPath -Value $TextBoxPath -MemberType NoteProperty
Add-Member -InputObject $Form1 -Name LabelPath -Value $LabelPath -MemberType NoteProperty
Add-Member -InputObject $Form1 -Name ButtonBrowse -Value $ButtonBrowse -MemberType NoteProperty
Add-Member -InputObject $Form1 -Name Button5 -Value $Button5 -MemberType NoteProperty
Add-Member -InputObject $Form1 -Name TextBoxHTTPSPort -Value $TextBoxHTTPSPort -MemberType NoteProperty
Add-Member -InputObject $Form1 -Name TextBoxHTTPPort -Value $TextBoxHTTPPort -MemberType NoteProperty
Add-Member -InputObject $Form1 -Name TextBoxHosts -Value $TextBoxHosts -MemberType NoteProperty
Add-Member -InputObject $Form1 -Name CheckBoxDirectory -Value $CheckBoxDirectory -MemberType NoteProperty
}
. InitializeComponent