📄 frmmenu.vb
字号:
Public Class frmMenu
Inherits System.Windows.Forms.Form
#Region " Windows 窗体设计器生成的代码 "
Public Sub New()
MyBase.New()
'该调用是 Windows 窗体设计器所必需的。
InitializeComponent()
'在 InitializeComponent() 调用之后添加任何初始化
End Sub
'窗体重写 dispose 以清理组件列表。
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
'Windows 窗体设计器所必需的
Private components As System.ComponentModel.IContainer
'注意: 以下过程是 Windows 窗体设计器所必需的
'可以使用 Windows 窗体设计器修改此过程。
'不要使用代码编辑器修改它。
Friend WithEvents dgdMenu As System.Windows.Forms.DataGrid
Friend WithEvents grbMenu As System.Windows.Forms.GroupBox
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents Label4 As System.Windows.Forms.Label
Friend WithEvents Label5 As System.Windows.Forms.Label
Friend WithEvents Label6 As System.Windows.Forms.Label
Friend WithEvents btnAdd As System.Windows.Forms.Button
Friend WithEvents btnDel As System.Windows.Forms.Button
Friend WithEvents btnEdt As System.Windows.Forms.Button
Friend WithEvents btnSav As System.Windows.Forms.Button
Friend WithEvents btnExt As System.Windows.Forms.Button
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents txtNo As System.Windows.Forms.TextBox
Friend WithEvents cmbType As System.Windows.Forms.ComboBox
Friend WithEvents cmbStatus As System.Windows.Forms.ComboBox
Friend WithEvents txtPrice As System.Windows.Forms.TextBox
Friend WithEvents txtMemo As System.Windows.Forms.TextBox
Friend WithEvents txtName As System.Windows.Forms.TextBox
Friend WithEvents Label7 As System.Windows.Forms.Label
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmMenu))
Me.dgdMenu = New System.Windows.Forms.DataGrid
Me.grbMenu = New System.Windows.Forms.GroupBox
Me.Label7 = New System.Windows.Forms.Label
Me.txtNo = New System.Windows.Forms.TextBox
Me.Label1 = New System.Windows.Forms.Label
Me.Label6 = New System.Windows.Forms.Label
Me.cmbType = New System.Windows.Forms.ComboBox
Me.cmbStatus = New System.Windows.Forms.ComboBox
Me.txtPrice = New System.Windows.Forms.TextBox
Me.Label5 = New System.Windows.Forms.Label
Me.txtMemo = New System.Windows.Forms.TextBox
Me.Label4 = New System.Windows.Forms.Label
Me.Label3 = New System.Windows.Forms.Label
Me.txtName = New System.Windows.Forms.TextBox
Me.Label2 = New System.Windows.Forms.Label
Me.btnAdd = New System.Windows.Forms.Button
Me.btnDel = New System.Windows.Forms.Button
Me.btnEdt = New System.Windows.Forms.Button
Me.btnSav = New System.Windows.Forms.Button
Me.btnExt = New System.Windows.Forms.Button
CType(Me.dgdMenu, System.ComponentModel.ISupportInitialize).BeginInit()
Me.grbMenu.SuspendLayout()
Me.SuspendLayout()
'
'dgdMenu
'
Me.dgdMenu.AlternatingBackColor = System.Drawing.Color.GhostWhite
Me.dgdMenu.BackColor = System.Drawing.Color.GhostWhite
Me.dgdMenu.BackgroundColor = System.Drawing.Color.Lavender
Me.dgdMenu.BorderStyle = System.Windows.Forms.BorderStyle.None
Me.dgdMenu.CaptionBackColor = System.Drawing.Color.RoyalBlue
Me.dgdMenu.CaptionFont = New System.Drawing.Font("Tahoma", 8.0!, System.Drawing.FontStyle.Bold)
Me.dgdMenu.CaptionForeColor = System.Drawing.Color.White
Me.dgdMenu.CaptionVisible = False
Me.dgdMenu.CausesValidation = False
Me.dgdMenu.DataMember = ""
Me.dgdMenu.FlatMode = True
Me.dgdMenu.Font = New System.Drawing.Font("Tahoma", 11.0!)
Me.dgdMenu.ForeColor = System.Drawing.Color.MidnightBlue
Me.dgdMenu.GridLineColor = System.Drawing.Color.RoyalBlue
Me.dgdMenu.HeaderBackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(128, Byte), CType(255, Byte))
Me.dgdMenu.HeaderFont = New System.Drawing.Font("新宋体", 14.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.dgdMenu.HeaderForeColor = System.Drawing.Color.Lavender
Me.dgdMenu.LinkColor = System.Drawing.Color.Teal
Me.dgdMenu.Location = New System.Drawing.Point(16, 8)
Me.dgdMenu.Name = "dgdMenu"
Me.dgdMenu.ParentRowsBackColor = System.Drawing.Color.Lavender
Me.dgdMenu.ParentRowsForeColor = System.Drawing.Color.MidnightBlue
Me.dgdMenu.ReadOnly = True
Me.dgdMenu.SelectionBackColor = System.Drawing.Color.Teal
Me.dgdMenu.SelectionForeColor = System.Drawing.Color.PaleGreen
Me.dgdMenu.Size = New System.Drawing.Size(640, 144)
Me.dgdMenu.TabIndex = 0
'
'grbMenu
'
Me.grbMenu.Controls.Add(Me.Label7)
Me.grbMenu.Controls.Add(Me.txtNo)
Me.grbMenu.Controls.Add(Me.Label1)
Me.grbMenu.Controls.Add(Me.Label6)
Me.grbMenu.Controls.Add(Me.cmbType)
Me.grbMenu.Controls.Add(Me.cmbStatus)
Me.grbMenu.Controls.Add(Me.txtPrice)
Me.grbMenu.Controls.Add(Me.Label5)
Me.grbMenu.Controls.Add(Me.txtMemo)
Me.grbMenu.Controls.Add(Me.Label4)
Me.grbMenu.Controls.Add(Me.Label3)
Me.grbMenu.Controls.Add(Me.txtName)
Me.grbMenu.Controls.Add(Me.Label2)
Me.grbMenu.Font = New System.Drawing.Font("宋体", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.grbMenu.ForeColor = System.Drawing.Color.Blue
Me.grbMenu.Location = New System.Drawing.Point(24, 168)
Me.grbMenu.Name = "grbMenu"
Me.grbMenu.Size = New System.Drawing.Size(632, 272)
Me.grbMenu.TabIndex = 1
Me.grbMenu.TabStop = False
Me.grbMenu.Text = "菜肴详细信息:"
'
'Label7
'
Me.Label7.Font = New System.Drawing.Font("宋体", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.Label7.ForeColor = System.Drawing.Color.Blue
Me.Label7.Location = New System.Drawing.Point(248, 77)
Me.Label7.Name = "Label7"
Me.Label7.Size = New System.Drawing.Size(40, 16)
Me.Label7.TabIndex = 16
Me.Label7.Text = "元"
'
'txtNo
'
Me.txtNo.Location = New System.Drawing.Point(425, 28)
Me.txtNo.Name = "txtNo"
Me.txtNo.Size = New System.Drawing.Size(166, 26)
Me.txtNo.TabIndex = 1
Me.txtNo.Text = ""
'
'Label1
'
Me.Label1.Location = New System.Drawing.Point(331, 32)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(88, 24)
Me.Label1.TabIndex = 14
Me.Label1.Text = "编 号:"
'
'Label6
'
Me.Label6.Location = New System.Drawing.Point(26, 168)
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(88, 24)
Me.Label6.TabIndex = 13
Me.Label6.Text = "说 明:"
'
'cmbType
'
Me.cmbType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
Me.cmbType.Items.AddRange(New Object() {"热菜", "凉菜", "汤类", "酒水", "饮料", "海鲜", "甜点", "其他"})
Me.cmbType.Location = New System.Drawing.Point(425, 128)
Me.cmbType.Name = "cmbType"
Me.cmbType.Size = New System.Drawing.Size(167, 24)
Me.cmbType.TabIndex = 4
'
'cmbStatus
'
Me.cmbStatus.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
Me.cmbStatus.Items.AddRange(New Object() {"可用", "不可"})
Me.cmbStatus.Location = New System.Drawing.Point(120, 120)
Me.cmbStatus.Name = "cmbStatus"
Me.cmbStatus.Size = New System.Drawing.Size(152, 24)
Me.cmbStatus.TabIndex = 3
'
'txtPrice
'
Me.txtPrice.Location = New System.Drawing.Point(120, 72)
Me.txtPrice.Name = "txtPrice"
Me.txtPrice.Size = New System.Drawing.Size(128, 26)
Me.txtPrice.TabIndex = 2
Me.txtPrice.Text = ""
'
'Label5
'
Me.Label5.Location = New System.Drawing.Point(331, 128)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(88, 24)
Me.Label5.TabIndex = 8
Me.Label5.Text = "类 型:"
'
'txtMemo
'
Me.txtMemo.Location = New System.Drawing.Point(120, 162)
Me.txtMemo.Multiline = True
Me.txtMemo.Name = "txtMemo"
Me.txtMemo.Size = New System.Drawing.Size(472, 94)
Me.txtMemo.TabIndex = 5
Me.txtMemo.Text = ""
'
'Label4
'
Me.Label4.Location = New System.Drawing.Point(26, 125)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(88, 24)
Me.Label4.TabIndex = 6
Me.Label4.Text = "是否可用:"
'
'Label3
'
Me.Label3.Location = New System.Drawing.Point(26, 73)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(88, 24)
Me.Label3.TabIndex = 4
Me.Label3.Text = "价 格:"
'
'txtName
'
Me.txtName.Location = New System.Drawing.Point(120, 28)
Me.txtName.Name = "txtName"
Me.txtName.Size = New System.Drawing.Size(152, 26)
Me.txtName.TabIndex = 0
Me.txtName.Text = ""
'
'Label2
'
Me.Label2.Location = New System.Drawing.Point(26, 32)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(88, 24)
Me.Label2.TabIndex = 2
Me.Label2.Text = "菜 名:"
'
'btnAdd
'
Me.btnAdd.Font = New System.Drawing.Font("宋体", 15.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.btnAdd.ForeColor = System.Drawing.Color.Teal
Me.btnAdd.Location = New System.Drawing.Point(40, 440)
Me.btnAdd.Name = "btnAdd"
Me.btnAdd.Size = New System.Drawing.Size(88, 40)
Me.btnAdd.TabIndex = 0
Me.btnAdd.Text = "增 加"
'
'btnDel
'
Me.btnDel.Font = New System.Drawing.Font("宋体", 15.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.btnDel.ForeColor = System.Drawing.Color.Teal
Me.btnDel.Location = New System.Drawing.Point(152, 440)
Me.btnDel.Name = "btnDel"
Me.btnDel.Size = New System.Drawing.Size(88, 40)
Me.btnDel.TabIndex = 1
Me.btnDel.Text = "删 除"
'
'btnEdt
'
Me.btnEdt.Font = New System.Drawing.Font("宋体", 15.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.btnEdt.ForeColor = System.Drawing.Color.Teal
Me.btnEdt.Location = New System.Drawing.Point(248, 440)
Me.btnEdt.Name = "btnEdt"
Me.btnEdt.Size = New System.Drawing.Size(88, 40)
Me.btnEdt.TabIndex = 2
Me.btnEdt.Text = "编 辑"
'
'btnSav
'
Me.btnSav.Enabled = False
Me.btnSav.Font = New System.Drawing.Font("宋体", 15.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.btnSav.ForeColor = System.Drawing.Color.Teal
Me.btnSav.Location = New System.Drawing.Point(360, 440)
Me.btnSav.Name = "btnSav"
Me.btnSav.Size = New System.Drawing.Size(88, 40)
Me.btnSav.TabIndex = 3
Me.btnSav.Text = "保 存"
'
'btnExt
'
Me.btnExt.DialogResult = System.Windows.Forms.DialogResult.Cancel
Me.btnExt.Font = New System.Drawing.Font("宋体", 15.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(134, Byte))
Me.btnExt.ForeColor = System.Drawing.Color.Teal
Me.btnExt.Location = New System.Drawing.Point(528, 440)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -