📄 frmgate.vb
字号:
Public Class frmGate
Inherits System.Windows.Forms.Form
'Our variable to hold the gate
Private gate As DigitalNeuralGate
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'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 Panel1 As System.Windows.Forms.Panel
Friend WithEvents Panel2 As System.Windows.Forms.Panel
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents out1 As System.Windows.Forms.TextBox
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 out2 As System.Windows.Forms.TextBox
Friend WithEvents out3 As System.Windows.Forms.TextBox
Friend WithEvents out4 As System.Windows.Forms.TextBox
Friend WithEvents cmdTrain1000 As System.Windows.Forms.Button
Friend WithEvents Label7 As System.Windows.Forms.Label
Friend WithEvents cmdRun As System.Windows.Forms.Button
Friend WithEvents llAND As System.Windows.Forms.LinkLabel
Friend WithEvents llOR As System.Windows.Forms.LinkLabel
Friend WithEvents llXOR As System.Windows.Forms.LinkLabel
Friend WithEvents cmdRestart As System.Windows.Forms.Button
Friend WithEvents cmdClose As System.Windows.Forms.Button
Friend WithEvents lblTrainInfo As System.Windows.Forms.Label
Friend WithEvents Label8 As System.Windows.Forms.Label
Friend WithEvents Label9 As System.Windows.Forms.Label
Friend WithEvents Label10 As System.Windows.Forms.Label
Friend WithEvents inp42 As System.Windows.Forms.TextBox
Friend WithEvents inp41 As System.Windows.Forms.TextBox
Friend WithEvents inp32 As System.Windows.Forms.TextBox
Friend WithEvents inp31 As System.Windows.Forms.TextBox
Friend WithEvents inp22 As System.Windows.Forms.TextBox
Friend WithEvents inp21 As System.Windows.Forms.TextBox
Friend WithEvents inp12 As System.Windows.Forms.TextBox
Friend WithEvents inp11 As System.Windows.Forms.TextBox
Friend WithEvents rout1 As System.Windows.Forms.TextBox
Friend WithEvents rinp12 As System.Windows.Forms.TextBox
Friend WithEvents rinp11 As System.Windows.Forms.TextBox
Friend WithEvents rout2 As System.Windows.Forms.TextBox
Friend WithEvents rinp22 As System.Windows.Forms.TextBox
Friend WithEvents rinp21 As System.Windows.Forms.TextBox
Friend WithEvents rout3 As System.Windows.Forms.TextBox
Friend WithEvents rinp32 As System.Windows.Forms.TextBox
Friend WithEvents rinp31 As System.Windows.Forms.TextBox
Friend WithEvents rout4 As System.Windows.Forms.TextBox
Friend WithEvents rinp42 As System.Windows.Forms.TextBox
Friend WithEvents rinp41 As System.Windows.Forms.TextBox
Friend WithEvents cmdTrainOnce As System.Windows.Forms.Button
Friend WithEvents cmdSave As System.Windows.Forms.Button
Friend WithEvents cmdLoad As System.Windows.Forms.Button
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.Panel1 = New System.Windows.Forms.Panel()
Me.cmdTrainOnce = New System.Windows.Forms.Button()
Me.lblTrainInfo = New System.Windows.Forms.Label()
Me.llXOR = New System.Windows.Forms.LinkLabel()
Me.llOR = New System.Windows.Forms.LinkLabel()
Me.llAND = New System.Windows.Forms.LinkLabel()
Me.out4 = New System.Windows.Forms.TextBox()
Me.Label6 = New System.Windows.Forms.Label()
Me.inp42 = New System.Windows.Forms.TextBox()
Me.inp41 = New System.Windows.Forms.TextBox()
Me.out3 = New System.Windows.Forms.TextBox()
Me.Label5 = New System.Windows.Forms.Label()
Me.inp32 = New System.Windows.Forms.TextBox()
Me.inp31 = New System.Windows.Forms.TextBox()
Me.out2 = New System.Windows.Forms.TextBox()
Me.Label4 = New System.Windows.Forms.Label()
Me.inp22 = New System.Windows.Forms.TextBox()
Me.inp21 = New System.Windows.Forms.TextBox()
Me.out1 = New System.Windows.Forms.TextBox()
Me.Label3 = New System.Windows.Forms.Label()
Me.inp12 = New System.Windows.Forms.TextBox()
Me.inp11 = New System.Windows.Forms.TextBox()
Me.Label1 = New System.Windows.Forms.Label()
Me.cmdTrain1000 = New System.Windows.Forms.Button()
Me.Panel2 = New System.Windows.Forms.Panel()
Me.Label10 = New System.Windows.Forms.Label()
Me.rout4 = New System.Windows.Forms.TextBox()
Me.rinp42 = New System.Windows.Forms.TextBox()
Me.rinp41 = New System.Windows.Forms.TextBox()
Me.Label9 = New System.Windows.Forms.Label()
Me.rout3 = New System.Windows.Forms.TextBox()
Me.rinp32 = New System.Windows.Forms.TextBox()
Me.rinp31 = New System.Windows.Forms.TextBox()
Me.Label8 = New System.Windows.Forms.Label()
Me.rout2 = New System.Windows.Forms.TextBox()
Me.rinp22 = New System.Windows.Forms.TextBox()
Me.rinp21 = New System.Windows.Forms.TextBox()
Me.cmdRun = New System.Windows.Forms.Button()
Me.Label7 = New System.Windows.Forms.Label()
Me.rout1 = New System.Windows.Forms.TextBox()
Me.rinp12 = New System.Windows.Forms.TextBox()
Me.rinp11 = New System.Windows.Forms.TextBox()
Me.Label2 = New System.Windows.Forms.Label()
Me.cmdRestart = New System.Windows.Forms.Button()
Me.cmdClose = New System.Windows.Forms.Button()
Me.cmdSave = New System.Windows.Forms.Button()
Me.cmdLoad = New System.Windows.Forms.Button()
Me.Panel1.SuspendLayout()
Me.Panel2.SuspendLayout()
Me.SuspendLayout()
'
'Panel1
'
Me.Panel1.BackColor = System.Drawing.Color.White
Me.Panel1.Controls.AddRange(New System.Windows.Forms.Control() {Me.cmdTrainOnce, Me.lblTrainInfo, Me.llXOR, Me.llOR, Me.llAND, Me.out4, Me.Label6, Me.inp42, Me.inp41, Me.out3, Me.Label5, Me.inp32, Me.inp31, Me.out2, Me.Label4, Me.inp22, Me.inp21, Me.out1, Me.Label3, Me.inp12, Me.inp11, Me.Label1, Me.cmdTrain1000})
Me.Panel1.Location = New System.Drawing.Point(7, 12)
Me.Panel1.Name = "Panel1"
Me.Panel1.Size = New System.Drawing.Size(309, 252)
Me.Panel1.TabIndex = 0
'
'cmdTrainOnce
'
Me.cmdTrainOnce.BackColor = System.Drawing.Color.FromArgb(CType(192, Byte), CType(192, Byte), CType(255, Byte))
Me.cmdTrainOnce.Location = New System.Drawing.Point(147, 208)
Me.cmdTrainOnce.Name = "cmdTrainOnce"
Me.cmdTrainOnce.Size = New System.Drawing.Size(113, 25)
Me.cmdTrainOnce.TabIndex = 23
Me.cmdTrainOnce.Text = "Train Once"
'
'lblTrainInfo
'
Me.lblTrainInfo.Location = New System.Drawing.Point(20, 35)
Me.lblTrainInfo.Name = "lblTrainInfo"
Me.lblTrainInfo.Size = New System.Drawing.Size(298, 16)
Me.lblTrainInfo.TabIndex = 22
Me.lblTrainInfo.Text = "lblInfo"
'
'llXOR
'
Me.llXOR.Location = New System.Drawing.Point(190, 120)
Me.llXOR.Name = "llXOR"
Me.llXOR.Size = New System.Drawing.Size(104, 16)
Me.llXOR.TabIndex = 21
Me.llXOR.TabStop = True
Me.llXOR.Text = "Truth Table of XOR"
'
'llOR
'
Me.llOR.Location = New System.Drawing.Point(190, 91)
Me.llOR.Name = "llOR"
Me.llOR.Size = New System.Drawing.Size(98, 16)
Me.llOR.TabIndex = 20
Me.llOR.TabStop = True
Me.llOR.Text = "Truth Table of OR"
'
'llAND
'
Me.llAND.Location = New System.Drawing.Point(190, 63)
Me.llAND.Name = "llAND"
Me.llAND.Size = New System.Drawing.Size(104, 16)
Me.llAND.TabIndex = 19
Me.llAND.TabStop = True
Me.llAND.Text = "Truth Table of AND"
'
'out4
'
Me.out4.Location = New System.Drawing.Point(131, 164)
Me.out4.Name = "out4"
Me.out4.Size = New System.Drawing.Size(33, 20)
Me.out4.TabIndex = 16
Me.out4.Text = ""
'
'Label6
'
Me.Label6.Location = New System.Drawing.Point(109, 169)
Me.Label6.Name = "Label6"
Me.Label6.Size = New System.Drawing.Size(15, 12)
Me.Label6.TabIndex = 15
Me.Label6.Text = "="
'
'inp42
'
Me.inp42.Location = New System.Drawing.Point(60, 164)
Me.inp42.Name = "inp42"
Me.inp42.ReadOnly = True
Me.inp42.Size = New System.Drawing.Size(33, 20)
Me.inp42.TabIndex = 14
Me.inp42.Text = "1"
'
'inp41
'
Me.inp41.Location = New System.Drawing.Point(15, 164)
Me.inp41.Name = "inp41"
Me.inp41.ReadOnly = True
Me.inp41.Size = New System.Drawing.Size(33, 20)
Me.inp41.TabIndex = 13
Me.inp41.Text = "1"
'
'out3
'
Me.out3.Location = New System.Drawing.Point(131, 129)
Me.out3.Name = "out3"
Me.out3.Size = New System.Drawing.Size(33, 20)
Me.out3.TabIndex = 12
Me.out3.Text = ""
'
'Label5
'
Me.Label5.Location = New System.Drawing.Point(108, 134)
Me.Label5.Name = "Label5"
Me.Label5.Size = New System.Drawing.Size(15, 12)
Me.Label5.TabIndex = 11
Me.Label5.Text = "="
'
'inp32
'
Me.inp32.Location = New System.Drawing.Point(60, 129)
Me.inp32.Name = "inp32"
Me.inp32.ReadOnly = True
Me.inp32.Size = New System.Drawing.Size(33, 20)
Me.inp32.TabIndex = 10
Me.inp32.Text = "0"
'
'inp31
'
Me.inp31.Location = New System.Drawing.Point(15, 129)
Me.inp31.Name = "inp31"
Me.inp31.ReadOnly = True
Me.inp31.Size = New System.Drawing.Size(33, 20)
Me.inp31.TabIndex = 9
Me.inp31.Text = "1"
'
'out2
'
Me.out2.Location = New System.Drawing.Point(131, 94)
Me.out2.Name = "out2"
Me.out2.Size = New System.Drawing.Size(33, 20)
Me.out2.TabIndex = 8
Me.out2.Text = ""
'
'Label4
'
Me.Label4.Location = New System.Drawing.Point(107, 99)
Me.Label4.Name = "Label4"
Me.Label4.Size = New System.Drawing.Size(15, 12)
Me.Label4.TabIndex = 7
Me.Label4.Text = "="
'
'inp22
'
Me.inp22.Location = New System.Drawing.Point(60, 94)
Me.inp22.Name = "inp22"
Me.inp22.ReadOnly = True
Me.inp22.Size = New System.Drawing.Size(33, 20)
Me.inp22.TabIndex = 6
Me.inp22.Text = "1"
'
'inp21
'
Me.inp21.Location = New System.Drawing.Point(15, 94)
Me.inp21.Name = "inp21"
Me.inp21.ReadOnly = True
Me.inp21.Size = New System.Drawing.Size(33, 20)
Me.inp21.TabIndex = 5
Me.inp21.Text = "0"
'
'out1
'
Me.out1.Location = New System.Drawing.Point(131, 59)
Me.out1.Name = "out1"
Me.out1.Size = New System.Drawing.Size(33, 20)
Me.out1.TabIndex = 4
Me.out1.Text = ""
'
'Label3
'
Me.Label3.Location = New System.Drawing.Point(106, 62)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(15, 12)
Me.Label3.TabIndex = 3
Me.Label3.Text = "="
'
'inp12
'
Me.inp12.Location = New System.Drawing.Point(60, 59)
Me.inp12.Name = "inp12"
Me.inp12.ReadOnly = True
Me.inp12.Size = New System.Drawing.Size(33, 20)
Me.inp12.TabIndex = 2
Me.inp12.Text = "0"
'
'inp11
'
Me.inp11.Location = New System.Drawing.Point(15, 59)
Me.inp11.Name = "inp11"
Me.inp11.ReadOnly = True
Me.inp11.Size = New System.Drawing.Size(33, 20)
Me.inp11.TabIndex = 1
Me.inp11.Text = "0"
'
'Label1
'
Me.Label1.BackColor = System.Drawing.Color.White
Me.Label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label1.Location = New System.Drawing.Point(15, 8)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(291, 17)
Me.Label1.TabIndex = 0
Me.Label1.Text = "Step 1 : Train The Network Using Truth Table"
'
'cmdTrain1000
'
Me.cmdTrain1000.BackColor = System.Drawing.Color.FromArgb(CType(192, Byte), CType(192, Byte), CType(255, Byte))
Me.cmdTrain1000.Location = New System.Drawing.Point(9, 208)
Me.cmdTrain1000.Name = "cmdTrain1000"
Me.cmdTrain1000.Size = New System.Drawing.Size(113, 25)
Me.cmdTrain1000.TabIndex = 18
Me.cmdTrain1000.Text = "Train 1000 Times"
'
'Panel2
'
Me.Panel2.BackColor = System.Drawing.Color.White
Me.Panel2.Controls.AddRange(New System.Windows.Forms.Control() {Me.Label10, Me.rout4, Me.rinp42, Me.rinp41, Me.Label9, Me.rout3, Me.rinp32, Me.rinp31, Me.Label8, Me.rout2, Me.rinp22, Me.rinp21, Me.cmdRun, Me.Label7, Me.rout1, Me.rinp12, Me.rinp11, Me.Label2})
Me.Panel2.Location = New System.Drawing.Point(323, 12)
Me.Panel2.Name = "Panel2"
Me.Panel2.Size = New System.Drawing.Size(299, 253)
Me.Panel2.TabIndex = 1
'
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -