﻿Imports System.Text

Public Class frmNotify
    Inherits System.Windows.Forms.Form

#Region " Windows フォーム デザイナで生成されたコード "

    Public Sub New()
        MyBase.New()

        ' この呼び出しは Windows フォーム デザイナで必要です。
        InitializeComponent()

        ' InitializeComponent() 呼び出しの後に初期化を追加します。

    End Sub

    ' Form は 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 フォーム デザイナを使って変更してください。  
    ' コード エディタは使用しないでください。
    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 ToolTip1 As System.Windows.Forms.ToolTip
    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 Frame3 As System.Windows.Forms.GroupBox
    Public WithEvents rdoCarry0 As System.Windows.Forms.RadioButton
    Public WithEvents rdoCarry1 As System.Windows.Forms.RadioButton
    Public WithEvents btnOK As System.Windows.Forms.Button
    Public WithEvents btnCancel As System.Windows.Forms.Button
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container()
        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.ToolTip1 = New System.Windows.Forms.ToolTip(Me.components)
        Me.Frame2 = New System.Windows.Forms.GroupBox()
        Me.rdoError1 = New System.Windows.Forms.RadioButton()
        Me.rdoError0 = New System.Windows.Forms.RadioButton()
        Me.Frame3 = New System.Windows.Forms.GroupBox()
        Me.rdoCarry0 = New System.Windows.Forms.RadioButton()
        Me.rdoCarry1 = New System.Windows.Forms.RadioButton()
        Me.btnOK = New System.Windows.Forms.Button()
        Me.btnCancel = New System.Windows.Forms.Button()
        Me.Frame1.SuspendLayout()
        Me.Frame2.SuspendLayout()
        Me.Frame3.SuspendLayout()
        Me.SuspendLayout()
        '
        '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, 11)
        Me.Frame1.Name = "Frame1"
        Me.Frame1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame1.Size = New System.Drawing.Size(281, 193)
        Me.Frame1.TabIndex = 36
        Me.Frame1.TabStop = False
        Me.Frame1.Text = "カウント一致"
        '
        '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, 56)
        Me.txtCh0Reg0.MaxLength = 0
        Me.txtCh0Reg0.Name = "txtCh0Reg0"
        Me.txtCh0Reg0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.txtCh0Reg0.Size = New System.Drawing.Size(73, 18)
        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, 80)
        Me.txtCh1Reg0.MaxLength = 0
        Me.txtCh1Reg0.Name = "txtCh1Reg0"
        Me.txtCh1Reg0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.txtCh1Reg0.Size = New System.Drawing.Size(73, 18)
        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, 104)
        Me.txtCh2Reg0.MaxLength = 0
        Me.txtCh2Reg0.Name = "txtCh2Reg0"
        Me.txtCh2Reg0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.txtCh2Reg0.Size = New System.Drawing.Size(73, 18)
        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, 128)
        Me.txtCh3Reg0.MaxLength = 0
        Me.txtCh3Reg0.Name = "txtCh3Reg0"
        Me.txtCh3Reg0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.txtCh3Reg0.Size = New System.Drawing.Size(73, 18)
        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, 56)
        Me.txtCh0Reg1.MaxLength = 0
        Me.txtCh0Reg1.Name = "txtCh0Reg1"
        Me.txtCh0Reg1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.txtCh0Reg1.Size = New System.Drawing.Size(73, 18)
        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, 80)
        Me.txtCh1Reg1.MaxLength = 0
        Me.txtCh1Reg1.Name = "txtCh1Reg1"
        Me.txtCh1Reg1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.txtCh1Reg1.Size = New System.Drawing.Size(73, 18)
        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, 104)
        Me.txtCh2Reg1.MaxLength = 0
        Me.txtCh2Reg1.Name = "txtCh2Reg1"
        Me.txtCh2Reg1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.txtCh2Reg1.Size = New System.Drawing.Size(73, 18)
        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, 128)
        Me.txtCh3Reg1.MaxLength = 0
        Me.txtCh3Reg1.Name = "txtCh3Reg1"
        Me.txtCh3Reg1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.txtCh3Reg1.Size = New System.Drawing.Size(73, 18)
        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, 59)
        Me.Label1.Name = "Label1"
        Me.Label1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label1.Size = New System.Drawing.Size(31, 12)
        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, 83)
        Me.Label2.Name = "Label2"
        Me.Label2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label2.Size = New System.Drawing.Size(31, 12)
        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, 107)
        Me.Label3.Name = "Label3"
        Me.Label3.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label3.Size = New System.Drawing.Size(31, 12)
        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, 131)
        Me.Label4.Name = "Label4"
        Me.Label4.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label4.Size = New System.Drawing.Size(31, 12)
        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, 32)
        Me.Label5.Name = "Label5"
        Me.Label5.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label5.Size = New System.Drawing.Size(30, 12)
        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, 32)
        Me.Label6.Name = "Label6"
        Me.Label6.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label6.Size = New System.Drawing.Size(30, 12)
        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, 59)
        Me.Label7.Name = "Label7"
        Me.Label7.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label7.Size = New System.Drawing.Size(24, 12)
        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, 83)
        Me.Label8.Name = "Label8"
        Me.Label8.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label8.Size = New System.Drawing.Size(24, 12)
        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, 107)
        Me.Label9.Name = "Label9"
        Me.Label9.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label9.Size = New System.Drawing.Size(24, 12)
        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, 131)
        Me.Label10.Name = "Label10"
        Me.Label10.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label10.Size = New System.Drawing.Size(24, 12)
        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, 59)
        Me.Label11.Name = "Label11"
        Me.Label11.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label11.Size = New System.Drawing.Size(24, 12)
        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, 83)
        Me.Label12.Name = "Label12"
        Me.Label12.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label12.Size = New System.Drawing.Size(24, 12)
        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, 107)
        Me.Label13.Name = "Label13"
        Me.Label13.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label13.Size = New System.Drawing.Size(24, 12)
        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, 131)
        Me.Label14.Name = "Label14"
        Me.Label14.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label14.Size = New System.Drawing.Size(24, 12)
        Me.Label14.TabIndex = 11
        Me.Label14.Text = "Hex"
        '
        '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, 11)
        Me.Frame2.Name = "Frame2"
        Me.Frame2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame2.Size = New System.Drawing.Size(217, 73)
        Me.Frame2.TabIndex = 37
        Me.Frame2.TabStop = False
        Me.Frame2.Text = "エラー"
        '
        '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, 32)
        Me.rdoError1.Name = "rdoError1"
        Me.rdoError1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.rdoError1.Size = New System.Drawing.Size(81, 17)
        Me.rdoError1.TabIndex = 27
        Me.rdoError1.TabStop = True
        Me.rdoError1.Text = "非通知"
        '
        '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, 32)
        Me.rdoError0.Name = "rdoError0"
        Me.rdoError0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.rdoError0.Size = New System.Drawing.Size(65, 17)
        Me.rdoError0.TabIndex = 26
        Me.rdoError0.TabStop = True
        Me.rdoError0.Text = "通知"
        '
        '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, 91)
        Me.Frame3.Name = "Frame3"
        Me.Frame3.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame3.Size = New System.Drawing.Size(217, 73)
        Me.Frame3.TabIndex = 38
        Me.Frame3.TabStop = False
        Me.Frame3.Text = "キャリー / ボロー"
        '
        '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, 32)
        Me.rdoCarry0.Name = "rdoCarry0"
        Me.rdoCarry0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.rdoCarry0.Size = New System.Drawing.Size(65, 17)
        Me.rdoCarry0.TabIndex = 30
        Me.rdoCarry0.TabStop = True
        Me.rdoCarry0.Text = "通知"
        '
        '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, 32)
        Me.rdoCarry1.Name = "rdoCarry1"
        Me.rdoCarry1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.rdoCarry1.Size = New System.Drawing.Size(81, 17)
        Me.rdoCarry1.TabIndex = 29
        Me.rdoCarry1.TabStop = True
        Me.rdoCarry1.Text = "非通知"
        '
        '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, 179)
        Me.btnOK.Name = "btnOK"
        Me.btnOK.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.btnOK.Size = New System.Drawing.Size(97, 24)
        Me.btnOK.TabIndex = 0
        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, 179)
        Me.btnCancel.Name = "btnCancel"
        Me.btnCancel.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.btnCancel.Size = New System.Drawing.Size(97, 24)
        Me.btnCancel.TabIndex = 35
        Me.btnCancel.Text = "ｷｬﾝｾﾙ"
        '
        'frmNotify
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 12)
        Me.ClientSize = New System.Drawing.Size(520, 214)
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Frame2, Me.Frame3, Me.btnOK, Me.btnCancel, Me.Frame1})
        Me.MaximizeBox = False
        Me.MinimizeBox = False
        Me.Name = "frmNotify"
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
        Me.Text = "通知設定"
        Me.Frame1.ResumeLayout(False)
        Me.Frame2.ResumeLayout(False)
        Me.Frame3.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

        '-----------------------------------
        ' コントロール配列設定
        '-----------------------------------
        '-----------------
        ' 比較レジスタ0
        '-----------------
        txt_Reg0(0) = txtCh0Reg0
        txt_Reg0(1) = txtCh1Reg0
        txt_Reg0(2) = txtCh2Reg0
        txt_Reg0(3) = txtCh3Reg0
        '-----------------
        ' 比較レジスタ1
        '-----------------
        txt_Reg1(0) = txtCh0Reg1
        txt_Reg1(1) = txtCh1Reg1
        txt_Reg1(2) = txtCh2Reg1
        txt_Reg1(3) = txtCh3Reg1
        '-------------------------------
        ' 初期データのセット
        '-------------------------------
        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

        '-------------------------------
        ' 初期データのセット
        '-------------------------------
        For i = 0 To CHANNEL_NUM - 1
            txt_Reg0(i).Text = Hex(CompData(i, 0))
            txt_Reg1(i).Text = Hex(CompData(i, 1))
            '-------------------------------
            ' 総チャネル数を超えた場合比較レジスタ表示を無効化
            '-------------------------------
            if (i >= frmCounter.ChannelNum) Then
                txt_Reg0(i).Enabled = False
                txt_Reg1(i).Enabled = False
            '-------------------------------
            ' 総チャネル数以下の場合表示を有効化
            '-------------------------------
            Else
                txt_Reg0(i).Enabled = True
                txt_Reg1(i).Enabled = True
            End If
        Next i
    End Sub

    '---------------------------------------------
    ' 設定完了処理
    '---------------------------------------------
    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)

        '-------------------------------
        ' 設定情報の取得
        '-------------------------------
        For ChNo = 0 To frmCounter.ChannelNum - 1
            ' 比較値を符号ありで設定するため、一度16進文字例変換を経由
            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
        '-------------------------------
        ' 設定情報をデバイスへセット
        '-------------------------------
        For ChNo = 0 To frmCounter.ChannelNum - 1
            For RegNo = 0 To 1
                '---------------------------------------------
                ' カウント一致の通知 & 比較レジスタ 設定
                '---------------------------------------------
                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
            '---------------------------------------------
            ' カウンタエラー通知 設定
            '---------------------------------------------
            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
            '---------------------------------------------
            ' キャリー/ボロー通知 設定
            '---------------------------------------------
            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

    '---------------------------------------------
    ' キャンセル処理
    '---------------------------------------------
    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
