📄 xipmain.vb
字号:
Public Class frmMain
Inherits System.Windows.Forms.Form
Private frmImageProcess As New frmImageProcess
Private fpgauptodate As Boolean
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
Tools.FRMMN = Me
Tools.IMGLST = lstImage
Tools.PRCLST = lstProcess
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
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
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'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.
Friend WithEvents dlgOpenImage As System.Windows.Forms.OpenFileDialog
Friend WithEvents dlgSaveImage As System.Windows.Forms.SaveFileDialog
Friend WithEvents dlgSaveData As System.Windows.Forms.SaveFileDialog
Friend WithEvents dlgOpenData As System.Windows.Forms.OpenFileDialog
Public WithEvents txtLog As System.Windows.Forms.TextBox
Friend WithEvents btnImageAdd As System.Windows.Forms.Button
Friend WithEvents btnImageRemove As System.Windows.Forms.Button
Friend WithEvents btnImageReset As System.Windows.Forms.Button
Friend WithEvents btnImageChange As System.Windows.Forms.Button
Friend WithEvents btnImageSave As System.Windows.Forms.Button
Friend WithEvents btnProcessNew As System.Windows.Forms.Button
Friend WithEvents btnProcessDelete As System.Windows.Forms.Button
Friend WithEvents btnProcessClear As System.Windows.Forms.Button
Friend WithEvents btnProcessModify As System.Windows.Forms.Button
Friend WithEvents btnDataLoad As System.Windows.Forms.Button
Friend WithEvents btnDataStore As System.Windows.Forms.Button
Friend WithEvents btnDataImport As System.Windows.Forms.Button
Friend WithEvents btnDataExport As System.Windows.Forms.Button
Friend WithEvents lstImage As System.Windows.Forms.ListBox
Friend WithEvents grpPicture As System.Windows.Forms.GroupBox
Friend WithEvents grpDataControl As System.Windows.Forms.GroupBox
Friend WithEvents grpImages As System.Windows.Forms.GroupBox
Friend WithEvents grpProcesses As System.Windows.Forms.GroupBox
Friend WithEvents btnLogClear As System.Windows.Forms.Button
Friend WithEvents tbcMain As System.Windows.Forms.TabControl
Friend WithEvents tbpMultiprocess As System.Windows.Forms.TabPage
Friend WithEvents tbpLog As System.Windows.Forms.TabPage
Friend WithEvents pcbPicture As System.Windows.Forms.PictureBox
Friend WithEvents lstProcess As System.Windows.Forms.ListBox
Friend WithEvents tmrProcess As System.Windows.Forms.Timer
Friend WithEvents tbpSettings As System.Windows.Forms.TabPage
Friend WithEvents chkSynchronize As System.Windows.Forms.CheckBox
Friend WithEvents grpDevice As System.Windows.Forms.GroupBox
Friend WithEvents cboDevice As System.Windows.Forms.ComboBox
Friend WithEvents btnDevStart As System.Windows.Forms.Button
Friend WithEvents tbpHelp As System.Windows.Forms.TabPage
Friend WithEvents rtbHelp As System.Windows.Forms.RichTextBox
Friend WithEvents btnDevStop As System.Windows.Forms.Button
Friend WithEvents lblimgh As System.Windows.Forms.Label
Friend WithEvents lblprch As System.Windows.Forms.Label
Friend WithEvents tbpPWM As System.Windows.Forms.TabPage
Friend WithEvents grpDisplay As System.Windows.Forms.GroupBox
Friend WithEvents btnSendPWM As System.Windows.Forms.Button
Friend WithEvents btnBestLook160ns As System.Windows.Forms.Button
Friend WithEvents btnBestLook80ns As System.Windows.Forms.Button
Friend WithEvents btnSynchronized As System.Windows.Forms.Button
Friend WithEvents cboVerticalDelay As System.Windows.Forms.ComboBox
Friend WithEvents cboHorizontalDelay As System.Windows.Forms.ComboBox
Friend WithEvents lblVerticalDelay As System.Windows.Forms.Label
Friend WithEvents lblHorizontalDelay As System.Windows.Forms.Label
Friend WithEvents grpPulseTiming As System.Windows.Forms.GroupBox
Friend WithEvents btnPrevRefresh As System.Windows.Forms.Button
Friend WithEvents btnNextRefresh As System.Windows.Forms.Button
Friend WithEvents lblRefreshtxt As System.Windows.Forms.Label
Friend WithEvents txtPWMinfo As System.Windows.Forms.TextBox
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents txtRefresh As System.Windows.Forms.TextBox
Friend WithEvents txtR09 As System.Windows.Forms.TextBox
Friend WithEvents txtR08 As System.Windows.Forms.TextBox
Friend WithEvents txtR07 As System.Windows.Forms.TextBox
Friend WithEvents txtR06 As System.Windows.Forms.TextBox
Friend WithEvents txtR05 As System.Windows.Forms.TextBox
Friend WithEvents txtR04 As System.Windows.Forms.TextBox
Friend WithEvents txtR03 As System.Windows.Forms.TextBox
Friend WithEvents txtR02 As System.Windows.Forms.TextBox
Friend WithEvents txtR01 As System.Windows.Forms.TextBox
Friend WithEvents txtR00 As System.Windows.Forms.TextBox
Friend WithEvents txtR15 As System.Windows.Forms.TextBox
Friend WithEvents txtR14 As System.Windows.Forms.TextBox
Friend WithEvents txtR13 As System.Windows.Forms.TextBox
Friend WithEvents txtR12 As System.Windows.Forms.TextBox
Friend WithEvents txtR11 As System.Windows.Forms.TextBox
Friend WithEvents txtR10 As System.Windows.Forms.TextBox
Friend WithEvents cboPWM As System.Windows.Forms.ComboBox
Friend WithEvents lblPWM As System.Windows.Forms.Label
Friend WithEvents chkCountRefresh As System.Windows.Forms.CheckBox
Friend WithEvents tmrRefresh As System.Windows.Forms.Timer
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 cboResolution As System.Windows.Forms.ComboBox
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Me.dlgOpenImage = New System.Windows.Forms.OpenFileDialog
Me.dlgSaveImage = New System.Windows.Forms.SaveFileDialog
Me.dlgSaveData = New System.Windows.Forms.SaveFileDialog
Me.dlgOpenData = New System.Windows.Forms.OpenFileDialog
Me.tbcMain = New System.Windows.Forms.TabControl
Me.tbpMultiprocess = New System.Windows.Forms.TabPage
Me.grpPicture = New System.Windows.Forms.GroupBox
Me.pcbPicture = New System.Windows.Forms.PictureBox
Me.grpDataControl = New System.Windows.Forms.GroupBox
Me.chkSynchronize = New System.Windows.Forms.CheckBox
Me.btnDataLoad = New System.Windows.Forms.Button
Me.btnDataStore = New System.Windows.Forms.Button
Me.btnDataImport = New System.Windows.Forms.Button
Me.btnDataExport = New System.Windows.Forms.Button
Me.grpImages = New System.Windows.Forms.GroupBox
Me.lstImage = New System.Windows.Forms.ListBox
Me.lblimgh = New System.Windows.Forms.Label
Me.btnImageReset = New System.Windows.Forms.Button
Me.btnImageSave = New System.Windows.Forms.Button
Me.btnImageChange = New System.Windows.Forms.Button
Me.btnImageRemove = New System.Windows.Forms.Button
Me.btnImageAdd = New System.Windows.Forms.Button
Me.grpProcesses = New System.Windows.Forms.GroupBox
Me.lblprch = New System.Windows.Forms.Label
Me.lstProcess = New System.Windows.Forms.ListBox
Me.btnProcessClear = New System.Windows.Forms.Button
Me.btnProcessModify = New System.Windows.Forms.Button
Me.btnProcessDelete = New System.Windows.Forms.Button
Me.btnProcessNew = New System.Windows.Forms.Button
Me.tbpPWM = New System.Windows.Forms.TabPage
Me.grpDisplay = New System.Windows.Forms.GroupBox
Me.cboResolution = New System.Windows.Forms.ComboBox
Me.Label4 = New System.Windows.Forms.Label
Me.Label3 = New System.Windows.Forms.Label
Me.Label2 = New System.Windows.Forms.Label
Me.chkCountRefresh = New System.Windows.Forms.CheckBox
Me.lblPWM = New System.Windows.Forms.Label
Me.cboPWM = New System.Windows.Forms.ComboBox
Me.txtRefresh = New System.Windows.Forms.TextBox
Me.Label1 = New System.Windows.Forms.Label
Me.txtPWMinfo = New System.Windows.Forms.TextBox
Me.lblRefreshtxt = New System.Windows.Forms.Label
Me.btnNextRefresh = New System.Windows.Forms.Button
Me.btnPrevRefresh = New System.Windows.Forms.Button
Me.grpPulseTiming = New System.Windows.Forms.GroupBox
Me.txtR15 = New System.Windows.Forms.TextBox
Me.txtR14 = New System.Windows.Forms.TextBox
Me.txtR13 = New System.Windows.Forms.TextBox
Me.txtR12 = New System.Windows.Forms.TextBox
Me.txtR11 = New System.Windows.Forms.TextBox
Me.txtR10 = New System.Windows.Forms.TextBox
Me.txtR09 = New System.Windows.Forms.TextBox
Me.txtR08 = New System.Windows.Forms.TextBox
Me.txtR07 = New System.Windows.Forms.TextBox
Me.txtR06 = New System.Windows.Forms.TextBox
Me.txtR05 = New System.Windows.Forms.TextBox
Me.txtR04 = New System.Windows.Forms.TextBox
Me.txtR03 = New System.Windows.Forms.TextBox
Me.txtR02 = New System.Windows.Forms.TextBox
Me.txtR01 = New System.Windows.Forms.TextBox
Me.txtR00 = New System.Windows.Forms.TextBox
Me.btnSendPWM = New System.Windows.Forms.Button
Me.btnBestLook160ns = New System.Windows.Forms.Button
Me.btnBestLook80ns = New System.Windows.Forms.Button
Me.btnSynchronized = New System.Windows.Forms.Button
Me.cboVerticalDelay = New System.Windows.Forms.ComboBox
Me.cboHorizontalDelay = New System.Windows.Forms.ComboBox
Me.lblVerticalDelay = New System.Windows.Forms.Label
Me.lblHorizontalDelay = New System.Windows.Forms.Label
Me.tbpSettings = New System.Windows.Forms.TabPage
Me.grpDevice = New System.Windows.Forms.GroupBox
Me.btnDevStop = New System.Windows.Forms.Button
Me.btnDevStart = New System.Windows.Forms.Button
Me.cboDevice = New System.Windows.Forms.ComboBox
Me.tbpLog = New System.Windows.Forms.TabPage
Me.btnLogClear = New System.Windows.Forms.Button
Me.txtLog = New System.Windows.Forms.TextBox
Me.tbpHelp = New System.Windows.Forms.TabPage
Me.rtbHelp = New System.Windows.Forms.RichTextBox
Me.tmrProcess = New System.Windows.Forms.Timer(Me.components)
Me.tmrRefresh = New System.Windows.Forms.Timer(Me.components)
Me.tbcMain.SuspendLayout()
Me.tbpMultiprocess.SuspendLayout()
Me.grpPicture.SuspendLayout()
Me.grpDataControl.SuspendLayout()
Me.grpImages.SuspendLayout()
Me.grpProcesses.SuspendLayout()
Me.tbpPWM.SuspendLayout()
Me.grpDisplay.SuspendLayout()
Me.grpPulseTiming.SuspendLayout()
Me.tbpSettings.SuspendLayout()
Me.grpDevice.SuspendLayout()
Me.tbpLog.SuspendLayout()
Me.tbpHelp.SuspendLayout()
Me.SuspendLayout()
'
'dlgOpenImage
'
Me.dlgOpenImage.Filter = "Bitmap (*.bmp)|*.bmp|Jpeg (*.jpeg; *.jpg; *.jpe; *.jfif)|*.jpeg; *.jpg; *.jpe; *" & _
".jfif|Gif (*.gif)|*.gif|Png (*.png)|*.png|Tiff (*.tif; *.tiff)|*.tif; *.tiff|All" & _
" picture files|*.bmp; *.jpeg; *.jpg; *.jpe; *.jfif; *.gif; *.png; *.tif; *.tiff|" & _
"All files|*.*"
Me.dlgOpenImage.FilterIndex = 6
Me.dlgOpenImage.Title = "Open Image"
'
'dlgSaveImage
'
Me.dlgSaveImage.Filter = "Bitmap (*.bmp)|*.bmp|Jpeg (*.jpeg; *.jpg; *.jpe; *.jfif)|*.jpeg; *.jpg; *.jpe; *" & _
".jfif|Gif (*.gif)|*.gif|Png (*.png)|*.png|Tiff (*.tif; *.tiff)|*.tif; *.tiff"
Me.dlgSaveImage.Title = "Save Image"
'
'dlgSaveData
'
Me.dlgSaveData.Filter = "Xip data file (*.xip)|*.xip"
Me.dlgSaveData.Title = "Save Data"
'
'dlgOpenData
'
Me.dlgOpenData.Filter = "Xip data file (*.xip)|*.xip"
Me.dlgOpenData.Title = "Load Data"
'
'tbcMain
'
Me.tbcMain.Controls.Add(Me.tbpMultiprocess)
Me.tbcMain.Controls.Add(Me.tbpPWM)
Me.tbcMain.Controls.Add(Me.tbpSettings)
Me.tbcMain.Controls.Add(Me.tbpLog)
Me.tbcMain.Controls.Add(Me.tbpHelp)
Me.tbcMain.ItemSize = New System.Drawing.Size(51, 18)
Me.tbcMain.Location = New System.Drawing.Point(0, 0)
Me.tbcMain.Name = "tbcMain"
Me.tbcMain.SelectedIndex = 0
Me.tbcMain.Size = New System.Drawing.Size(704, 384)
Me.tbcMain.TabIndex = 0
'
'tbpMultiprocess
'
Me.tbpMultiprocess.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.tbpMultiprocess.Controls.Add(Me.grpPicture)
Me.tbpMultiprocess.Controls.Add(Me.grpDataControl)
Me.tbpMultiprocess.Controls.Add(Me.grpImages)
Me.tbpMultiprocess.Controls.Add(Me.grpProcesses)
Me.tbpMultiprocess.Location = New System.Drawing.Point(4, 22)
Me.tbpMultiprocess.Name = "tbpMultiprocess"
Me.tbpMultiprocess.Size = New System.Drawing.Size(696, 358)
Me.tbpMultiprocess.TabIndex = 0
Me.tbpMultiprocess.Text = "Edit"
'
'grpPicture
'
Me.grpPicture.Controls.Add(Me.pcbPicture)
Me.grpPicture.FlatStyle = System.Windows.Forms.FlatStyle.Popup
Me.grpPicture.Location = New System.Drawing.Point(272, 8)
Me.grpPicture.Name = "grpPicture"
Me.grpPicture.Size = New System.Drawing.Size(416, 344)
Me.grpPicture.TabIndex = 46
Me.grpPicture.TabStop = False
Me.grpPicture.Text = "Picture:"
'
'pcbPicture
'
Me.pcbPicture.Location = New System.Drawing.Point(8, 16)
Me.pcbPicture.Name = "pcbPicture"
Me.pcbPicture.Size = New System.Drawing.Size(400, 320)
Me.pcbPicture.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage
Me.pcbPicture.TabIndex = 29
Me.pcbPicture.TabStop = False
'
'grpDataControl
'
Me.grpDataControl.Controls.Add(Me.chkSynchronize)
Me.grpDataControl.Controls.Add(Me.btnDataLoad)
Me.grpDataControl.Controls.Add(Me.btnDataStore)
Me.grpDataControl.Controls.Add(Me.btnDataImport)
Me.grpDataControl.Controls.Add(Me.btnDataExport)
Me.grpDataControl.FlatStyle = System.Windows.Forms.FlatStyle.Popup
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -