📄 productssummaryviewdialog.designer.vb
字号:
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Public Class ProductsSummaryViewDialog
Inherits System.Windows.Forms.Form
Public Sub New()
' This call is required by the Windows Form Designer.
Me.InitializeComponent()
'Attach event handlers to auto-hide controls.
Me.AttachVisibilityBindings(Me.Controls)
End Sub
Public Sub AttachVisibilityBindings(ByVal controls As System.Windows.Forms.Control.ControlCollection)
Dim i As Integer = 0
Do While (i < controls.Count)
If (Not (controls(i).DataBindings("Visible")) Is Nothing) Then
'Attach event handlers to auto-hide controls.
AddHandler controls(i).DataBindings("Visible").Format, AddressOf Me.Visibility_Format
controls(i).DataBindings("Visible").DataSourceUpdateMode = System.Windows.Forms.DataSourceUpdateMode.Never
End If
i = (i + 1)
Loop
End Sub
Public Sub Visibility_Format(ByVal sender As Object, ByVal e As System.Windows.Forms.ConvertEventArgs)
If (e.Value Is System.DBNull.Value) Then
e.Value = False
Else
e.Value = True
End If
End Sub
Public Shared Function Instance(ByVal bindingSource As System.Windows.Forms.BindingSource) As ProductsSummaryViewDialog
System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.WaitCursor
If (defaultInstance Is Nothing) Then
defaultInstance = New DisconnectedServiceAgentExample.ProductsSummaryViewDialog
defaultInstance.ProductsBindingSource.DataSource = bindingSource
End If
defaultInstance.AutoScrollPosition = New System.Drawing.Point(0, 0)
defaultInstance.ProductsBindingSource.Position = bindingSource.Position
System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.Default
Return defaultInstance
End Function
Private Shared defaultInstance As DisconnectedServiceAgentExample.ProductsSummaryViewDialog
'Form overrides dispose to clean up the component list.
<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing AndAlso components IsNot Nothing Then
components.Dispose()
End If
MyBase.Dispose(disposing)
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
Private mainMenu1 As System.Windows.Forms.MainMenu
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Me.ProductsBindingSource = New System.Windows.Forms.BindingSource(Me.components)
Me.ProductIdLabel = New System.Windows.Forms.Label
Me.ProductNameLabel = New System.Windows.Forms.Label
Me.PriceLabel = New System.Windows.Forms.Label
Me.DescriptionLabel = New System.Windows.Forms.Label
Me.mainMenu1 = New System.Windows.Forms.MainMenu
Me.EditMenuItemMenuItem = New System.Windows.Forms.MenuItem
Me.ProductIdLabel1 = New System.Windows.Forms.Label
Me.ProductNameLabel1 = New System.Windows.Forms.Label
Me.PriceLabel1 = New System.Windows.Forms.Label
Me.DescriptionLabel1 = New System.Windows.Forms.Label
Me.topBorderPanel = New System.Windows.Forms.Panel
Me.leftBorderPanel = New System.Windows.Forms.Panel
Me.rightBorderPanel = New System.Windows.Forms.Panel
Me.OrderMenuItem = New System.Windows.Forms.MenuItem
Me.SuspendLayout()
'
'ProductsBindingSource
'
Me.ProductsBindingSource.DataMember = "Products"
Me.ProductsBindingSource.DataSource = GetType(DisconnectedServiceAgentExample.AppDatabaseDataSet)
'
'ProductIdLabel
'
Me.ProductIdLabel.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.ProductsBindingSource, "ProductId", True))
Me.ProductIdLabel.Dock = System.Windows.Forms.DockStyle.Top
Me.ProductIdLabel.Font = New System.Drawing.Font("Tahoma", 9.0!, System.Drawing.FontStyle.Bold)
Me.ProductIdLabel.Location = New System.Drawing.Point(4, 2)
Me.ProductIdLabel.Name = "ProductIdLabel"
Me.ProductIdLabel.Size = New System.Drawing.Size(232, 21)
Me.ProductIdLabel.Text = "Product Id:"
'
'ProductNameLabel
'
Me.ProductNameLabel.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.ProductsBindingSource, "ProductName", True))
Me.ProductNameLabel.Dock = System.Windows.Forms.DockStyle.Top
Me.ProductNameLabel.Font = New System.Drawing.Font("Tahoma", 9.0!, System.Drawing.FontStyle.Bold)
Me.ProductNameLabel.Location = New System.Drawing.Point(4, 43)
Me.ProductNameLabel.Name = "ProductNameLabel"
Me.ProductNameLabel.Size = New System.Drawing.Size(232, 21)
Me.ProductNameLabel.Text = "Product Name:"
'
'PriceLabel
'
Me.PriceLabel.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.ProductsBindingSource, "Price", True))
Me.PriceLabel.Dock = System.Windows.Forms.DockStyle.Top
Me.PriceLabel.Font = New System.Drawing.Font("Tahoma", 9.0!, System.Drawing.FontStyle.Bold)
Me.PriceLabel.Location = New System.Drawing.Point(4, 84)
Me.PriceLabel.Name = "PriceLabel"
Me.PriceLabel.Size = New System.Drawing.Size(232, 21)
Me.PriceLabel.Text = "Price:"
'
'DescriptionLabel
'
Me.DescriptionLabel.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.ProductsBindingSource, "Description", True))
Me.DescriptionLabel.Dock = System.Windows.Forms.DockStyle.Top
Me.DescriptionLabel.Font = New System.Drawing.Font("Tahoma", 9.0!, System.Drawing.FontStyle.Bold)
Me.DescriptionLabel.Location = New System.Drawing.Point(4, 125)
Me.DescriptionLabel.Name = "DescriptionLabel"
Me.DescriptionLabel.Size = New System.Drawing.Size(232, 21)
Me.DescriptionLabel.Text = "Description:"
'
'mainMenu1
'
Me.mainMenu1.MenuItems.Add(Me.EditMenuItemMenuItem)
Me.mainMenu1.MenuItems.Add(Me.OrderMenuItem)
'
'EditMenuItemMenuItem
'
Me.EditMenuItemMenuItem.Text = "Edit"
'
'ProductIdLabel1
'
Me.ProductIdLabel1.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.ProductsBindingSource, "ProductId", True))
Me.ProductIdLabel1.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.ProductsBindingSource, "ProductId", True))
Me.ProductIdLabel1.Dock = System.Windows.Forms.DockStyle.Top
Me.ProductIdLabel1.Location = New System.Drawing.Point(4, 23)
Me.ProductIdLabel1.Name = "ProductIdLabel1"
Me.ProductIdLabel1.Size = New System.Drawing.Size(232, 20)
'
'ProductNameLabel1
'
Me.ProductNameLabel1.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.ProductsBindingSource, "ProductName", True))
Me.ProductNameLabel1.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.ProductsBindingSource, "ProductName", True))
Me.ProductNameLabel1.Dock = System.Windows.Forms.DockStyle.Top
Me.ProductNameLabel1.Location = New System.Drawing.Point(4, 64)
Me.ProductNameLabel1.Name = "ProductNameLabel1"
Me.ProductNameLabel1.Size = New System.Drawing.Size(232, 20)
'
'PriceLabel1
'
Me.PriceLabel1.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.ProductsBindingSource, "Price", True))
Me.PriceLabel1.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.ProductsBindingSource, "Price", True))
Me.PriceLabel1.Dock = System.Windows.Forms.DockStyle.Top
Me.PriceLabel1.Location = New System.Drawing.Point(4, 105)
Me.PriceLabel1.Name = "PriceLabel1"
Me.PriceLabel1.Size = New System.Drawing.Size(232, 20)
'
'DescriptionLabel1
'
Me.DescriptionLabel1.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.ProductsBindingSource, "Description", True))
Me.DescriptionLabel1.DataBindings.Add(New System.Windows.Forms.Binding("Visible", Me.ProductsBindingSource, "Description", True))
Me.DescriptionLabel1.Dock = System.Windows.Forms.DockStyle.Top
Me.DescriptionLabel1.Location = New System.Drawing.Point(4, 146)
Me.DescriptionLabel1.Name = "DescriptionLabel1"
Me.DescriptionLabel1.Size = New System.Drawing.Size(232, 20)
'
'topBorderPanel
'
Me.topBorderPanel.Dock = System.Windows.Forms.DockStyle.Top
Me.topBorderPanel.Location = New System.Drawing.Point(4, 0)
Me.topBorderPanel.Name = "topBorderPanel"
Me.topBorderPanel.Size = New System.Drawing.Size(232, 2)
'
'leftBorderPanel
'
Me.leftBorderPanel.Dock = System.Windows.Forms.DockStyle.Left
Me.leftBorderPanel.Location = New System.Drawing.Point(0, 0)
Me.leftBorderPanel.Name = "leftBorderPanel"
Me.leftBorderPanel.Size = New System.Drawing.Size(4, 268)
'
'rightBorderPanel
'
Me.rightBorderPanel.Dock = System.Windows.Forms.DockStyle.Right
Me.rightBorderPanel.Location = New System.Drawing.Point(236, 0)
Me.rightBorderPanel.Name = "rightBorderPanel"
Me.rightBorderPanel.Size = New System.Drawing.Size(4, 268)
'
'OrderMenuItem
'
Me.OrderMenuItem.Text = "Order"
'
'ProductsSummaryViewDialog
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(96.0!, 96.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi
Me.AutoScroll = True
Me.ClientSize = New System.Drawing.Size(240, 268)
Me.Controls.Add(Me.DescriptionLabel1)
Me.Controls.Add(Me.DescriptionLabel)
Me.Controls.Add(Me.PriceLabel1)
Me.Controls.Add(Me.PriceLabel)
Me.Controls.Add(Me.ProductNameLabel1)
Me.Controls.Add(Me.ProductNameLabel)
Me.Controls.Add(Me.ProductIdLabel1)
Me.Controls.Add(Me.ProductIdLabel)
Me.Controls.Add(Me.topBorderPanel)
Me.Controls.Add(Me.leftBorderPanel)
Me.Controls.Add(Me.rightBorderPanel)
Me.Menu = Me.mainMenu1
Me.MinimizeBox = False
Me.Name = "ProductsSummaryViewDialog"
Me.Text = "ProductsSummaryViewDialog"
Me.ResumeLayout(False)
End Sub
Friend WithEvents EditMenuItemMenuItem As System.Windows.Forms.MenuItem
Friend WithEvents ProductsBindingSource As System.Windows.Forms.BindingSource
Friend WithEvents ProductIdLabel1 As System.Windows.Forms.Label
Friend WithEvents ProductNameLabel1 As System.Windows.Forms.Label
Friend WithEvents PriceLabel1 As System.Windows.Forms.Label
Friend WithEvents DescriptionLabel1 As System.Windows.Forms.Label
Friend WithEvents topBorderPanel As System.Windows.Forms.Panel
Friend WithEvents leftBorderPanel As System.Windows.Forms.Panel
Friend WithEvents rightBorderPanel As System.Windows.Forms.Panel
Friend WithEvents ProductIdLabel As System.Windows.Forms.Label
Friend WithEvents ProductNameLabel As System.Windows.Forms.Label
Friend WithEvents PriceLabel As System.Windows.Forms.Label
Friend WithEvents DescriptionLabel As System.Windows.Forms.Label
Friend WithEvents OrderMenuItem As System.Windows.Forms.MenuItem
End Class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -