powershell 我想再创建一种解析式语言(1)

闲来无事,随手写。也欢迎大家提出意见。

老规矩,版权归‘powershell 与 api’

A.YZX编辑器(pss开发)

#------------------------------------------------------------------------
# Source File Information (DO NOT MODIFY)
# Source ID: 774a6b72-0f28-47d2-b46e-c25a15a7b124
# Source File: D:\API\yzxgui.psf
#------------------------------------------------------------------------

<#
    .NOTES
    --------------------------------------------------------------------------------
     Code generated by:  SAPIEN Technologies, Inc., PowerShell Studio 2022 v5.8.206
     Generated on:       2024/2/15 18:06
     Generated by:       Administrator
    --------------------------------------------------------------------------------
    .DESCRIPTION
        GUI script generated by PowerShell Studio 2022
#>


#----------------------------------------------
#region Application Functions
#----------------------------------------------

#endregion Application Functions

#----------------------------------------------
# Generated Form Function
#----------------------------------------------
function Show-yzxgui_psf {

	#----------------------------------------------
	#region Import the Assemblies
	#----------------------------------------------
	[void][reflection.assembly]::Load('System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089')
	[void][reflection.assembly]::Load('System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a')
	#endregion Import Assemblies

	#----------------------------------------------
	#region Generated Form Objects
	#----------------------------------------------
	[System.Windows.Forms.Application]::EnableVisualStyles()
	$formYZXGUIHELP编辑器 = New-Object 'System.Windows.Forms.Form'
	$splitcontainer1 = New-Object 'System.Windows.Forms.SplitContainer'
	$splitcontainer2 = New-Object 'System.Windows.Forms.SplitContainer'
	$button另存为项目 = New-Object 'System.Windows.Forms.Button'
	$button打开项目 = New-Object 'System.Windows.Forms.Button'
	$button执行 = New-Object 'System.Windows.Forms.Button'
	$button查看总 = New-Object 'System.Windows.Forms.Button'
	$button手动编辑模块 = New-Object 'System.Windows.Forms.Button'
	$button删除模块 = New-Object 'System.Windows.Forms.Button'
	$button新建模块 = New-Object 'System.Windows.Forms.Button'
	$panel1 = New-Object 'System.Windows.Forms.Panel'
	$listview1 = New-Object 'System.Windows.Forms.ListView'
	$columnheader1 = New-Object 'System.Windows.Forms.ColumnHeader'
	$imagelist1 = New-Object 'System.Windows.Forms.ImageList'
	$savefiledialog1 = New-Object 'System.Windows.Forms.SaveFileDialog'
	$openfiledialog1 = New-Object 'System.Windows.Forms.OpenFileDialog'
	$notifyicon1 = New-Object 'System.Windows.Forms.NotifyIcon'
	$contextmenustrip1 = New-Object 'System.Windows.Forms.ContextMenuStrip'
	$空文件ToolStripMenuItem = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$文本文件ToolStripMenuItem = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$图片文件ToolStripMenuItem = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$纵坐标移动ToolStripMenuItem = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$大小ToolStripMenuItem = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$iDToolStripMenuItem = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$窗体标题ToolStripMenuItem = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$注释快ToolStripMenuItem = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$分割线ToolStripMenuItem = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$单击时退出ToolStripMenuItem = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$最大化ToolStripMenuItem = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$最小化ToolStripMenuItem = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$弹框ToolStripMenuItem = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$输入框ToolStripMenuItem = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$工具栏提示框ToolStripMenuItem = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$图像类ToolStripMenuItem = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$在某坐标画一个半径为某的某颜色的点ToolStripMenuItem = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$toolstripmenuitem1 = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$toolstripmenuitem2 = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$在两点间画一条线ToolStripMenuItem = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$画一个圆ToolStripMenuItem = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$画一条贝赛尔曲线ToolStripMenuItem = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$画一个矩形ToolStripMenuItem = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$渐变色填充ToolStripMenuItem = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$画文本ToolStripMenuItem = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$画圆弧ToolStripMenuItem = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$画扇形ToolStripMenuItem = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$填充透明色ToolStripMenuItem = New-Object 'System.Windows.Forms.ToolStripMenuItem'
	$button设置 = New-Object 'System.Windows.Forms.Button'
	$InitialFormWindowState = New-Object 'System.Windows.Forms.FormWindowState'
	#endregion Generated Form Objects

	#----------------------------------------------
	# User Generated Script
	#----------------------------------------------
	$yzxlistview = @'
using System; 
using System.Windows.Forms; 
using System.Drawing;
using System.Runtime.InteropServices; //禁用关闭按钮需要引用这个
///
public class NativeListView : System.Windows.Forms.ListView 
{ 
    [DllImport("uxtheme.dll", CharSet = CharSet.Unicode)] 
    public extern static int SetWindowTheme(IntPtr hWnd, string pszSubAppName, 
             string pszSubIdList); 
	
        public NativeListView()
        {
            // 开启双缓冲
            this.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, true);
            UpdateStyles();

            // Enable the OnNotifyMessage event so we get a chance to filter out 
            // Windows messages before they get to the form's WndProc
            this.SetStyle(ControlStyles.EnableNotifyMessage, true);
        }

        protected override void OnNotifyMessage(Message m)
        {
            //Filter out the WM_ERASEBKGND message
            if (m.Msg != 0x14)
                base.OnNotifyMessage(m);
        }
    	protected override void CreateHandle() 
    	{ 
     	base.CreateHandle(); 

     	SetWindowTheme(this.Handle, "explorer", null); 
    	} 
    }

'@ #高级listview控件
	Add-Type -TypeDefinition $yzxlistview -ReferencedAssemblies System.Drawing, System.Data, System.Windows.Forms
	
	$listview1 = New-Object NativeListView
	function set-smallobj($i,$old,$type)
	{
		
		$formTITLE标题项更改 = New-Object 'System.Windows.Forms.Form'
		$textbox1 = New-Object 'System.Windows.Forms.TextBox'
		$button取消 = New-Object 'System.Windows.Forms.Button'
		$button确认 = New-Object 'System.Windows.Forms.Button'
		$button确认_Click = {
			#TODO: Place custom script here
			$text = $textbox1.Text
			switch ($type)
			{
				"<title>"{ $listview1.Items[$i].Text = "<title>$text</title>"}
				"<?>"{ $listview1.Items[$i].text = "<?>$text</?>"}
				
				
				
				
			}
			$formTITLE标题项更改.Dispose()
			
		}
		$button取消_Click = {
			#TODO: Place custom script here
			$formTITLE标题项更改.Dispose()
		}
		$formTITLE标题项更改.Controls.Add($textbox1)
		$formTITLE标题项更改.Controls.Add($button取消)
		$formTITLE标题项更改.Controls.Add($button确认)
		$formTITLE标题项更改.ClientSize = '160, 52'
		$formTITLE标题项更改.MaximizeBox = $False
		$formTITLE标题项更改.MinimizeBox = $False
		$formTITLE标题项更改.ShowIcon = $False
		$formTITLE标题项更改.ShowInTaskbar = $False
		switch ($type)
		{
			"<title>"{ $formTITLE标题项更改.Text = 'Title 标题项更改'}
			"<?>"{ $formTITLE标题项更改.Text = '? 注释项更改' }
			
			
			
			
		}
		
		$formTITLE标题项更改.TopMost = $True
		$textbox1.Location = '1, 0'
		$textbox1.Size = '156, 20'
		$textbox1.text = $old
		$button取消.Location = '82, 26'
		$button取消.Size = '75, 23'
		$button取消.Text = '取消'
		$button取消.add_Click($button取消_Click)
		$button确认.Location = '1, 26'
		$button确认.Size = '75, 23'
		$button确认.Text = '确认'
		$button确认.add_Click($button确认_Click)
		$formTITLE标题项更改.ShowDialog()
		
		
	}
	function set-putobj($i, $old)
	{
		try
		{
			$Put重定义纵坐标 = New-Object 'System.Windows.Forms.Form'
			$numericupdown1 = New-Object 'System.Windows.Forms.NumericUpDown'
			$label注与原位置的偏移量 = New-Object 'System.Windows.Forms.Label'
			$numericupdown1_ValueChanged = {
				#TODO: Place custom script here
				$value = $numericupdown1.Value
				$listview1.Items[$i].text = "<put>$value</put>"
			}
			$Put重定义纵坐标.Controls.Add($numericupdown1)
			$Put重定义纵坐标.Controls.Add($label注与原位置的偏移量)
			$Put重定义纵坐标.ClientSize = '128, 43'
			$Put重定义纵坐标.MaximizeBox = $False
			$Put重定义纵坐标.MinimizeBox = $False
			$Put重定义纵坐标.ShowIcon = $False
			$Put重定义纵坐标.ShowInTaskbar = $False
			$Put重定义纵坐标.Text = 'Put 重定义纵坐标'
			$Put重定义纵坐标.TopMost = $True
			$numericupdown1.Location = '2, 19'
			$numericupdown1.Maximum = 100000000
			$numericupdown1.Minimum = -100000000
			$numericupdown1.Size = '125, 20'
			$numericupdown1.Value = $old
			$numericupdown1.add_ValueChanged($numericupdown1_ValueChanged)
			$label注与原位置的偏移量.AutoSize = $True
			$label注与原位置的偏移量.Location = '0, 0'
			$label注与原位置的偏移量.Size = '129, 17'
			$label注与原位置的偏移量.Text = '注:与原位置的偏移量'
			$Put重定义纵坐标.ShowDialog()
			
		}
		catch
		{
		return	$notifyicon1.ShowBalloonTip(9999)
		}
	}
	function set-weblabel($i, $old, $type)
	{
		try
		{
			$date = Get-Date
			
		$type = $type.Split("<")[1]
		$type = $type.Split(">")[0]
		$form修改文本模块 = New-Object 'System.Windows.Forms.Form'
		$textbox4 = New-Object 'System.Windows.Forms.TextBox'
		$textbox3 = New-Object 'System.Windows.Forms.TextBox'
		$button取消 = New-Object 'System.Windows.Forms.Button'
		$button完成 = New-Object 'System.Windows.Forms.Button'
		$panel1 = New-Object 'System.Windows.Forms.Panel'
		$button浏览 = New-Object 'System.Windows.Forms.Button'
		$textbox2 = New-Object 'System.Windows.Forms.TextBox'
		$textbox1 = New-Object 'System.Windows.Forms.TextBox'
		$numericupdown1 = New-Object 'System.Windows.Forms.NumericUpDown'
		$combobox1 = New-Object 'System.Windows.Forms.ComboBox'
		$label拓展模块 = New-Object 'System.Windows.Forms.Label'
		$label字体颜色 = New-Object 'System.Windows.Forms.Label'
		$label鼠标指针 = New-Object 'System.Windows.Forms.Label'
		$labelID = New-Object 'System.Windows.Forms.Label'
		$label标签 = New-Object 'System.Windows.Forms.Label'
		$colordialog1 = New-Object 'System.Windows.Forms.ColorDialog'
		####################################################################
		$info = $old.Split("@")
		$numericupdown1.Value = $info[0]
		$textbox1.Text = $info[1] #制定光标
		$colorname = $info[2] #制定字体颜色
		if ($colorname.Split("?").count -eq 1)
		{
			$panel1.BackColor = $colorname
		}
		else
		{
			$color = [System.Drawing.Color]::FromArgb($colorname.Split("?")[0], $colorname.Split("?")[1], $colorname.Split("?")[2])
			$panel1.BackColor = $color
		}
		$textbox2.Text = $colorname
		if ($info[3] -ne '"null"')
		{
			$textbox4.Text = $info[3]
			#制定工具提示    
		}
		$si = 3
		$s = $null
		for (0)
			{
				if (((Get-Date) - $date).Seconds -ge 1)
				{
					return $notifyicon1.ShowBalloonTip(9999)
					
				}
			$si++
			$id = $info[$si]
			if ($si -eq 4)
			{
				$s = "$s" + "$id"
				
			}
			else
			{
				$s = "$s" + "@" + "$id"
			}
			if ($si -eq ($info.Count - 1))
			{
				$s = $s.Replace("&left;", "<")
				$s = $s.Replace("&right;", ">")
				$textbox3.Text = $s
				break
			}
		}
		
		####################################################################
		$button浏览_Click = {
			#TODO: Place custom script here
			if ($colordialog1.ShowDialog() -eq 'OK')
			{
				$panel1.BackColor = $colordialog1.Color
				$color_r = $colordialog1.Color.R
				$color_g = $colordialog1.Color.G
				$color_b = $colordialog1.Color.B
				$textbox2.Text = "$color_r" + "?" + "$color_g" + "?" + "$color_b"
				
			}
		}
		
		$button取消_Click = {
			#TODO: Place custom script here
			$form修改文本模块.Dispose()
		}
		
		$button完成_Click = {
			#TODO: Place custom script here
			$id = $numericupdown1.Value
			$cursor = $textbox1.Text
			$forecolor = $textbox2.Text
			$tooltip = '"null"'
			$text = $textbox3.Text
			$style = $combobox1.Text
			$text = $text.Replace("<", "&left;")
			$text = $text.Replace(">", "&right;")
			
			$listview1.Items[$i].text = "<$style>$id@$cursor@$forecolor@$tooltip@$text</$style>"
			$form修改文本模块.Dispose()
			
		}
		$form修改文本模块.Controls.Add($textbox4)
		$form修改文本模块.Controls.Add($textbox3)
		$form修改文本模块.Controls.Add($button取消)
		$form修改文本模块.Controls.Add($button完成)
		$form修改文本模块.Controls.Add($panel1)
		$form修改文本模块.Controls.Add($button浏览)
		$form修改文本模块.Controls.Add($textbox2)
		$form修改文本模块.Controls.Add($textbox1)
		$form修改文本模块.Controls.Add($numericupdown1)
		$form修改文本模块.Controls.Add($combobox1)
		$form修改文本模块.Controls.Add($label拓展模块)
		$form修改文本模块.Controls.Add($label字体颜色)
		$form修改文本模块.Controls.Add($label鼠标指针)
		$form修改文本模块.Controls.Add($labelID)
		$form修改文本模块.Controls.Add($label标签)
		$form修改文本模块.ClientSize = '287, 246'
		$form修改文本模块.Text = '修改文本模块'
		$button取消.Size = '134, 23'
		$button取消.Text = '取消'
		$button取消.add_Click($button取消_Click)
		$button取消.Location = '153, 220'
		$button完成.Location = '0, 220'
		$button完成.Size = '135, 23'
		$button完成.Text = '完成'
		$button完成.add_Click($button完成_Click)
		$panel1.BorderStyle = 'FixedSingle'
		$panel1.Location = '64, 107'
		$panel1.Size = '19, 21'
		$button浏览.Location = '64, 133'
		$button浏览.Size = '223, 23'
		$button浏览.Text = '浏览'
		$button浏览.add_Click($button浏览_Click)
		$textbox2.Location = '89, 107'
		$textbox2.Size = '198, 20'
		$textbox1.Location = '60, 67'
		$textbox1.Size = '227, 20'
		$numericupdown1.Location = '35, 31'
		$numericupdown1.Size = '252, 20'
		$combobox1.FormattingEnabled = $True
		[void]$combobox1.Items.Add('code')
		[void]$combobox1.Items.Add('del')
		[void]$combobox1.Items.Add('b')
		[void]$combobox1.Items.Add('i')
		[void]$combobox1.Items.Add('em')
		[void]$combobox1.Items.Add('p')
		[void]$combobox1.Items.Add('h1')
		[void]$combobox1.Items.Add('h2')
		[void]$combobox1.Items.Add('h3')
		[void]$combobox1.Items.Add('h4')
		[void]$combobox1.Items.Add('h5')
		[void]$combobox1.Items.Add('h6')
		$combobox1.Location = '35, 0'
		$combobox1.Size = '252, 21'
		$combobox1.Text = $type
		$label拓展模块.AutoSize = $True
		$label拓展模块.Location = '0, 167'
		$label拓展模块.Size = '54, 17'
		$label拓展模块.Text = '拓展模块'
		$label字体颜色.AutoSize = $True
		$label字体颜色.Location = '0, 110'
		$label字体颜色.Size = '54, 17'
		$label字体颜色.Text = '字体颜色'
		
		$label鼠标指针.AutoSize = $True
		$label鼠标指针.Location = '0, 67'
		$label鼠标指针.Size = '54, 17'
		$label鼠标指针.Text = '鼠标指针'
		$labelID.AutoSize = $True
		$labelID.Location = '0, 31'
		$labelID.Size = '15, 17'
		$labelID.Text = 'ID'
		$numericupdown1.Maximum = 9999999
		$label标签.AutoSize = $True
		$label标签.Location = '0, 2'
		$label标签.Size = '29, 17'
		$label标签.Text = '标签'
		$textbox4.Enabled = $False
		$textbox4.Location = '64, 162'
		$textbox4.Size = '223, 20'
		$textbox3.Location = '0, 194'
		$textbox3.Size = '287, 20'
		$colordialog1.AnyColor = $True
		$colordialog1.FullOpen = $True
		$form修改文本模块.ShowDialog()
			
		}
		catch
		{
			return $notifyicon1.ShowBalloonTip(9999)
		}
	}
	function set-point($i, $old)
	{
		
		
		$form不掩饰的元素点 = New-Object 'System.Windows.Forms.Form'
		$groupbox1 = New-Object 'System.Windows.Forms.GroupBox'
		$picturebox1 = New-Object 'System.Windows.Forms.PictureBox'
		$button取消 = New-Object 'System.Windows.Forms.Button'
		$button确定 = New-Object 'System.Windows.Forms.Button'
		$button浏览颜色 = New-Object 'System.Windows.Forms.Button'
		$textbox1 = New-Object 'System.Windows.Forms.TextBox'
		$label颜色ARGB = New-Object 'System.Windows.Forms.Label'
		$numericupdown4 = New-Object 'System.Windows.Forms.NumericUpDown'
		$numericupdown5 = New-Object 'System.Windows.Forms.NumericUpDown'
		$label宽 = New-Object 'System.Windows.Forms.Label'
		$label长 = New-Object 'System.Windows.Forms.Label'
		$numericupdown3 = New-Object 'System.Windows.Forms.NumericUpDown'
		$numericupdown2 = New-Object 'System.Windows.Forms.NumericUpDown'
		$label左上角横坐标 = New-Object 'System.Windows.Forms.Label'
		$label左上角竖坐标 = New-Object 'System.Windows.Forms.Label'
		$numericupdown1 = New-Object 'System.Windows.Forms.NumericUpDown'
		$label操作的对象ID = New-Object 'System.Windows.Forms.Label'
		$colordialog1 = New-Object 'System.Windows.Forms.ColorDialog'
		$timer1 = New-Object 'System.Windows.Forms.Timer'
		
		$timer1_Tick = {
			#TODO: Place custom script here
			$bitmap = New-Object System.Drawing.Bitmap([int]($picturebox1.Width), [int]($picturebox1.Height))
			try
			{
				$G = [System.Drawing.Graphics]::FromImage($bitmap)
				$usercolor = $textbox1.Text.Split("?")
				$userbrush = New-Object System.Drawing.SolidBrush([System.Drawing.Color]::FromArgb($usercolor[0], $usercolor[1], $usercolor[2], $usercolor[3]))
				$G.FillEllipse($userbrush, $numericupdown3.Value, $numericupdown2.Value, $numericupdown4.Value, $numericupdown5.Value)
				
			}
			catch
			{
				return
				
			}
			
			$picturebox1.BackgroundImage = $bitmap
			
		}
		
		$button浏览颜色_Click = {
			#TODO: Place custom script here
			if ($colordialog1.ShowDialog() -eq 'OK')
			{
				$A = $colordialog1.Color.a
				$R = $colordialog1.Color.r
				$G = $colordialog1.Color.g
				$B = $colordialog1.Color.b
				$textbox1.Text = "$a" + "?$r" + "?$g" + "?$b"
				
				
				
			}
		}
		
		$button取消_Click = {
			#TODO: Place custom script here
			$form不掩饰的元素点.Dispose()
			$timer1.Enabled = $false
		}
		
		$button确定_Click = {
			#TODO: Place custom script here
			$id = $numericupdown1.Value 
			$x = $numericupdown3.Value
			$y = $numericupdown2.Value
			$w = $numericupdown4.Value
			$h = $numericupdown5.Value 
			$c = $textbox1.Text
			
			$listview1.Items[$i].text = "<new_point>$id@$x@$y@$w@$h@$c</new_point>"
			$form不掩饰的元素点.Dispose()
			$timer1.Enabled = $false
		}
		
		$form不掩饰的元素点.Controls.Add($groupbox1)
		$form不掩饰的元素点.Controls.Add($button取消)
		$form不掩饰的元素点.Controls.Add($button确定)
		$form不掩饰的元素点.Controls.Add($button浏览颜色)
		$form不掩饰的元素点.Controls.Add($textbox1)
		$form不掩饰的元素点.Controls.Add($label颜色ARGB)
		$form不掩饰的元素点.Controls.Add($numericupdown4)
		$form不掩饰的元素点.Controls.Add($numericupdown5)
		$form不掩饰的元素点.Controls.Add($label宽)
		$form不掩饰的元素点.Controls.Add($label长)
		$form不掩饰的元素点.Controls.Add($numericupdown3)
		$form不掩饰的元素点.Controls.Add($numericupdown2)
		$form不掩饰的元素点.Controls.Add($label左上角横坐标)
		$form不掩饰的元素点.Controls.Add($label左上角竖坐标)
		$form不掩饰的元素点.Controls.Add($numericupdown1)
		$form不掩饰的元素点.Controls.Add($label操作的对象ID)
		$form不掩饰的元素点.AutoScaleDimensions = New-Object System.Drawing.SizeF(10, 20)
		$form不掩饰的元素点.AutoScaleMode = 'Font'
		$form不掩饰的元素点.ClientSize = New-Object System.Drawing.Size(439, 787)
		$form不掩饰的元素点.FormBorderStyle = 'FixedDialog'
		$form不掩饰的元素点.Margin = '8, 8, 8, 8'
		$form不掩饰的元素点.MaximizeBox = $False
		$form不掩饰的元素点.MinimizeBox = $False
		$form不掩饰的元素点.Name = 'form不掩饰的元素点'
		$form不掩饰的元素点.StartPosition = 'CenterScreen'
		$form不掩饰的元素点.Text = '不掩饰的元素:点'
		#
		# groupbox1
		#
		$groupbox1.Controls.Add($picturebox1)
		$groupbox1.Location = New-Object System.Drawing.Point(4, 332)
		$groupbox1.Margin = '5, 5, 5, 5'
		$groupbox1.Name = 'groupbox1'
		$groupbox1.Padding = '5, 5, 5, 5'
		$groupbox1.Size = New-Object System.Drawing.Size(431, 449)
		$groupbox1.TabIndex = 15
		$groupbox1.TabStop = $False
		$groupbox1.Text = '预览【编辑器将创建环境帮你预览代码】'
		#
		# picturebox1
		#
		$picturebox1.Dock = 'Fill'
		$picturebox1.Location = New-Object System.Drawing.Point(5, 24)
		$picturebox1.Margin = '5, 5, 5, 5'
		$picturebox1.Name = 'picturebox1'
		$picturebox1.Size = New-Object System.Drawing.Size(421, 420)
		$picturebox1.TabIndex = 0
		$picturebox1.TabStop = $False
		#
		# button取消
		#
		$button取消.Location = New-Object System.Drawing.Point(226, 287)
		$button取消.Margin = '5, 5, 5, 5'
		$button取消.Name = 'button取消'
		$button取消.Size = New-Object System.Drawing.Size(209, 35)
		$button取消.TabIndex = 14
		$button取消.Text = '取消'
		$button取消.UseVisualStyleBackColor = $True
		$button取消.add_Click($button取消_Click)
		#
		# button确定
		#
		$button确定.Location = New-Object System.Drawing.Point(4, 287)
		$button确定.Margin = '5, 5, 5, 5'
		$button确定.Name = 'button确定'
		$button确定.Size = New-Object System.Drawing.Size(196, 35)
		$button确定.TabIndex = 13
		$button确定.Text = '确定'
		$button确定.UseVisualStyleBackColor = $True
		$button确定.add_Click($button确定_Click)
		#
		# button浏览颜色
		#
		$button浏览颜色.Location = New-Object System.Drawing.Point(3, 242)
		$button浏览颜色.Margin = '5, 5, 5, 5'
		$button浏览颜色.Name = 'button浏览颜色'
		$button浏览颜色.Size = New-Object System.Drawing.Size(432, 35)
		$button浏览颜色.TabIndex = 12
		$button浏览颜色.Text = '浏览颜色'
		$button浏览颜色.UseVisualStyleBackColor = $True
		$button浏览颜色.add_Click($button浏览颜色_Click)
		#
		# textbox1
		#
		$textbox1.Location = New-Object System.Drawing.Point(143, 204)
		$textbox1.Margin = '5, 5, 5, 5'
		$textbox1.Name = 'textbox1'
		$textbox1.Size = New-Object System.Drawing.Size(292, 26)
		$textbox1.TabIndex = 11
		#
		# label颜色ARGB
		#
		$label颜色ARGB.AutoSize = $True
		$label颜色ARGB.Location = New-Object System.Drawing.Point(4, 206)
		$label颜色ARGB.Margin = '5, 0, 5, 0'
		$label颜色ARGB.Name = 'label颜色ARGB'
		$label颜色ARGB.Size = New-Object System.Drawing.Size(142, 20)
		$label颜色ARGB.TabIndex = 10
		$label颜色ARGB.Text = '颜色【ARGB】:'
		#
		# numericupdown4
		#
		$numericupdown4.Location = New-Object System.Drawing.Point(50, 123)
		$numericupdown4.Margin = '5, 5, 5, 5'
		$numericupdown4.Maximum = 9999999
		$numericupdown4.Name = 'numericupdown4'
		$numericupdown4.Size = New-Object System.Drawing.Size(386, 26)
		$numericupdown4.TabIndex = 9
		#
		# numericupdown5
		#
		$numericupdown5.Location = New-Object System.Drawing.Point(49, 162)
		$numericupdown5.Margin = '5, 5, 5, 5'
		$numericupdown5.Maximum = 9999999
		$numericupdown5.Name = 'numericupdown5'
		$numericupdown5.Size = New-Object System.Drawing.Size(386, 26)
		$numericupdown5.TabIndex = 8
		#
		# label宽
		#
		$label宽.AutoSize = $True
		$label宽.Location = New-Object System.Drawing.Point(3, 125)
		$label宽.Margin = '5, 0, 5, 0'
		$label宽.Name = 'label宽'
		$label宽.Size = New-Object System.Drawing.Size(43, 20)
		$label宽.TabIndex = 7
		$label宽.Text = '宽:'
		#
		# label长
		#
		$label长.AutoSize = $True
		$label长.Location = New-Object System.Drawing.Point(3, 162)
		$label长.Margin = '5, 0, 5, 0'
		$label长.Name = 'label长'
		$label长.Size = New-Object System.Drawing.Size(43, 20)
		$label长.TabIndex = 6
		$label长.Text = '长:'
		#
		# numericupdown3
		#
		$numericupdown3.Location = New-Object System.Drawing.Point(124, 41)
		$numericupdown3.Margin = '5, 5, 5, 5'
		$numericupdown3.Maximum = 9999999
		$numericupdown3.Minimum = -999999
		$numericupdown3.Name = 'numericupdown3'
		$numericupdown3.Size = New-Object System.Drawing.Size(313, 26)
		$numericupdown3.TabIndex = 5
		#
		# numericupdown2
		#
		$numericupdown2.Location = New-Object System.Drawing.Point(123, 80)
		$numericupdown2.Margin = '5, 5, 5, 5'
		$numericupdown2.Maximum = 9999999
		$numericupdown2.Minimum = -999999
		$numericupdown2.Name = 'numericupdown2'
		$numericupdown2.Size = New-Object System.Drawing.Size(313, 26)
		$numericupdown2.TabIndex = 4
		#
		# label左上角横坐标
		#
		$label左上角横坐标.AutoSize = $True
		$label左上角横坐标.Location = New-Object System.Drawing.Point(4, 43)
		$label左上角横坐标.Margin = '5, 0, 5, 0'
		$label左上角横坐标.Name = 'label左上角横坐标'
		$label左上角横坐标.Size = New-Object System.Drawing.Size(128, 20)
		$label左上角横坐标.TabIndex = 3
		$label左上角横坐标.Text = '左上角横坐标:'
		#
		# label左上角竖坐标
		#
		$label左上角竖坐标.AutoSize = $True
		$label左上角竖坐标.Location = New-Object System.Drawing.Point(4, 80)
		$label左上角竖坐标.Margin = '5, 0, 5, 0'
		$label左上角竖坐标.Name = 'label左上角竖坐标'
		$label左上角竖坐标.Size = New-Object System.Drawing.Size(128, 20)
		$label左上角竖坐标.TabIndex = 2
		$label左上角竖坐标.Text = '左上角竖坐标࿱
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值