﻿Imports System.Text

Public Class frmNotify
    Inherits System.Windows.Forms.Form

#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.
    Public WithEvents Frame3 As System.Windows.Forms.GroupBox
    Public WithEvents rdoCarry0 As System.Windows.Forms.RadioButton
    Public WithEvents rdoCarry1 As System.Windows.Forms.RadioButton
    Public WithEvents Frame2 As System.Windows.Forms.GroupBox
    Public WithEvents rdoError1 As System.Windows.Forms.RadioButton
    Public WithEvents rdoError0 As System.Windows.Forms.RadioButton
    Public WithEvents Frame1 As System.Windows.Forms.GroupBox
    Public WithEvents txtCh0Reg0 As System.Windows.Forms.TextBox
    Public WithEvents txtCh1Reg0 As System.Windows.Forms.TextBox
    Public WithEvents txtCh2Reg0 As System.Windows.Forms.TextBox
    Public WithEvents txtCh3Reg0 As System.Windows.Forms.TextBox
    Public WithEvents txtCh0Reg1 As System.Windows.Forms.TextBox
    Public WithEvents txtCh1Reg1 As System.Windows.Forms.TextBox
    Public WithEvents txtCh2Reg1 As System.Windows.Forms.TextBox
    Public WithEvents txtCh3Reg1 As System.Windows.Forms.TextBox
    Public WithEvents Label1 As System.Windows.Forms.Label
    Public WithEvents Label2 As System.Windows.Forms.Label
    Public WithEvents Label3 As System.Windows.Forms.Label
    Public WithEvents Label4 As System.Windows.Forms.Label
    Public WithEvents Label5 As System.Windows.Forms.Label
    Public WithEvents Label6 As System.Windows.Forms.Label
    Public WithEvents Label7 As System.Windows.Forms.Label
    Public WithEvents Label8 As System.Windows.Forms.Label
    Public WithEvents Label9 As System.Windows.Forms.Label
    Public WithEvents Label10 As System.Windows.Forms.Label
    Public WithEvents Label11 As System.Windows.Forms.Label
    Public WithEvents Label12 As System.Windows.Forms.Label
    Public WithEvents Label13 As System.Windows.Forms.Label
    Public WithEvents Label14 As System.Windows.Forms.Label
    Public WithEvents btnOK As System.Windows.Forms.Button
    Public WithEvents ToolTip1 As System.Windows.Forms.ToolTip
    Public WithEvents btnCancel As System.Windows.Forms.Button
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container()
        Me.Frame3 = New System.Windows.Forms.GroupBox()
        Me.rdoCarry0 = New System.Windows.Forms.RadioButton()
        Me.rdoCarry1 = New System.Windows.Forms.RadioButton()
        Me.Frame2 = New System.Windows.Forms.GroupBox()
        Me.rdoError1 = New System.Windows.Forms.RadioButton()
        Me.rdoError0 = New System.Windows.Forms.RadioButton()
        Me.Frame1 = New System.Windows.Forms.GroupBox()
        Me.txtCh0Reg0 = New System.Windows.Forms.TextBox()
        Me.txtCh1Reg0 = New System.Windows.Forms.TextBox()
        Me.txtCh2Reg0 = New System.Windows.Forms.TextBox()
        Me.txtCh3Reg0 = New System.Windows.Forms.TextBox()
        Me.txtCh0Reg1 = New System.Windows.Forms.TextBox()
        Me.txtCh1Reg1 = New System.Windows.Forms.TextBox()
        Me.txtCh2Reg1 = New System.Windows.Forms.TextBox()
        Me.txtCh3Reg1 = New System.Windows.Forms.TextBox()
        Me.Label1 = New System.Windows.Forms.Label()
        Me.Label2 = New System.Windows.Forms.Label()
        Me.Label3 = New System.Windows.Forms.Label()
        Me.Label4 = New System.Windows.Forms.Label()
        Me.Label5 = New System.Windows.Forms.Label()
        Me.Label6 = New System.Windows.Forms.Label()
        Me.Label7 = New System.Windows.Forms.Label()
        Me.Label8 = New System.Windows.Forms.Label()
        Me.Label9 = New System.Windows.Forms.Label()
        Me.Label10 = New System.Windows.Forms.Label()
        Me.Label11 = New System.Windows.Forms.Label()
        Me.Label12 = New System.Windows.Forms.Label()
        Me.Label13 = New System.Windows.Forms.Label()
        Me.Label14 = New System.Windows.Forms.Label()
        Me.btnOK = New System.Windows.Forms.Button()
        Me.ToolTip1 = New System.Windows.Forms.ToolTip(Me.components)
        Me.btnCancel = New System.Windows.Forms.Button()
        Me.Frame3.SuspendLayout()
        Me.Frame2.SuspendLayout()
        Me.Frame1.SuspendLayout()
        Me.SuspendLayout()
        '
        'Frame3
        '
        Me.Frame3.BackColor = System.Drawing.SystemColors.Control
        Me.Frame3.Controls.AddRange(New System.Windows.Forms.Control() {Me.rdoCarry0, Me.rdoCarry1})
        Me.Frame3.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame3.Location = New System.Drawing.Point(296, 105)
        Me.Frame3.Name = "Frame3"
        Me.Frame3.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame3.Size = New System.Drawing.Size(217, 85)
        Me.Frame3.TabIndex = 43
        Me.Frame3.TabStop = False
        Me.Frame3.Text = "Carry/Borrow"
        '
        'rdoCarry0
        '
        Me.rdoCarry0.BackColor = System.Drawing.SystemColors.Control
        Me.rdoCarry0.Cursor = System.Windows.Forms.Cursors.Default
        Me.rdoCarry0.ForeColor = System.Drawing.SystemColors.ControlText
        Me.rdoCarry0.Location = New System.Drawing.Point(8, 37)
        Me.rdoCarry0.Name = "rdoCarry0"
        Me.rdoCarry0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.rdoCarry0.Size = New System.Drawing.Size(65, 20)
        Me.rdoCarry0.TabIndex = 30
        Me.rdoCarry0.TabStop = True
        Me.rdoCarry0.Text = "Notify"
        '
        'rdoCarry1
        '
        Me.rdoCarry1.BackColor = System.Drawing.SystemColors.Control
        Me.rdoCarry1.Cursor = System.Windows.Forms.Cursors.Default
        Me.rdoCarry1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.rdoCarry1.Location = New System.Drawing.Point(104, 37)
        Me.rdoCarry1.Name = "rdoCarry1"
        Me.rdoCarry1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.rdoCarry1.Size = New System.Drawing.Size(81, 20)
        Me.rdoCarry1.TabIndex = 29
        Me.rdoCarry1.TabStop = True
        Me.rdoCarry1.Text = "Not Notify"
        '
        'Frame2
        '
        Me.Frame2.BackColor = System.Drawing.SystemColors.Control
        Me.Frame2.Controls.AddRange(New System.Windows.Forms.Control() {Me.rdoError1, Me.rdoError0})
        Me.Frame2.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame2.Location = New System.Drawing.Point(296, 12)
        Me.Frame2.Name = "Frame2"
        Me.Frame2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame2.Size = New System.Drawing.Size(217, 85)
        Me.Frame2.TabIndex = 42
        Me.Frame2.TabStop = False
        Me.Frame2.Text = "Error"
        '
        'rdoError1
        '
        Me.rdoError1.BackColor = System.Drawing.SystemColors.Control
        Me.rdoError1.Cursor = System.Windows.Forms.Cursors.Default
        Me.rdoError1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.rdoError1.Location = New System.Drawing.Point(104, 37)
        Me.rdoError1.Name = "rdoError1"
        Me.rdoError1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.rdoError1.Size = New System.Drawing.Size(81, 20)
        Me.rdoError1.TabIndex = 27
        Me.rdoError1.TabStop = True
        Me.rdoError1.Text = "Not Notify"
        '
        'rdoError0
        '
        Me.rdoError0.BackColor = System.Drawing.SystemColors.Control
        Me.rdoError0.Cursor = System.Windows.Forms.Cursors.Default
        Me.rdoError0.ForeColor = System.Drawing.SystemColors.ControlText
        Me.rdoError0.Location = New System.Drawing.Point(8, 37)
        Me.rdoError0.Name = "rdoError0"
        Me.rdoError0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.rdoError0.Size = New System.Drawing.Size(65, 20)
        Me.rdoError0.TabIndex = 26
        Me.rdoError0.TabStop = True
        Me.rdoError0.Text = "Notify"
        '
        'Frame1
        '
        Me.Frame1.BackColor = System.Drawing.SystemColors.Control
        Me.Frame1.Controls.AddRange(New System.Windows.Forms.Control() {Me.txtCh0Reg0, Me.txtCh1Reg0, Me.txtCh2Reg0, Me.txtCh3Reg0, Me.txtCh0Reg1, Me.txtCh1Reg1, Me.txtCh2Reg1, Me.txtCh3Reg1, Me.Label1, Me.Label2, Me.Label3, Me.Label4, Me.Label5, Me.Label6, Me.Label7, Me.Label8, Me.Label9, Me.Label10, Me.Label11, Me.Label12, Me.Label13, Me.Label14})
        Me.Frame1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame1.Location = New System.Drawing.Point(8, 12)
        Me.Frame1.Name = "Frame1"
        Me.Frame1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame1.Size = New System.Drawing.Size(281, 224)
        Me.Frame1.TabIndex = 41
        Me.Frame1.TabStop = False
        Me.Frame1.Text = "Count Match"
        '
        'txtCh0Reg0
        '
        Me.txtCh0Reg0.AcceptsReturn = True
        Me.txtCh0Reg0.AutoSize = False
        Me.txtCh0Reg0.BackColor = System.Drawing.SystemColors.Window
        Me.txtCh0Reg0.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.txtCh0Reg0.ForeColor = System.Drawing.SystemColors.WindowText
        Me.txtCh0Reg0.Location = New System.Drawing.Point(48, 65)
        Me.txtCh0Reg0.MaxLength = 0
        Me.txtCh0Reg0.Name = "txtCh0Reg0"
        Me.txtCh0Reg0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.txtCh0Reg0.Size = New System.Drawing.Size(73, 21)
        Me.txtCh0Reg0.TabIndex = 10
        Me.txtCh0Reg0.Text = "Text1"
        '
        'txtCh1Reg0
        '
        Me.txtCh1Reg0.AcceptsReturn = True
        Me.txtCh1Reg0.AutoSize = False
        Me.txtCh1Reg0.BackColor = System.Drawing.SystemColors.Window
        Me.txtCh1Reg0.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.txtCh1Reg0.ForeColor = System.Drawing.SystemColors.WindowText
        Me.txtCh1Reg0.Location = New System.Drawing.Point(48, 93)
        Me.txtCh1Reg0.MaxLength = 0
        Me.txtCh1Reg0.Name = "txtCh1Reg0"
        Me.txtCh1Reg0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.txtCh1Reg0.Size = New System.Drawing.Size(73, 21)
        Me.txtCh1Reg0.TabIndex = 9
        Me.txtCh1Reg0.Text = "Text1"
        '
        'txtCh2Reg0
        '
        Me.txtCh2Reg0.AcceptsReturn = True
        Me.txtCh2Reg0.AutoSize = False
        Me.txtCh2Reg0.BackColor = System.Drawing.SystemColors.Window
        Me.txtCh2Reg0.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.txtCh2Reg0.ForeColor = System.Drawing.SystemColors.WindowText
        Me.txtCh2Reg0.Location = New System.Drawing.Point(48, 121)
        Me.txtCh2Reg0.MaxLength = 0
        Me.txtCh2Reg0.Name = "txtCh2Reg0"
        Me.txtCh2Reg0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.txtCh2Reg0.Size = New System.Drawing.Size(73, 21)
        Me.txtCh2Reg0.TabIndex = 8
        Me.txtCh2Reg0.Text = "Text1"
        '
        'txtCh3Reg0
        '
        Me.txtCh3Reg0.AcceptsReturn = True
        Me.txtCh3Reg0.AutoSize = False
        Me.txtCh3Reg0.BackColor = System.Drawing.SystemColors.Window
        Me.txtCh3Reg0.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.txtCh3Reg0.ForeColor = System.Drawing.SystemColors.WindowText
        Me.txtCh3Reg0.Location = New System.Drawing.Point(48, 149)
        Me.txtCh3Reg0.MaxLength = 0
        Me.txtCh3Reg0.Name = "txtCh3Reg0"
        Me.txtCh3Reg0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.txtCh3Reg0.Size = New System.Drawing.Size(73, 21)
        Me.txtCh3Reg0.TabIndex = 7
        Me.txtCh3Reg0.Text = "Text1"
        '
        'txtCh0Reg1
        '
        Me.txtCh0Reg1.AcceptsReturn = True
        Me.txtCh0Reg1.AutoSize = False
        Me.txtCh0Reg1.BackColor = System.Drawing.SystemColors.Window
        Me.txtCh0Reg1.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.txtCh0Reg1.ForeColor = System.Drawing.SystemColors.WindowText
        Me.txtCh0Reg1.Location = New System.Drawing.Point(168, 65)
        Me.txtCh0Reg1.MaxLength = 0
        Me.txtCh0Reg1.Name = "txtCh0Reg1"
        Me.txtCh0Reg1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.txtCh0Reg1.Size = New System.Drawing.Size(73, 21)
        Me.txtCh0Reg1.TabIndex = 6
        Me.txtCh0Reg1.Text = "Text1"
        '
        'txtCh1Reg1
        '
        Me.txtCh1Reg1.AcceptsReturn = True
        Me.txtCh1Reg1.AutoSize = False
        Me.txtCh1Reg1.BackColor = System.Drawing.SystemColors.Window
        Me.txtCh1Reg1.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.txtCh1Reg1.ForeColor = System.Drawing.SystemColors.WindowText
        Me.txtCh1Reg1.Location = New System.Drawing.Point(168, 93)
        Me.txtCh1Reg1.MaxLength = 0
        Me.txtCh1Reg1.Name = "txtCh1Reg1"
        Me.txtCh1Reg1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.txtCh1Reg1.Size = New System.Drawing.Size(73, 21)
        Me.txtCh1Reg1.TabIndex = 5
        Me.txtCh1Reg1.Text = "Text1"
        '
        'txtCh2Reg1
        '
        Me.txtCh2Reg1.AcceptsReturn = True
        Me.txtCh2Reg1.AutoSize = False
        Me.txtCh2Reg1.BackColor = System.Drawing.SystemColors.Window
        Me.txtCh2Reg1.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.txtCh2Reg1.ForeColor = System.Drawing.SystemColors.WindowText
        Me.txtCh2Reg1.Location = New System.Drawing.Point(168, 121)
        Me.txtCh2Reg1.MaxLength = 0
        Me.txtCh2Reg1.Name = "txtCh2Reg1"
        Me.txtCh2Reg1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.txtCh2Reg1.Size = New System.Drawing.Size(73, 21)
        Me.txtCh2Reg1.TabIndex = 4
        Me.txtCh2Reg1.Text = "Text1"
        '
        'txtCh3Reg1
        '
        Me.txtCh3Reg1.AcceptsReturn = True
        Me.txtCh3Reg1.AutoSize = False
        Me.txtCh3Reg1.BackColor = System.Drawing.SystemColors.Window
        Me.txtCh3Reg1.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.txtCh3Reg1.ForeColor = System.Drawing.SystemColors.WindowText
        Me.txtCh3Reg1.Location = New System.Drawing.Point(168, 149)
        Me.txtCh3Reg1.MaxLength = 0
        Me.txtCh3Reg1.Name = "txtCh3Reg1"
        Me.txtCh3Reg1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.txtCh3Reg1.Size = New System.Drawing.Size(73, 21)
        Me.txtCh3Reg1.TabIndex = 3
        Me.txtCh3Reg1.Text = "Text1"
        '
        'Label1
        '
        Me.Label1.AutoSize = True
        Me.Label1.BackColor = System.Drawing.SystemColors.Control
        Me.Label1.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label1.Location = New System.Drawing.Point(8, 69)
        Me.Label1.Name = "Label1"
        Me.Label1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label1.Size = New System.Drawing.Size(31, 13)
        Me.Label1.TabIndex = 24
        Me.Label1.Text = "Ch0 :"
        '
        'Label2
        '
        Me.Label2.AutoSize = True
        Me.Label2.BackColor = System.Drawing.SystemColors.Control
        Me.Label2.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label2.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label2.Location = New System.Drawing.Point(8, 97)
        Me.Label2.Name = "Label2"
        Me.Label2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label2.Size = New System.Drawing.Size(31, 13)
        Me.Label2.TabIndex = 23
        Me.Label2.Text = "Ch1 :"
        '
        'Label3
        '
        Me.Label3.AutoSize = True
        Me.Label3.BackColor = System.Drawing.SystemColors.Control
        Me.Label3.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label3.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label3.Location = New System.Drawing.Point(8, 124)
        Me.Label3.Name = "Label3"
        Me.Label3.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label3.Size = New System.Drawing.Size(31, 13)
        Me.Label3.TabIndex = 22
        Me.Label3.Text = "Ch2 :"
        '
        'Label4
        '
        Me.Label4.AutoSize = True
        Me.Label4.BackColor = System.Drawing.SystemColors.Control
        Me.Label4.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label4.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label4.Location = New System.Drawing.Point(8, 152)
        Me.Label4.Name = "Label4"
        Me.Label4.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label4.Size = New System.Drawing.Size(31, 13)
        Me.Label4.TabIndex = 21
        Me.Label4.Text = "Ch3 :"
        '
        'Label5
        '
        Me.Label5.AutoSize = True
        Me.Label5.BackColor = System.Drawing.SystemColors.Control
        Me.Label5.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label5.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label5.Location = New System.Drawing.Point(71, 37)
        Me.Label5.Name = "Label5"
        Me.Label5.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label5.Size = New System.Drawing.Size(31, 13)
        Me.Label5.TabIndex = 20
        Me.Label5.Text = "Reg0"
        '
        'Label6
        '
        Me.Label6.AutoSize = True
        Me.Label6.BackColor = System.Drawing.SystemColors.Control
        Me.Label6.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label6.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label6.Location = New System.Drawing.Point(192, 37)
        Me.Label6.Name = "Label6"
        Me.Label6.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label6.Size = New System.Drawing.Size(31, 13)
        Me.Label6.TabIndex = 19
        Me.Label6.Text = "Reg1"
        '
        'Label7
        '
        Me.Label7.AutoSize = True
        Me.Label7.BackColor = System.Drawing.SystemColors.Control
        Me.Label7.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label7.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label7.Location = New System.Drawing.Point(128, 69)
        Me.Label7.Name = "Label7"
        Me.Label7.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label7.Size = New System.Drawing.Size(24, 13)
        Me.Label7.TabIndex = 18
        Me.Label7.Text = "Hex"
        '
        'Label8
        '
        Me.Label8.AutoSize = True
        Me.Label8.BackColor = System.Drawing.SystemColors.Control
        Me.Label8.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label8.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label8.Location = New System.Drawing.Point(128, 97)
        Me.Label8.Name = "Label8"
        Me.Label8.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label8.Size = New System.Drawing.Size(24, 13)
        Me.Label8.TabIndex = 17
        Me.Label8.Text = "Hex"
        '
        'Label9
        '
        Me.Label9.AutoSize = True
        Me.Label9.BackColor = System.Drawing.SystemColors.Control
        Me.Label9.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label9.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label9.Location = New System.Drawing.Point(128, 124)
        Me.Label9.Name = "Label9"
        Me.Label9.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label9.Size = New System.Drawing.Size(24, 13)
        Me.Label9.TabIndex = 16
        Me.Label9.Text = "Hex"
        '
        'Label10
        '
        Me.Label10.AutoSize = True
        Me.Label10.BackColor = System.Drawing.SystemColors.Control
        Me.Label10.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label10.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label10.Location = New System.Drawing.Point(128, 152)
        Me.Label10.Name = "Label10"
        Me.Label10.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label10.Size = New System.Drawing.Size(24, 13)
        Me.Label10.TabIndex = 15
        Me.Label10.Text = "Hex"
        '
        'Label11
        '
        Me.Label11.AutoSize = True
        Me.Label11.BackColor = System.Drawing.SystemColors.Control
        Me.Label11.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label11.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label11.Location = New System.Drawing.Point(248, 69)
        Me.Label11.Name = "Label11"
        Me.Label11.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label11.Size = New System.Drawing.Size(24, 13)
        Me.Label11.TabIndex = 14
        Me.Label11.Text = "Hex"
        '
        'Label12
        '
        Me.Label12.AutoSize = True
        Me.Label12.BackColor = System.Drawing.SystemColors.Control
        Me.Label12.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label12.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label12.Location = New System.Drawing.Point(248, 97)
        Me.Label12.Name = "Label12"
        Me.Label12.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label12.Size = New System.Drawing.Size(24, 13)
        Me.Label12.TabIndex = 13
        Me.Label12.Text = "Hex"
        '
        'Label13
        '
        Me.Label13.AutoSize = True
        Me.Label13.BackColor = System.Drawing.SystemColors.Control
        Me.Label13.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label13.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label13.Location = New System.Drawing.Point(248, 124)
        Me.Label13.Name = "Label13"
        Me.Label13.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label13.Size = New System.Drawing.Size(24, 13)
        Me.Label13.TabIndex = 12
        Me.Label13.Text = "Hex"
        '
        'Label14
        '
        Me.Label14.AutoSize = True
        Me.Label14.BackColor = System.Drawing.SystemColors.Control
        Me.Label14.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label14.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label14.Location = New System.Drawing.Point(248, 152)
        Me.Label14.Name = "Label14"
        Me.Label14.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label14.Size = New System.Drawing.Size(24, 13)
        Me.Label14.TabIndex = 11
        Me.Label14.Text = "Hex"
        '
        'btnOK
        '
        Me.btnOK.BackColor = System.Drawing.SystemColors.Control
        Me.btnOK.Cursor = System.Windows.Forms.Cursors.Default
        Me.btnOK.ForeColor = System.Drawing.SystemColors.ControlText
        Me.btnOK.Location = New System.Drawing.Point(296, 207)
        Me.btnOK.Name = "btnOK"
        Me.btnOK.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.btnOK.Size = New System.Drawing.Size(97, 28)
        Me.btnOK.TabIndex = 39
        Me.btnOK.Text = "OK"
        '
        'btnCancel
        '
        Me.btnCancel.BackColor = System.Drawing.SystemColors.Control
        Me.btnCancel.Cursor = System.Windows.Forms.Cursors.Default
        Me.btnCancel.ForeColor = System.Drawing.SystemColors.ControlText
        Me.btnCancel.Location = New System.Drawing.Point(416, 207)
        Me.btnCancel.Name = "btnCancel"
        Me.btnCancel.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.btnCancel.Size = New System.Drawing.Size(97, 28)
        Me.btnCancel.TabIndex = 40
        Me.btnCancel.Text = "Cancel"
        '
        'frmNotify
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.ClientSize = New System.Drawing.Size(520, 248)
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Frame2, Me.Frame1, Me.btnOK, Me.btnCancel, Me.Frame3})
        Me.MaximizeBox = False
        Me.MinimizeBox = False
        Me.Name = "frmNotify"
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
        Me.Text = "Notification Setting"
        Me.Frame3.ResumeLayout(False)
        Me.Frame2.ResumeLayout(False)
        Me.Frame1.ResumeLayout(False)
        Me.ResumeLayout(False)

    End Sub

#End Region

    Const CHANNEL_NUM As Short = 4

    Dim bNotifyError As Boolean = True
    Dim bNotifyCarry As Boolean = True
    Dim CompData(CHANNEL_NUM, 2) As Integer
    Dim txt_Reg0(CHANNEL_NUM) As TextBox
    Dim txt_Reg1(CHANNEL_NUM) As TextBox

    Private Sub frmNotify_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        Dim i As Short

        '-----------------------------------
        ' Control array settings
        '-----------------------------------
        '-----------------
        ' Compare register 0
        '-----------------
        txt_Reg0(0) = txtCh0Reg0
        txt_Reg0(1) = txtCh1Reg0
        txt_Reg0(2) = txtCh2Reg0
        txt_Reg0(3) = txtCh3Reg0
         '-----------------
        ' Compare register 1
        '-----------------
        txt_Reg1(0) = txtCh0Reg1
        txt_Reg1(1) = txtCh1Reg1
        txt_Reg1(2) = txtCh2Reg1
        txt_Reg1(3) = txtCh3Reg1
        '-------------------------------
        ' Set initial data
        '-------------------------------
        For i = 0 To CHANNEL_NUM - 1
            CompData(i, 0) = (i + 1) * &H100S
            CompData(i, 1) = (i + 1) * &H100S + &H50S
        Next i

        If bNotifyError Then
            rdoError0.Checked = True
            rdoError1.Checked = False
        Else
            rdoError0.Checked = False
            rdoError1.Checked = True
        End If
        If bNotifyCarry Then
            rdoCarry0.Checked = True
            rdoCarry1.Checked = False
        Else
            rdoCarry0.Checked = False
            rdoCarry1.Checked = True
        End If
    End Sub

    Private Sub frmNotify_Actived(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Activated

        Dim i As Short

        '-------------------------------
        ' Toggles the compare register display according to the total number of channels.
        '-------------------------------
        For i = 0 To CHANNEL_NUM - 1
            txt_Reg0(i).Text = Hex(CompData(i, 0))
            txt_Reg1(i).Text = Hex(CompData(i, 1))
            '-------------------------------
            ' Disables the display when the number of loops exceeds the total number of channels.
            '-------------------------------
            if (i >= frmCounter.ChannelNum) Then
                txt_Reg0(i).Enabled = False
                txt_Reg1(i).Enabled = False
            '-------------------------------
            ' Enables the display when the number of loops is less than or equal to the total number of channels.
            '-------------------------------
            Else
                txt_Reg0(i).Enabled = True
                txt_Reg1(i).Enabled = True
            End If
        Next i
    End Sub

    '---------------------------------------------
    ' Setting completion processing
    '---------------------------------------------
    Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click
        Dim ret As Integer
        Dim ChNo, RegNo As Short
        Dim str As String
        Dim error_string As New StringBuilder("", 256)

        '-------------------------------
        ' Get the set information
        '-------------------------------
        For ChNo = 0 To frmCounter.ChannelNum - 1
            ' To display the comparison value as unsigned, convert it once through hexadecimal characters
            CompData(ChNo, 0) = Convert.ToInt32(Hex(Val("&h" & txt_Reg0(ChNo).Text)), 16)
            CompData(ChNo, 1) = Convert.ToInt32(Hex(Val("&h" & txt_Reg1(ChNo).Text)), 16)
        Next ChNo

        If rdoError0.Checked = True Then
            bNotifyError = True
        Else
            bNotifyError = False
        End If
        If rdoCarry0.Checked = True Then
            bNotifyCarry = True
        Else
            bNotifyCarry = False
        End If
        '-------------------------------
        ' Set the set information to device
        '-------------------------------
        For ChNo = 0 To frmCounter.ChannelNum - 1
            For RegNo = 0 To 1
                '---------------------------------------------
                ' Set count match notification and compare register
                '---------------------------------------------
                ret = CntNotifyCountUp(frmCounter.Id, ChNo, RegNo, CompData(ChNo, RegNo), 0)
                If ret <> 0 Then
                    CntGetErrorString(ret, error_string)
                    str = String.Format("CntNotifyCountUp : ret = {0:D}" & vbCrLf & error_string.ToString(), ret)
                    MsgBox(str, MsgBoxStyle.OKOnly, "Error")
                    Me.Hide()
                    Exit Sub
                End If
            Next RegNo
        Next ChNo
        If bNotifyError = True Then
            '---------------------------------------------
            ' Set counter error notificaton
            '---------------------------------------------
            ret = CntNotifyCounterError(frmCounter.Id, 0)
            If ret <> 0 Then
                CntGetErrorString(ret, error_string)
                str = String.Format("CntNotifyCounterError : ret = {0:D}" & vbCrLf & error_string.ToString(), ret)
                MsgBox(str, MsgBoxStyle.OKOnly, "Error")
                Me.Hide()
                Exit Sub
            End If
        End If
        If bNotifyCarry = True Then
            '---------------------------------------------
            ' Set carry/borrow notification
            '---------------------------------------------
            ret = CntNotifyCarryBorrow(frmCounter.Id, 0)
            If ret <> 0 Then
                CntGetErrorString(ret, error_string)
                str = String.Format("CntNotifyCarryBorrow : ret = {0:D}" & vbCrLf & error_string.ToString(), ret)
                MsgBox(str, MsgBoxStyle.OKOnly, "Error")
            End If
        End If
        Me.Hide()
    End Sub

    '---------------------------------------------
    ' Cancel processing
    '---------------------------------------------
    Private Sub btnCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCancel.Click
        Me.Hide()
    End Sub

    Private Sub frmNotify_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
        e.Cancel = True
        Me.Hide()
    End Sub
End Class
