﻿Option Strict Off
Option Explicit On 
Friend Class LtcClrSet
	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.
	Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
	Friend WithEvents cboClearCntLtc As System.Windows.Forms.ComboBox
	Friend WithEvents cboLtcMode As System.Windows.Forms.ComboBox
	Friend WithEvents Label1 As System.Windows.Forms.Label
	Friend WithEvents Label2 As System.Windows.Forms.Label
	Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
	Friend WithEvents Label3 As System.Windows.Forms.Label
	Friend WithEvents Label4 As System.Windows.Forms.Label
	Friend WithEvents cboClearCntClr As System.Windows.Forms.ComboBox
	Friend WithEvents cboClrMode As System.Windows.Forms.ComboBox
    Friend WithEvents btnComReturn As System.Windows.Forms.Button
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.GroupBox1 = New System.Windows.Forms.GroupBox()
        Me.Label2 = New System.Windows.Forms.Label()
        Me.Label1 = New System.Windows.Forms.Label()
        Me.cboLtcMode = New System.Windows.Forms.ComboBox()
        Me.cboClearCntLtc = New System.Windows.Forms.ComboBox()
        Me.GroupBox2 = New System.Windows.Forms.GroupBox()
        Me.cboClrMode = New System.Windows.Forms.ComboBox()
        Me.cboClearCntClr = New System.Windows.Forms.ComboBox()
        Me.Label4 = New System.Windows.Forms.Label()
        Me.Label3 = New System.Windows.Forms.Label()
        Me.btnComReturn = New System.Windows.Forms.Button()
        Me.GroupBox1.SuspendLayout()
        Me.GroupBox2.SuspendLayout()
        Me.SuspendLayout()
        '
        'GroupBox1
        '
        Me.GroupBox1.Controls.AddRange(New System.Windows.Forms.Control() {Me.Label2, Me.Label1, Me.cboLtcMode, Me.cboClearCntLtc})
        Me.GroupBox1.Location = New System.Drawing.Point(16, 16)
        Me.GroupBox1.Name = "GroupBox1"
        Me.GroupBox1.Size = New System.Drawing.Size(304, 96)
        Me.GroupBox1.TabIndex = 0
        Me.GroupBox1.TabStop = False
        Me.GroupBox1.Text = "LTC"
        '
        'Label2
        '
        Me.Label2.AutoSize = True
        Me.Label2.Location = New System.Drawing.Point(16, 58)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(92, 14)
        Me.Label2.TabIndex = 3
        Me.Label2.Text = "Latch Counter : "
        '
        'Label1
        '
        Me.Label1.AutoSize = True
        Me.Label1.Location = New System.Drawing.Point(16, 26)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(91, 14)
        Me.Label1.TabIndex = 2
        Me.Label1.Text = "Clear Counter : "
        '
        'cboLtcMode
        '
        Me.cboLtcMode.Location = New System.Drawing.Point(120, 56)
        Me.cboLtcMode.Name = "cboLtcMode"
        Me.cboLtcMode.Size = New System.Drawing.Size(168, 23)
        Me.cboLtcMode.TabIndex = 1
        '
        'cboClearCntLtc
        '
        Me.cboClearCntLtc.Location = New System.Drawing.Point(120, 24)
        Me.cboClearCntLtc.Name = "cboClearCntLtc"
        Me.cboClearCntLtc.Size = New System.Drawing.Size(168, 23)
        Me.cboClearCntLtc.TabIndex = 0
        '
        'GroupBox2
        '
        Me.GroupBox2.Controls.AddRange(New System.Windows.Forms.Control() {Me.cboClrMode, Me.cboClearCntClr, Me.Label4, Me.Label3})
        Me.GroupBox2.Location = New System.Drawing.Point(16, 120)
        Me.GroupBox2.Name = "GroupBox2"
        Me.GroupBox2.Size = New System.Drawing.Size(304, 96)
        Me.GroupBox2.TabIndex = 1
        Me.GroupBox2.TabStop = False
        Me.GroupBox2.Text = "CLR"
        '
        'cboClrMode
        '
        Me.cboClrMode.Location = New System.Drawing.Point(120, 56)
        Me.cboClrMode.Name = "cboClrMode"
        Me.cboClrMode.Size = New System.Drawing.Size(168, 23)
        Me.cboClrMode.TabIndex = 3
        '
        'cboClearCntClr
        '
        Me.cboClearCntClr.Location = New System.Drawing.Point(120, 24)
        Me.cboClearCntClr.Name = "cboClearCntClr"
        Me.cboClearCntClr.Size = New System.Drawing.Size(168, 23)
        Me.cboClearCntClr.TabIndex = 2
        '
        'Label4
        '
        Me.Label4.AutoSize = True
        Me.Label4.Location = New System.Drawing.Point(16, 60)
        Me.Label4.Name = "Label4"
        Me.Label4.Size = New System.Drawing.Size(42, 14)
        Me.Label4.TabIndex = 1
        Me.Label4.Text = "Mode :"
        '
        'Label3
        '
        Me.Label3.AutoSize = True
        Me.Label3.Location = New System.Drawing.Point(16, 28)
        Me.Label3.Name = "Label3"
        Me.Label3.Size = New System.Drawing.Size(91, 14)
        Me.Label3.TabIndex = 0
        Me.Label3.Text = "Clear Counter : "
        '
        'btnComReturn
        '
        Me.btnComReturn.Location = New System.Drawing.Point(232, 232)
        Me.btnComReturn.Name = "btnComReturn"
        Me.btnComReturn.Size = New System.Drawing.Size(88, 24)
        Me.btnComReturn.TabIndex = 3
        Me.btnComReturn.Text = "&Return"
        '
        'LtcClrSet
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
        Me.ClientSize = New System.Drawing.Size(338, 270)
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.btnComReturn, Me.GroupBox2, Me.GroupBox1})
        Me.Font = New System.Drawing.Font("Microsoft Sans Serif", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
        Me.MaximizeBox = False
        Me.MinimizeBox = False
        Me.Name = "LtcClrSet"
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
        Me.Text = "LTC/CLR Setting"
        Me.GroupBox1.ResumeLayout(False)
        Me.GroupBox2.ResumeLayout(False)
        Me.ResumeLayout(False)

    End Sub

#End Region

    Private Sub cboClearCntClr_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cboClearCntClr.SelectedIndexChanged

        ClearCntClr = cboClearCntClr.SelectedIndex

    End Sub

    Private Sub cboClearCntLtc_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cboClearCntLtc.SelectedIndexChanged

        ClearCntLtc = cboClearCntLtc.SelectedIndex

    End Sub

    Private Sub cboClrMode_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cboClrMode.SelectedIndexChanged

        ClrMode = cboClrMode.SelectedIndex

    End Sub

    Private Sub cboLtcMode_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cboLtcMode.SelectedIndexChanged

        LtcMode = cboLtcMode.SelectedIndex

    End Sub



    Private Sub btnComReturn_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnComReturn.Click

        Me.Close()

    End Sub

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

        ' ComboBox
        cboClearCntLtc.Items.Clear()
        cboClearCntLtc.Items.Add("No Clear")
        cboClearCntLtc.Items.Add("OutPulse")
        cboClearCntLtc.Items.Add("EncoderPulse")
        cboClearCntLtc.Items.Add("Out & EncoderPulse")

        ' ComboBox
        cboLtcMode.Items.Clear()
        cboLtcMode.Items.Add("No Use")
        cboLtcMode.Items.Add("OutPulse")
        cboLtcMode.Items.Add("EncoderPulse")
        cboLtcMode.Items.Add("Out & EncoderPulse")

        ' ComboBox
        cboClearCntClr.Items.Clear()
        cboClearCntClr.Items.Add("No Clear")
        cboClearCntClr.Items.Add("OutPulse")
        cboClearCntClr.Items.Add("EncoderPulse")
        cboClearCntClr.Items.Add("Out & EncoderPulse")

        ' ComboBox
        cboClrMode.Items.Clear()
        cboClrMode.Items.Add("No Use")

        ' ComboBox Initialise
        cboClearCntLtc.SelectedIndex = ClearCntLtc
        cboLtcMode.SelectedIndex = LtcMode
        cboClearCntClr.SelectedIndex = ClearCntClr
        cboClrMode.SelectedIndex = ClrMode

    End Sub

End Class
