'************************************************************************************************************************
' File: PMACS5Vintload.vb
' Programmer: Ting Chan
' Date: September 8, 2004
'
' Description:
' This form is the 5V internal load window for the PMACS client GUI of the MARS project.
' This form is the control and display form for 5V internal loads.
' This form allows the user to view the load current flowing into each of the loads
' The data is updated every second from the SOAP server.
' The user is allow to change the status of the loads by changing the Open/Close status
' of the switches.  The user can also change the current limit of the loads
'
' Revision History:
' 09-08-2004 New header block comments added by Ting Chan, UWEE.
' 12-17-2004 Reconfigured Load numbering for 5V internal load by Ting Chan, UWEE
' 12-17-2004 Add double click event for Switch5 control by Ting Chan, UWEE
' 02-20-2005 Change double click on switch operations by Ting Chan, UWEE
' 04-27-2005 Change click switch and send load configuration operations due to change of setload() by Ting Chan, UWEE
'
'************************************************************************************************************************
Option Strict Off
Option Explicit On
Friend Class PMACS5Vintload
    Inherits System.Windows.Forms.Form
#Region "Windows Form Designer generated code "
    Public Sub New()
        MyBase.New()
        If m_vb6FormDefInstance Is Nothing Then
            If m_InitializingDefInstance Then
                m_vb6FormDefInstance = Me
            Else
                Try
                    'For the start-up form, the first instance created is the default instance.
                    If System.Reflection.Assembly.GetExecutingAssembly.EntryPoint.DeclaringType Is Me.GetType Then
                        m_vb6FormDefInstance = Me
                    End If
                Catch
                End Try
            End If
        End If
        'This call is required by the Windows Form Designer.
        InitializeComponent()
        'This form is an MDI child.
        'This code simulates the VB6 
        ' functionality of automatically
        ' loading and showing an MDI
        ' child's parent.
        'Me.MdiParent = Project1.PMACSstartup.DefInstance.DefInstance
        Project1.PMACSstartup.DefInstance.DefInstance.Show()
        'The MDI form in the VB6 project had its
        'AutoShowChildren property set to True
        'To simulate the VB6 behavior, we need to
        'automatically Show the form whenever it
        'is loaded.  If you do not want this behavior
        'then delete the following line of code
        'UPGRADE_NOTE: Remove the next line of code to stop form from automatically showing. Click for more: 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup2018"'
        'Me.Show()
    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
    Public ToolTip1 As System.Windows.Forms.ToolTip
    Public WithEvents _LoadID5Int_1 As System.Windows.Forms.TextBox
    Public WithEvents _Int5ILimit_1 As System.Windows.Forms.TextBox
    Public WithEvents _IntLoad5Close_1 As System.Windows.Forms.Button
    Public WithEvents _IntLoad5Send_1 As System.Windows.Forms.Button
    Public WithEvents _IntLoad5SwitchClose_1 As System.Windows.Forms.RadioButton
    Public WithEvents _IntLoad5SwitchOpen_1 As System.Windows.Forms.RadioButton
    Public WithEvents _Label1_1 As System.Windows.Forms.Label
    Public WithEvents _I5_1 As System.Windows.Forms.Label
    Public WithEvents _IntLoad5ILimit_1 As System.Windows.Forms.Label
    Public WithEvents _IntLoad5Config_1 As System.Windows.Forms.GroupBox
    Public WithEvents _LoadID5Int_0 As System.Windows.Forms.TextBox
    Public WithEvents _Int5ILimit_0 As System.Windows.Forms.TextBox
    Public WithEvents _IntLoad5SwitchOpen_0 As System.Windows.Forms.RadioButton
    Public WithEvents _IntLoad5SwitchClose_0 As System.Windows.Forms.RadioButton
    Public WithEvents _IntLoad5Send_0 As System.Windows.Forms.Button
    Public WithEvents _IntLoad5Close_0 As System.Windows.Forms.Button
    Public WithEvents _Label1_0 As System.Windows.Forms.Label
    Public WithEvents _I5_0 As System.Windows.Forms.Label
    Public WithEvents _IntLoad5ILimit_0 As System.Windows.Forms.Label
    Public WithEvents _IntLoad5Config_0 As System.Windows.Forms.GroupBox
    Public WithEvents Shape1 As System.Windows.Forms.Label
    Public WithEvents IntConverterC As System.Windows.Forms.Panel
    Public WithEvents V_5Int As System.Windows.Forms.TextBox
    Public WithEvents I_5Int As System.Windows.Forms.TextBox
    Public WithEvents _Load_5IntI_0 As System.Windows.Forms.TextBox
    Public WithEvents _Load_5IntI_1 As System.Windows.Forms.TextBox
    Public WithEvents _LabelIntLoad5_0 As System.Windows.Forms.Label
    Public WithEvents _IntLoad5_0 As System.Windows.Forms.Panel
    Public WithEvents _LabelIntLoad5_1 As System.Windows.Forms.Label
    Public WithEvents _IntLoad5_1 As System.Windows.Forms.Panel
    Public WithEvents ConF As System.Windows.Forms.Label
    Public WithEvents _Switch5_0 As System.Windows.Forms.Label
    Public WithEvents _Switch5_1 As System.Windows.Forms.Label
    Public WithEvents _IntLoad5Switch_0 As System.Windows.Forms.Label
    Public WithEvents _IntLoad5Switch_1 As System.Windows.Forms.Label
    Public WithEvents Line1 As System.Windows.Forms.Label
    Public WithEvents Line2 As System.Windows.Forms.Label
    Public WithEvents Line3 As System.Windows.Forms.Label
    Public WithEvents Line4 As System.Windows.Forms.Label
    Public WithEvents Line5 As System.Windows.Forms.Label
    Public WithEvents Line10 As System.Windows.Forms.Label
    Public WithEvents Line11 As System.Windows.Forms.Label
    Public WithEvents Line17 As System.Windows.Forms.Label
    Public WithEvents Line18 As System.Windows.Forms.Label
    Public WithEvents I5 As Microsoft.VisualBasic.Compatibility.VB6.LabelArray
    Public WithEvents Int5ILimit As Microsoft.VisualBasic.Compatibility.VB6.TextBoxArray
    Public WithEvents Int5V As Microsoft.VisualBasic.Compatibility.VB6.TextBoxArray
    Public WithEvents Int5VSwitchConfirm As Microsoft.VisualBasic.Compatibility.VB6.ButtonArray
    Public WithEvents IntLoad5 As Microsoft.VisualBasic.Compatibility.VB6.PanelArray
    Public WithEvents IntLoad5Close As Microsoft.VisualBasic.Compatibility.VB6.ButtonArray
    Public WithEvents IntLoad5Config As Microsoft.VisualBasic.Compatibility.VB6.GroupBoxArray
    Public WithEvents IntLoad5ILimit As Microsoft.VisualBasic.Compatibility.VB6.LabelArray
    Public WithEvents IntLoad5Send As Microsoft.VisualBasic.Compatibility.VB6.ButtonArray
    Public WithEvents IntLoad5Switch As Microsoft.VisualBasic.Compatibility.VB6.LabelArray
    Public WithEvents IntLoad5SwitchClose As Microsoft.VisualBasic.Compatibility.VB6.RadioButtonArray
    Public WithEvents IntLoad5SwitchOpen As Microsoft.VisualBasic.Compatibility.VB6.RadioButtonArray
    Public WithEvents IntLoad5V As Microsoft.VisualBasic.Compatibility.VB6.LabelArray
    Public WithEvents IntLoad5VSwitch As Microsoft.VisualBasic.Compatibility.VB6.GroupBoxArray
    Public WithEvents Label1 As Microsoft.VisualBasic.Compatibility.VB6.LabelArray
    Public WithEvents LabelIntLoad5 As Microsoft.VisualBasic.Compatibility.VB6.LabelArray
    Public WithEvents LoadID5Int As Microsoft.VisualBasic.Compatibility.VB6.TextBoxArray
    Public WithEvents Load_5IntI As Microsoft.VisualBasic.Compatibility.VB6.TextBoxArray
    Public WithEvents Switch5 As Microsoft.VisualBasic.Compatibility.VB6.LabelArray
    Public WithEvents SwitchClose5Int As Microsoft.VisualBasic.Compatibility.VB6.RadioButtonArray
    Public WithEvents SwitchOpen5Int As Microsoft.VisualBasic.Compatibility.VB6.RadioButtonArray
    Public WithEvents V5 As Microsoft.VisualBasic.Compatibility.VB6.LabelArray
    '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 MainMenu1 As System.Windows.Forms.MainMenu
    Friend WithEvents mnuDefault As System.Windows.Forms.MenuItem
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents Int5VBusPower As System.Windows.Forms.Label
    Friend WithEvents Label15 As System.Windows.Forms.Label
    Public WithEvents DateTime As System.Windows.Forms.Label
    Friend WithEvents Label21 As System.Windows.Forms.Label
    Public WithEvents Label3 As System.Windows.Forms.Label
    Public WithEvents NPCPanel As System.Windows.Forms.Panel
    Public WithEvents NPCLabel As System.Windows.Forms.Label
    Friend WithEvents GotIntLoadDataDisplay As System.Windows.Forms.Label
    Friend WithEvents Panel2 As System.Windows.Forms.Panel
    Friend WithEvents Label23 As System.Windows.Forms.Label
    Public WithEvents Label4 As System.Windows.Forms.Label
    Public WithEvents Label5 As System.Windows.Forms.Label
    Public WithEvents RadioButton1 As System.Windows.Forms.RadioButton
    Public WithEvents RadioButton2 As System.Windows.Forms.RadioButton
    Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
    Public WithEvents Label38 As System.Windows.Forms.Label
    Public WithEvents Label37 As System.Windows.Forms.Label
    Public WithEvents Label27 As System.Windows.Forms.Label
    Public WithEvents Label28 As System.Windows.Forms.Label
    Public WithEvents Label24 As System.Windows.Forms.Label
    Public WithEvents Label26 As System.Windows.Forms.Label
    Public WithEvents Label16 As System.Windows.Forms.Label
    Public WithEvents Label6 As System.Windows.Forms.Label
    Friend WithEvents Label19 As System.Windows.Forms.Label
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container
        Me.ToolTip1 = New System.Windows.Forms.ToolTip(Me.components)
        Me._IntLoad5Config_1 = New System.Windows.Forms.GroupBox
        Me._LoadID5Int_1 = New System.Windows.Forms.TextBox
        Me._Int5ILimit_1 = New System.Windows.Forms.TextBox
        Me._IntLoad5Close_1 = New System.Windows.Forms.Button
        Me._IntLoad5Send_1 = New System.Windows.Forms.Button
        Me._IntLoad5SwitchClose_1 = New System.Windows.Forms.RadioButton
        Me._IntLoad5SwitchOpen_1 = New System.Windows.Forms.RadioButton
        Me._Label1_1 = New System.Windows.Forms.Label
        Me._I5_1 = New System.Windows.Forms.Label
        Me._IntLoad5ILimit_1 = New System.Windows.Forms.Label
        Me.Label4 = New System.Windows.Forms.Label
        Me.Label5 = New System.Windows.Forms.Label
        Me.RadioButton1 = New System.Windows.Forms.RadioButton
        Me.RadioButton2 = New System.Windows.Forms.RadioButton
        Me._IntLoad5Config_0 = New System.Windows.Forms.GroupBox
        Me._LoadID5Int_0 = New System.Windows.Forms.TextBox
        Me._Int5ILimit_0 = New System.Windows.Forms.TextBox
        Me._IntLoad5SwitchOpen_0 = New System.Windows.Forms.RadioButton
        Me._IntLoad5SwitchClose_0 = New System.Windows.Forms.RadioButton
        Me._IntLoad5Send_0 = New System.Windows.Forms.Button
        Me._IntLoad5Close_0 = New System.Windows.Forms.Button
        Me._Label1_0 = New System.Windows.Forms.Label
        Me._I5_0 = New System.Windows.Forms.Label
        Me._IntLoad5ILimit_0 = New System.Windows.Forms.Label
        Me.IntConverterC = New System.Windows.Forms.Panel
        Me.Shape1 = New System.Windows.Forms.Label
        Me.V_5Int = New System.Windows.Forms.TextBox
        Me.I_5Int = New System.Windows.Forms.TextBox
        Me._Load_5IntI_0 = New System.Windows.Forms.TextBox
        Me._Load_5IntI_1 = New System.Windows.Forms.TextBox
        Me._IntLoad5_0 = New System.Windows.Forms.Panel
        Me._LabelIntLoad5_0 = New System.Windows.Forms.Label
        Me._IntLoad5_1 = New System.Windows.Forms.Panel
        Me._LabelIntLoad5_1 = New System.Windows.Forms.Label
        Me.ConF = New System.Windows.Forms.Label
        Me._Switch5_0 = New System.Windows.Forms.Label
        Me._Switch5_1 = New System.Windows.Forms.Label
        Me._IntLoad5Switch_0 = New System.Windows.Forms.Label
        Me._IntLoad5Switch_1 = New System.Windows.Forms.Label
        Me.Line1 = New System.Windows.Forms.Label
        Me.Line2 = New System.Windows.Forms.Label
        Me.Line3 = New System.Windows.Forms.Label
        Me.Line4 = New System.Windows.Forms.Label
        Me.Line5 = New System.Windows.Forms.Label
        Me.Line10 = New System.Windows.Forms.Label
        Me.Line11 = New System.Windows.Forms.Label
        Me.Line17 = New System.Windows.Forms.Label
        Me.Line18 = New System.Windows.Forms.Label
        Me.I5 = New Microsoft.VisualBasic.Compatibility.VB6.LabelArray(Me.components)
        Me.Int5ILimit = New Microsoft.VisualBasic.Compatibility.VB6.TextBoxArray(Me.components)
        Me.Int5V = New Microsoft.VisualBasic.Compatibility.VB6.TextBoxArray(Me.components)
        Me.Int5VSwitchConfirm = New Microsoft.VisualBasic.Compatibility.VB6.ButtonArray(Me.components)
        Me.IntLoad5 = New Microsoft.VisualBasic.Compatibility.VB6.PanelArray(Me.components)
        Me.IntLoad5Close = New Microsoft.VisualBasic.Compatibility.VB6.ButtonArray(Me.components)
        Me.IntLoad5Config = New Microsoft.VisualBasic.Compatibility.VB6.GroupBoxArray(Me.components)
        Me.IntLoad5ILimit = New Microsoft.VisualBasic.Compatibility.VB6.LabelArray(Me.components)
        Me.IntLoad5Send = New Microsoft.VisualBasic.Compatibility.VB6.ButtonArray(Me.components)
        Me.IntLoad5Switch = New Microsoft.VisualBasic.Compatibility.VB6.LabelArray(Me.components)
        Me.IntLoad5SwitchClose = New Microsoft.VisualBasic.Compatibility.VB6.RadioButtonArray(Me.components)
        Me.IntLoad5SwitchOpen = New Microsoft.VisualBasic.Compatibility.VB6.RadioButtonArray(Me.components)
        Me.IntLoad5V = New Microsoft.VisualBasic.Compatibility.VB6.LabelArray(Me.components)
        Me.IntLoad5VSwitch = New Microsoft.VisualBasic.Compatibility.VB6.GroupBoxArray(Me.components)
        Me.Label1 = New Microsoft.VisualBasic.Compatibility.VB6.LabelArray(Me.components)
        Me.LabelIntLoad5 = New Microsoft.VisualBasic.Compatibility.VB6.LabelArray(Me.components)
        Me.LoadID5Int = New Microsoft.VisualBasic.Compatibility.VB6.TextBoxArray(Me.components)
        Me.Load_5IntI = New Microsoft.VisualBasic.Compatibility.VB6.TextBoxArray(Me.components)
        Me.Switch5 = New Microsoft.VisualBasic.Compatibility.VB6.LabelArray(Me.components)
        Me.SwitchClose5Int = New Microsoft.VisualBasic.Compatibility.VB6.RadioButtonArray(Me.components)
        Me.SwitchOpen5Int = New Microsoft.VisualBasic.Compatibility.VB6.RadioButtonArray(Me.components)
        Me.V5 = New Microsoft.VisualBasic.Compatibility.VB6.LabelArray(Me.components)
        Me.MainMenu1 = New System.Windows.Forms.MainMenu
        Me.mnuDefault = New System.Windows.Forms.MenuItem
        Me.Label2 = New System.Windows.Forms.Label
        Me.Int5VBusPower = New System.Windows.Forms.Label
        Me.Label15 = New System.Windows.Forms.Label
        Me.DateTime = New System.Windows.Forms.Label
        Me.Label21 = New System.Windows.Forms.Label
        Me.Label3 = New System.Windows.Forms.Label
        Me.NPCPanel = New System.Windows.Forms.Panel
        Me.NPCLabel = New System.Windows.Forms.Label
        Me.GotIntLoadDataDisplay = New System.Windows.Forms.Label
        Me.Panel2 = New System.Windows.Forms.Panel
        Me.Label23 = New System.Windows.Forms.Label
        Me.GroupBox1 = New System.Windows.Forms.GroupBox
        Me.Label38 = New System.Windows.Forms.Label
        Me.Label37 = New System.Windows.Forms.Label
        Me.Label27 = New System.Windows.Forms.Label
        Me.Label28 = New System.Windows.Forms.Label
        Me.Label24 = New System.Windows.Forms.Label
        Me.Label26 = New System.Windows.Forms.Label
        Me.Label16 = New System.Windows.Forms.Label
        Me.Label6 = New System.Windows.Forms.Label
        Me.Label19 = New System.Windows.Forms.Label
        Me._IntLoad5Config_1.SuspendLayout()
        Me._IntLoad5Config_0.SuspendLayout()
        Me.IntConverterC.SuspendLayout()
        Me._IntLoad5_0.SuspendLayout()
        Me._IntLoad5_1.SuspendLayout()
        CType(Me.I5, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.Int5ILimit, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.Int5V, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.Int5VSwitchConfirm, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.IntLoad5, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.IntLoad5Close, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.IntLoad5Config, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.IntLoad5ILimit, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.IntLoad5Send, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.IntLoad5Switch, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.IntLoad5SwitchClose, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.IntLoad5SwitchOpen, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.IntLoad5V, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.IntLoad5VSwitch, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.Label1, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.LabelIntLoad5, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.LoadID5Int, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.Load_5IntI, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.Switch5, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.SwitchClose5Int, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.SwitchOpen5Int, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.V5, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.NPCPanel.SuspendLayout()
        Me.Panel2.SuspendLayout()
        Me.GroupBox1.SuspendLayout()
        Me.SuspendLayout()
        '
        '_IntLoad5Config_1
        '
        Me._IntLoad5Config_1.BackColor = System.Drawing.Color.FromArgb(CType(192, Byte), CType(255, Byte), CType(192, Byte))
        Me._IntLoad5Config_1.Controls.Add(Me._LoadID5Int_1)
        Me._IntLoad5Config_1.Controls.Add(Me._Int5ILimit_1)
        Me._IntLoad5Config_1.Controls.Add(Me._IntLoad5Close_1)
        Me._IntLoad5Config_1.Controls.Add(Me._IntLoad5Send_1)
        Me._IntLoad5Config_1.Controls.Add(Me._IntLoad5SwitchClose_1)
        Me._IntLoad5Config_1.Controls.Add(Me._IntLoad5SwitchOpen_1)
        Me._IntLoad5Config_1.Controls.Add(Me._Label1_1)
        Me._IntLoad5Config_1.Controls.Add(Me._I5_1)
        Me._IntLoad5Config_1.Controls.Add(Me._IntLoad5ILimit_1)
        Me._IntLoad5Config_1.Controls.Add(Me.Label4)
        Me._IntLoad5Config_1.Controls.Add(Me.Label5)
        Me._IntLoad5Config_1.Controls.Add(Me.RadioButton1)
        Me._IntLoad5Config_1.Controls.Add(Me.RadioButton2)
        Me._IntLoad5Config_1.Font = New System.Drawing.Font("Arial", 18.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._IntLoad5Config_1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.IntLoad5Config.SetIndex(Me._IntLoad5Config_1, CType(1, Short))
        Me._IntLoad5Config_1.Location = New System.Drawing.Point(40, 368)
        Me._IntLoad5Config_1.Name = "_IntLoad5Config_1"
        Me._IntLoad5Config_1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._IntLoad5Config_1.Size = New System.Drawing.Size(521, 264)
        Me._IntLoad5Config_1.TabIndex = 15
        Me._IntLoad5Config_1.TabStop = False
        Me._IntLoad5Config_1.Text = "Internal Load 2 Configuration"
        Me._IntLoad5Config_1.Visible = False
        '
        '_LoadID5Int_1
        '
        Me._LoadID5Int_1.AcceptsReturn = True
        Me._LoadID5Int_1.AutoSize = False
        Me._LoadID5Int_1.BackColor = System.Drawing.SystemColors.Window
        Me._LoadID5Int_1.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._LoadID5Int_1.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._LoadID5Int_1.ForeColor = System.Drawing.SystemColors.WindowText
        Me.LoadID5Int.SetIndex(Me._LoadID5Int_1, CType(1, Short))
        Me._LoadID5Int_1.Location = New System.Drawing.Point(272, 64)
        Me._LoadID5Int_1.MaxLength = 0
        Me._LoadID5Int_1.Name = "_LoadID5Int_1"
        Me._LoadID5Int_1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._LoadID5Int_1.Size = New System.Drawing.Size(217, 33)
        Me._LoadID5Int_1.TabIndex = 45
        Me._LoadID5Int_1.Text = "Text1"
        Me._LoadID5Int_1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        '_Int5ILimit_1
        '
        Me._Int5ILimit_1.AcceptsReturn = True
        Me._Int5ILimit_1.AutoSize = False
        Me._Int5ILimit_1.BackColor = System.Drawing.SystemColors.Window
        Me._Int5ILimit_1.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Int5ILimit_1.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Int5ILimit_1.ForeColor = System.Drawing.SystemColors.WindowText
        Me.Int5ILimit.SetIndex(Me._Int5ILimit_1, CType(1, Short))
        Me._Int5ILimit_1.Location = New System.Drawing.Point(272, 112)
        Me._Int5ILimit_1.MaxLength = 0
        Me._Int5ILimit_1.Name = "_Int5ILimit_1"
        Me._Int5ILimit_1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Int5ILimit_1.Size = New System.Drawing.Size(89, 33)
        Me._Int5ILimit_1.TabIndex = 46
        Me._Int5ILimit_1.Text = ""
        Me._Int5ILimit_1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        '_IntLoad5Close_1
        '
        Me._IntLoad5Close_1.BackColor = System.Drawing.SystemColors.Control
        Me._IntLoad5Close_1.Cursor = System.Windows.Forms.Cursors.Default
        Me._IntLoad5Close_1.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._IntLoad5Close_1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.IntLoad5Close.SetIndex(Me._IntLoad5Close_1, CType(1, Short))
        Me._IntLoad5Close_1.Location = New System.Drawing.Point(312, 216)
        Me._IntLoad5Close_1.Name = "_IntLoad5Close_1"
        Me._IntLoad5Close_1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._IntLoad5Close_1.Size = New System.Drawing.Size(97, 33)
        Me._IntLoad5Close_1.TabIndex = 50
        Me._IntLoad5Close_1.Text = "Cancel"
        '
        '_IntLoad5Send_1
        '
        Me._IntLoad5Send_1.BackColor = System.Drawing.SystemColors.Control
        Me._IntLoad5Send_1.Cursor = System.Windows.Forms.Cursors.Default
        Me._IntLoad5Send_1.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._IntLoad5Send_1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.IntLoad5Send.SetIndex(Me._IntLoad5Send_1, CType(1, Short))
        Me._IntLoad5Send_1.Location = New System.Drawing.Point(104, 216)
        Me._IntLoad5Send_1.Name = "_IntLoad5Send_1"
        Me._IntLoad5Send_1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._IntLoad5Send_1.Size = New System.Drawing.Size(97, 33)
        Me._IntLoad5Send_1.TabIndex = 49
        Me._IntLoad5Send_1.Text = "Send"
        '
        '_IntLoad5SwitchClose_1
        '
        Me._IntLoad5SwitchClose_1.BackColor = System.Drawing.Color.Transparent
        Me._IntLoad5SwitchClose_1.Cursor = System.Windows.Forms.Cursors.Default
        Me._IntLoad5SwitchClose_1.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._IntLoad5SwitchClose_1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.IntLoad5SwitchClose.SetIndex(Me._IntLoad5SwitchClose_1, CType(1, Short))
        Me._IntLoad5SwitchClose_1.Location = New System.Drawing.Point(304, 168)
        Me._IntLoad5SwitchClose_1.Name = "_IntLoad5SwitchClose_1"
        Me._IntLoad5SwitchClose_1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._IntLoad5SwitchClose_1.Size = New System.Drawing.Size(120, 25)
        Me._IntLoad5SwitchClose_1.TabIndex = 48
        Me._IntLoad5SwitchClose_1.Text = "Switch Close"
        '
        '_IntLoad5SwitchOpen_1
        '
        Me._IntLoad5SwitchOpen_1.BackColor = System.Drawing.Color.Transparent
        Me._IntLoad5SwitchOpen_1.Cursor = System.Windows.Forms.Cursors.Default
        Me._IntLoad5SwitchOpen_1.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._IntLoad5SwitchOpen_1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.IntLoad5SwitchOpen.SetIndex(Me._IntLoad5SwitchOpen_1, CType(1, Short))
        Me._IntLoad5SwitchOpen_1.Location = New System.Drawing.Point(112, 168)
        Me._IntLoad5SwitchOpen_1.Name = "_IntLoad5SwitchOpen_1"
        Me._IntLoad5SwitchOpen_1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._IntLoad5SwitchOpen_1.Size = New System.Drawing.Size(120, 25)
        Me._IntLoad5SwitchOpen_1.TabIndex = 47
        Me._IntLoad5SwitchOpen_1.Text = "Switch Open"
        '
        '_Label1_1
        '
        Me._Label1_1.BackColor = System.Drawing.Color.Transparent
        Me._Label1_1.Cursor = System.Windows.Forms.Cursors.Default
        Me._Label1_1.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Label1_1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label1.SetIndex(Me._Label1_1, CType(1, Short))
        Me._Label1_1.Location = New System.Drawing.Point(104, 72)
        Me._Label1_1.Name = "_Label1_1"
        Me._Label1_1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Label1_1.Size = New System.Drawing.Size(161, 25)
        Me._Label1_1.TabIndex = 44
        Me._Label1_1.Text = "Load ID/Description"
        '
        '_I5_1
        '
        Me._I5_1.BackColor = System.Drawing.Color.Transparent
        Me._I5_1.Cursor = System.Windows.Forms.Cursors.Default
        Me._I5_1.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._I5_1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.I5.SetIndex(Me._I5_1, CType(1, Short))
        Me._I5_1.Location = New System.Drawing.Point(384, 120)
        Me._I5_1.Name = "_I5_1"
        Me._I5_1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._I5_1.Size = New System.Drawing.Size(25, 25)
        Me._I5_1.TabIndex = 30
        Me._I5_1.Text = "A"
        '
        '_IntLoad5ILimit_1
        '
        Me._IntLoad5ILimit_1.BackColor = System.Drawing.Color.Transparent
        Me._IntLoad5ILimit_1.Cursor = System.Windows.Forms.Cursors.Default
        Me._IntLoad5ILimit_1.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._IntLoad5ILimit_1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.IntLoad5ILimit.SetIndex(Me._IntLoad5ILimit_1, CType(1, Short))
        Me._IntLoad5ILimit_1.Location = New System.Drawing.Point(104, 120)
        Me._IntLoad5ILimit_1.Name = "_IntLoad5ILimit_1"
        Me._IntLoad5ILimit_1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._IntLoad5ILimit_1.Size = New System.Drawing.Size(104, 33)
        Me._IntLoad5ILimit_1.TabIndex = 28
        Me._IntLoad5ILimit_1.Text = "Current Limit"
        '
        'Label4
        '
        Me.Label4.BackColor = System.Drawing.Color.Transparent
        Me.Label4.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label4.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label4.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label4.Location = New System.Drawing.Point(104, 72)
        Me.Label4.Name = "Label4"
        Me.Label4.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label4.Size = New System.Drawing.Size(161, 25)
        Me.Label4.TabIndex = 44
        Me.Label4.Text = "Load ID/Description"
        '
        'Label5
        '
        Me.Label5.BackColor = System.Drawing.Color.Transparent
        Me.Label5.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label5.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label5.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label5.Location = New System.Drawing.Point(104, 120)
        Me.Label5.Name = "Label5"
        Me.Label5.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label5.Size = New System.Drawing.Size(104, 33)
        Me.Label5.TabIndex = 28
        Me.Label5.Text = "Current Limit"
        '
        'RadioButton1
        '
        Me.RadioButton1.BackColor = System.Drawing.Color.Transparent
        Me.RadioButton1.Cursor = System.Windows.Forms.Cursors.Default
        Me.RadioButton1.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.RadioButton1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.RadioButton1.Location = New System.Drawing.Point(304, 168)
        Me.RadioButton1.Name = "RadioButton1"
        Me.RadioButton1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.RadioButton1.Size = New System.Drawing.Size(120, 25)
        Me.RadioButton1.TabIndex = 48
        Me.RadioButton1.Text = "Switch Close"
        '
        'RadioButton2
        '
        Me.RadioButton2.BackColor = System.Drawing.Color.Transparent
        Me.RadioButton2.Cursor = System.Windows.Forms.Cursors.Default
        Me.RadioButton2.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.RadioButton2.ForeColor = System.Drawing.SystemColors.ControlText
        Me.RadioButton2.Location = New System.Drawing.Point(112, 168)
        Me.RadioButton2.Name = "RadioButton2"
        Me.RadioButton2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.RadioButton2.Size = New System.Drawing.Size(120, 25)
        Me.RadioButton2.TabIndex = 47
        Me.RadioButton2.Text = "Switch Open"
        '
        '_IntLoad5Config_0
        '
        Me._IntLoad5Config_0.BackColor = System.Drawing.Color.FromArgb(CType(255, Byte), CType(192, Byte), CType(192, Byte))
        Me._IntLoad5Config_0.Controls.Add(Me._LoadID5Int_0)
        Me._IntLoad5Config_0.Controls.Add(Me._Int5ILimit_0)
        Me._IntLoad5Config_0.Controls.Add(Me._IntLoad5SwitchOpen_0)
        Me._IntLoad5Config_0.Controls.Add(Me._IntLoad5SwitchClose_0)
        Me._IntLoad5Config_0.Controls.Add(Me._IntLoad5Send_0)
        Me._IntLoad5Config_0.Controls.Add(Me._IntLoad5Close_0)
        Me._IntLoad5Config_0.Controls.Add(Me._Label1_0)
        Me._IntLoad5Config_0.Controls.Add(Me._I5_0)
        Me._IntLoad5Config_0.Controls.Add(Me._IntLoad5ILimit_0)
        Me._IntLoad5Config_0.Font = New System.Drawing.Font("Arial", 18.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._IntLoad5Config_0.ForeColor = System.Drawing.SystemColors.ControlText
        Me.IntLoad5Config.SetIndex(Me._IntLoad5Config_0, CType(0, Short))
        Me._IntLoad5Config_0.Location = New System.Drawing.Point(40, 368)
        Me._IntLoad5Config_0.Name = "_IntLoad5Config_0"
        Me._IntLoad5Config_0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._IntLoad5Config_0.Size = New System.Drawing.Size(521, 264)
        Me._IntLoad5Config_0.TabIndex = 7
        Me._IntLoad5Config_0.TabStop = False
        Me._IntLoad5Config_0.Text = "Internal Load 1 Configuration"
        Me._IntLoad5Config_0.Visible = False
        '
        '_LoadID5Int_0
        '
        Me._LoadID5Int_0.AcceptsReturn = True
        Me._LoadID5Int_0.AutoSize = False
        Me._LoadID5Int_0.BackColor = System.Drawing.SystemColors.Window
        Me._LoadID5Int_0.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._LoadID5Int_0.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._LoadID5Int_0.ForeColor = System.Drawing.SystemColors.WindowText
        Me.LoadID5Int.SetIndex(Me._LoadID5Int_0, CType(0, Short))
        Me._LoadID5Int_0.Location = New System.Drawing.Point(256, 64)
        Me._LoadID5Int_0.MaxLength = 0
        Me._LoadID5Int_0.Name = "_LoadID5Int_0"
        Me._LoadID5Int_0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._LoadID5Int_0.Size = New System.Drawing.Size(217, 33)
        Me._LoadID5Int_0.TabIndex = 43
        Me._LoadID5Int_0.Text = "Text1"
        Me._LoadID5Int_0.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        '_Int5ILimit_0
        '
        Me._Int5ILimit_0.AcceptsReturn = True
        Me._Int5ILimit_0.AutoSize = False
        Me._Int5ILimit_0.BackColor = System.Drawing.SystemColors.Window
        Me._Int5ILimit_0.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Int5ILimit_0.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Int5ILimit_0.ForeColor = System.Drawing.SystemColors.WindowText
        Me.Int5ILimit.SetIndex(Me._Int5ILimit_0, CType(0, Short))
        Me._Int5ILimit_0.Location = New System.Drawing.Point(256, 112)
        Me._Int5ILimit_0.MaxLength = 0
        Me._Int5ILimit_0.Name = "_Int5ILimit_0"
        Me._Int5ILimit_0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Int5ILimit_0.Size = New System.Drawing.Size(89, 33)
        Me._Int5ILimit_0.TabIndex = 44
        Me._Int5ILimit_0.Text = ""
        Me._Int5ILimit_0.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        '_IntLoad5SwitchOpen_0
        '
        Me._IntLoad5SwitchOpen_0.BackColor = System.Drawing.Color.Transparent
        Me._IntLoad5SwitchOpen_0.Cursor = System.Windows.Forms.Cursors.Default
        Me._IntLoad5SwitchOpen_0.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._IntLoad5SwitchOpen_0.ForeColor = System.Drawing.SystemColors.ControlText
        Me.IntLoad5SwitchOpen.SetIndex(Me._IntLoad5SwitchOpen_0, CType(0, Short))
        Me._IntLoad5SwitchOpen_0.Location = New System.Drawing.Point(96, 168)
        Me._IntLoad5SwitchOpen_0.Name = "_IntLoad5SwitchOpen_0"
        Me._IntLoad5SwitchOpen_0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._IntLoad5SwitchOpen_0.Size = New System.Drawing.Size(120, 25)
        Me._IntLoad5SwitchOpen_0.TabIndex = 45
        Me._IntLoad5SwitchOpen_0.Text = "Switch Open"
        '
        '_IntLoad5SwitchClose_0
        '
        Me._IntLoad5SwitchClose_0.BackColor = System.Drawing.Color.Transparent
        Me._IntLoad5SwitchClose_0.Cursor = System.Windows.Forms.Cursors.Default
        Me._IntLoad5SwitchClose_0.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._IntLoad5SwitchClose_0.ForeColor = System.Drawing.SystemColors.ControlText
        Me.IntLoad5SwitchClose.SetIndex(Me._IntLoad5SwitchClose_0, CType(0, Short))
        Me._IntLoad5SwitchClose_0.Location = New System.Drawing.Point(288, 168)
        Me._IntLoad5SwitchClose_0.Name = "_IntLoad5SwitchClose_0"
        Me._IntLoad5SwitchClose_0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._IntLoad5SwitchClose_0.Size = New System.Drawing.Size(120, 25)
        Me._IntLoad5SwitchClose_0.TabIndex = 46
        Me._IntLoad5SwitchClose_0.Text = "Switch Close"
        '
        '_IntLoad5Send_0
        '
        Me._IntLoad5Send_0.BackColor = System.Drawing.SystemColors.Control
        Me._IntLoad5Send_0.Cursor = System.Windows.Forms.Cursors.Default
        Me._IntLoad5Send_0.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._IntLoad5Send_0.ForeColor = System.Drawing.SystemColors.ControlText
        Me.IntLoad5Send.SetIndex(Me._IntLoad5Send_0, CType(0, Short))
        Me._IntLoad5Send_0.Location = New System.Drawing.Point(88, 216)
        Me._IntLoad5Send_0.Name = "_IntLoad5Send_0"
        Me._IntLoad5Send_0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._IntLoad5Send_0.Size = New System.Drawing.Size(97, 33)
        Me._IntLoad5Send_0.TabIndex = 47
        Me._IntLoad5Send_0.Text = "Send"
        '
        '_IntLoad5Close_0
        '
        Me._IntLoad5Close_0.BackColor = System.Drawing.SystemColors.Control
        Me._IntLoad5Close_0.Cursor = System.Windows.Forms.Cursors.Default
        Me._IntLoad5Close_0.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._IntLoad5Close_0.ForeColor = System.Drawing.SystemColors.ControlText
        Me.IntLoad5Close.SetIndex(Me._IntLoad5Close_0, CType(0, Short))
        Me._IntLoad5Close_0.Location = New System.Drawing.Point(312, 216)
        Me._IntLoad5Close_0.Name = "_IntLoad5Close_0"
        Me._IntLoad5Close_0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._IntLoad5Close_0.Size = New System.Drawing.Size(97, 33)
        Me._IntLoad5Close_0.TabIndex = 48
        Me._IntLoad5Close_0.Text = "Cancel"
        '
        '_Label1_0
        '
        Me._Label1_0.BackColor = System.Drawing.Color.Transparent
        Me._Label1_0.Cursor = System.Windows.Forms.Cursors.Default
        Me._Label1_0.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Label1_0.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label1.SetIndex(Me._Label1_0, CType(0, Short))
        Me._Label1_0.Location = New System.Drawing.Point(88, 72)
        Me._Label1_0.Name = "_Label1_0"
        Me._Label1_0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Label1_0.Size = New System.Drawing.Size(161, 25)
        Me._Label1_0.TabIndex = 42
        Me._Label1_0.Text = "Load ID/Description"
        '
        '_I5_0
        '
        Me._I5_0.BackColor = System.Drawing.Color.Transparent
        Me._I5_0.Cursor = System.Windows.Forms.Cursors.Default
        Me._I5_0.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._I5_0.ForeColor = System.Drawing.SystemColors.ControlText
        Me.I5.SetIndex(Me._I5_0, CType(0, Short))
        Me._I5_0.Location = New System.Drawing.Point(368, 120)
        Me._I5_0.Name = "_I5_0"
        Me._I5_0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._I5_0.Size = New System.Drawing.Size(25, 25)
        Me._I5_0.TabIndex = 27
        Me._I5_0.Text = "A"
        '
        '_IntLoad5ILimit_0
        '
        Me._IntLoad5ILimit_0.BackColor = System.Drawing.Color.Transparent
        Me._IntLoad5ILimit_0.Cursor = System.Windows.Forms.Cursors.Default
        Me._IntLoad5ILimit_0.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._IntLoad5ILimit_0.ForeColor = System.Drawing.SystemColors.ControlText
        Me.IntLoad5ILimit.SetIndex(Me._IntLoad5ILimit_0, CType(0, Short))
        Me._IntLoad5ILimit_0.Location = New System.Drawing.Point(88, 120)
        Me._IntLoad5ILimit_0.Name = "_IntLoad5ILimit_0"
        Me._IntLoad5ILimit_0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._IntLoad5ILimit_0.Size = New System.Drawing.Size(104, 33)
        Me._IntLoad5ILimit_0.TabIndex = 25
        Me._IntLoad5ILimit_0.Text = "Current Limit"
        '
        'IntConverterC
        '
        Me.IntConverterC.BackColor = System.Drawing.Color.FromArgb(CType(255, Byte), CType(192, Byte), CType(128, Byte))
        Me.IntConverterC.Controls.Add(Me.Shape1)
        Me.IntConverterC.Cursor = System.Windows.Forms.Cursors.Default
        Me.IntConverterC.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.IntConverterC.ForeColor = System.Drawing.SystemColors.ControlText
        Me.IntConverterC.Location = New System.Drawing.Point(48, 176)
        Me.IntConverterC.Name = "IntConverterC"
        Me.IntConverterC.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.IntConverterC.Size = New System.Drawing.Size(73, 65)
        Me.IntConverterC.TabIndex = 6
        '
        'Shape1
        '
        Me.Shape1.BackColor = System.Drawing.Color.Transparent
        Me.Shape1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.Shape1.Location = New System.Drawing.Point(16, 16)
        Me.Shape1.Name = "Shape1"
        Me.Shape1.Size = New System.Drawing.Size(41, 33)
        Me.Shape1.TabIndex = 0
        '
        'V_5Int
        '
        Me.V_5Int.AcceptsReturn = True
        Me.V_5Int.AutoSize = False
        Me.V_5Int.BackColor = System.Drawing.Color.Black
        Me.V_5Int.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.V_5Int.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.V_5Int.ForeColor = System.Drawing.Color.Aqua
        Me.V_5Int.Location = New System.Drawing.Point(144, 160)
        Me.V_5Int.MaxLength = 0
        Me.V_5Int.Name = "V_5Int"
        Me.V_5Int.ReadOnly = True
        Me.V_5Int.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.V_5Int.Size = New System.Drawing.Size(80, 24)
        Me.V_5Int.TabIndex = 5
        Me.V_5Int.TabStop = False
        Me.V_5Int.Text = "V"
        Me.V_5Int.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        'I_5Int
        '
        Me.I_5Int.AcceptsReturn = True
        Me.I_5Int.AutoSize = False
        Me.I_5Int.BackColor = System.Drawing.Color.Black
        Me.I_5Int.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.I_5Int.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.I_5Int.ForeColor = System.Drawing.Color.Aqua
        Me.I_5Int.Location = New System.Drawing.Point(240, 198)
        Me.I_5Int.MaxLength = 0
        Me.I_5Int.Name = "I_5Int"
        Me.I_5Int.ReadOnly = True
        Me.I_5Int.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.I_5Int.Size = New System.Drawing.Size(72, 24)
        Me.I_5Int.TabIndex = 4
        Me.I_5Int.TabStop = False
        Me.I_5Int.Text = "I"
        Me.I_5Int.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        '_Load_5IntI_0
        '
        Me._Load_5IntI_0.AcceptsReturn = True
        Me._Load_5IntI_0.AutoSize = False
        Me._Load_5IntI_0.BackColor = System.Drawing.Color.Black
        Me._Load_5IntI_0.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Load_5IntI_0.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Load_5IntI_0.ForeColor = System.Drawing.Color.Aqua
        Me.Load_5IntI.SetIndex(Me._Load_5IntI_0, CType(0, Short))
        Me._Load_5IntI_0.Location = New System.Drawing.Point(424, 198)
        Me._Load_5IntI_0.MaxLength = 0
        Me._Load_5IntI_0.Name = "_Load_5IntI_0"
        Me._Load_5IntI_0.ReadOnly = True
        Me._Load_5IntI_0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Load_5IntI_0.Size = New System.Drawing.Size(80, 24)
        Me._Load_5IntI_0.TabIndex = 3
        Me._Load_5IntI_0.TabStop = False
        Me._Load_5IntI_0.Text = "N/A"
        Me._Load_5IntI_0.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        '_Load_5IntI_1
        '
        Me._Load_5IntI_1.AcceptsReturn = True
        Me._Load_5IntI_1.AutoSize = False
        Me._Load_5IntI_1.BackColor = System.Drawing.Color.Black
        Me._Load_5IntI_1.Cursor = System.Windows.Forms.Cursors.IBeam
        Me._Load_5IntI_1.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Load_5IntI_1.ForeColor = System.Drawing.Color.Aqua
        Me.Load_5IntI.SetIndex(Me._Load_5IntI_1, CType(1, Short))
        Me._Load_5IntI_1.Location = New System.Drawing.Point(424, 254)
        Me._Load_5IntI_1.MaxLength = 0
        Me._Load_5IntI_1.Name = "_Load_5IntI_1"
        Me._Load_5IntI_1.ReadOnly = True
        Me._Load_5IntI_1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Load_5IntI_1.Size = New System.Drawing.Size(80, 24)
        Me._Load_5IntI_1.TabIndex = 2
        Me._Load_5IntI_1.TabStop = False
        Me._Load_5IntI_1.Text = "N/A"
        Me._Load_5IntI_1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        '_IntLoad5_0
        '
        Me._IntLoad5_0.BackColor = System.Drawing.Color.FromArgb(CType(255, Byte), CType(128, Byte), CType(128, Byte))
        Me._IntLoad5_0.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me._IntLoad5_0.Controls.Add(Me._LabelIntLoad5_0)
        Me._IntLoad5_0.Cursor = System.Windows.Forms.Cursors.Hand
        Me._IntLoad5_0.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._IntLoad5_0.ForeColor = System.Drawing.SystemColors.ControlText
        Me.IntLoad5.SetIndex(Me._IntLoad5_0, CType(0, Short))
        Me._IntLoad5_0.Location = New System.Drawing.Point(768, 191)
        Me._IntLoad5_0.Name = "_IntLoad5_0"
        Me._IntLoad5_0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._IntLoad5_0.Size = New System.Drawing.Size(256, 40)
        Me._IntLoad5_0.TabIndex = 1
        Me._IntLoad5_0.Text = "Load 11"
        '
        '_LabelIntLoad5_0
        '
        Me._LabelIntLoad5_0.BackColor = System.Drawing.Color.FromArgb(CType(255, Byte), CType(192, Byte), CType(192, Byte))
        Me._LabelIntLoad5_0.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
        Me._LabelIntLoad5_0.Cursor = System.Windows.Forms.Cursors.Hand
        Me._LabelIntLoad5_0.FlatStyle = System.Windows.Forms.FlatStyle.Popup
        Me._LabelIntLoad5_0.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._LabelIntLoad5_0.ForeColor = System.Drawing.SystemColors.ControlText
        Me.LabelIntLoad5.SetIndex(Me._LabelIntLoad5_0, CType(0, Short))
        Me._LabelIntLoad5_0.Location = New System.Drawing.Point(8, 8)
        Me._LabelIntLoad5_0.Name = "_LabelIntLoad5_0"
        Me._LabelIntLoad5_0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._LabelIntLoad5_0.Size = New System.Drawing.Size(240, 24)
        Me._LabelIntLoad5_0.TabIndex = 31
        Me._LabelIntLoad5_0.Text = "Load 1"
        Me._LabelIntLoad5_0.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
        '
        '_IntLoad5_1
        '
        Me._IntLoad5_1.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(255, Byte), CType(128, Byte))
        Me._IntLoad5_1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me._IntLoad5_1.Controls.Add(Me._LabelIntLoad5_1)
        Me._IntLoad5_1.Cursor = System.Windows.Forms.Cursors.Hand
        Me._IntLoad5_1.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._IntLoad5_1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.IntLoad5.SetIndex(Me._IntLoad5_1, CType(1, Short))
        Me._IntLoad5_1.Location = New System.Drawing.Point(768, 247)
        Me._IntLoad5_1.Name = "_IntLoad5_1"
        Me._IntLoad5_1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._IntLoad5_1.Size = New System.Drawing.Size(256, 40)
        Me._IntLoad5_1.TabIndex = 0
        Me._IntLoad5_1.Text = "Load 12"
        '
        '_LabelIntLoad5_1
        '
        Me._LabelIntLoad5_1.BackColor = System.Drawing.Color.FromArgb(CType(192, Byte), CType(255, Byte), CType(192, Byte))
        Me._LabelIntLoad5_1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
        Me._LabelIntLoad5_1.Cursor = System.Windows.Forms.Cursors.Hand
        Me._LabelIntLoad5_1.FlatStyle = System.Windows.Forms.FlatStyle.Popup
        Me._LabelIntLoad5_1.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._LabelIntLoad5_1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.LabelIntLoad5.SetIndex(Me._LabelIntLoad5_1, CType(1, Short))
        Me._LabelIntLoad5_1.Location = New System.Drawing.Point(8, 8)
        Me._LabelIntLoad5_1.Name = "_LabelIntLoad5_1"
        Me._LabelIntLoad5_1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._LabelIntLoad5_1.Size = New System.Drawing.Size(240, 24)
        Me._LabelIntLoad5_1.TabIndex = 32
        Me._LabelIntLoad5_1.Text = "Load 2"
        Me._LabelIntLoad5_1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
        '
        'ConF
        '
        Me.ConF.BackColor = System.Drawing.Color.Transparent
        Me.ConF.Cursor = System.Windows.Forms.Cursors.Default
        Me.ConF.Font = New System.Drawing.Font("Arial", 14.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.ConF.ForeColor = System.Drawing.Color.White
        Me.ConF.Location = New System.Drawing.Point(8, 248)
        Me.ConF.Name = "ConF"
        Me.ConF.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.ConF.Size = New System.Drawing.Size(264, 25)
        Me.ConF.TabIndex = 33
        Me.ConF.Text = "400V-5V Converter (Internal)"
        '
        '_Switch5_0
        '
        Me._Switch5_0.BackColor = System.Drawing.Color.LightGray
        Me._Switch5_0.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me._Switch5_0.Cursor = System.Windows.Forms.Cursors.Hand
        Me.Switch5.SetIndex(Me._Switch5_0, CType(0, Short))
        Me._Switch5_0.Location = New System.Drawing.Point(628, 200)
        Me._Switch5_0.Name = "_Switch5_0"
        Me._Switch5_0.Size = New System.Drawing.Size(17, 17)
        Me._Switch5_0.TabIndex = 39
        '
        '_Switch5_1
        '
        Me._Switch5_1.BackColor = System.Drawing.Color.LightGray
        Me._Switch5_1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me._Switch5_1.Cursor = System.Windows.Forms.Cursors.Hand
        Me.Switch5.SetIndex(Me._Switch5_1, CType(1, Short))
        Me._Switch5_1.Location = New System.Drawing.Point(628, 256)
        Me._Switch5_1.Name = "_Switch5_1"
        Me._Switch5_1.Size = New System.Drawing.Size(17, 17)
        Me._Switch5_1.TabIndex = 40
        '
        '_IntLoad5Switch_0
        '
        Me._IntLoad5Switch_0.BackColor = System.Drawing.Color.Transparent
        Me._IntLoad5Switch_0.Cursor = System.Windows.Forms.Cursors.Default
        Me._IntLoad5Switch_0.Font = New System.Drawing.Font("Arial", 14.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._IntLoad5Switch_0.ForeColor = System.Drawing.Color.Aqua
        Me.IntLoad5Switch.SetIndex(Me._IntLoad5Switch_0, CType(0, Short))
        Me._IntLoad5Switch_0.Location = New System.Drawing.Point(544, 176)
        Me._IntLoad5Switch_0.Name = "_IntLoad5Switch_0"
        Me._IntLoad5Switch_0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._IntLoad5Switch_0.Size = New System.Drawing.Size(185, 24)
        Me._IntLoad5Switch_0.TabIndex = 24
        Me._IntLoad5Switch_0.Text = "Load 1  5V Switch"
        '
        '_IntLoad5Switch_1
        '
        Me._IntLoad5Switch_1.BackColor = System.Drawing.Color.Transparent
        Me._IntLoad5Switch_1.Cursor = System.Windows.Forms.Cursors.Default
        Me._IntLoad5Switch_1.Font = New System.Drawing.Font("Arial", 14.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._IntLoad5Switch_1.ForeColor = System.Drawing.Color.Aqua
        Me.IntLoad5Switch.SetIndex(Me._IntLoad5Switch_1, CType(1, Short))
        Me._IntLoad5Switch_1.Location = New System.Drawing.Point(544, 232)
        Me._IntLoad5Switch_1.Name = "_IntLoad5Switch_1"
        Me._IntLoad5Switch_1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._IntLoad5Switch_1.Size = New System.Drawing.Size(185, 24)
        Me._IntLoad5Switch_1.TabIndex = 23
        Me._IntLoad5Switch_1.Text = "Load 2  5V Switch"
        '
        'Line1
        '
        Me.Line1.BackColor = System.Drawing.Color.Aqua
        Me.Line1.Location = New System.Drawing.Point(120, 208)
        Me.Line1.Name = "Line1"
        Me.Line1.Size = New System.Drawing.Size(136, 3)
        Me.Line1.TabIndex = 41
        '
        'Line2
        '
        Me.Line2.BackColor = System.Drawing.Color.Aqua
        Me.Line2.Location = New System.Drawing.Point(181, 184)
        Me.Line2.Name = "Line2"
        Me.Line2.Size = New System.Drawing.Size(3, 24)
        Me.Line2.TabIndex = 42
        '
        'Line3
        '
        Me.Line3.BackColor = System.Drawing.Color.Aqua
        Me.Line3.Location = New System.Drawing.Point(312, 208)
        Me.Line3.Name = "Line3"
        Me.Line3.Size = New System.Drawing.Size(112, 3)
        Me.Line3.TabIndex = 43
        '
        'Line4
        '
        Me.Line4.BackColor = System.Drawing.Color.Aqua
        Me.Line4.Location = New System.Drawing.Point(504, 208)
        Me.Line4.Name = "Line4"
        Me.Line4.Size = New System.Drawing.Size(124, 3)
        Me.Line4.TabIndex = 44
        '
        'Line5
        '
        Me.Line5.BackColor = System.Drawing.Color.Aqua
        Me.Line5.Location = New System.Drawing.Point(504, 264)
        Me.Line5.Name = "Line5"
        Me.Line5.Size = New System.Drawing.Size(124, 3)
        Me.Line5.TabIndex = 45
        '
        'Line10
        '
        Me.Line10.BackColor = System.Drawing.Color.Aqua
        Me.Line10.Location = New System.Drawing.Point(392, 208)
        Me.Line10.Name = "Line10"
        Me.Line10.Size = New System.Drawing.Size(3, 112)
        Me.Line10.TabIndex = 46
        '
        'Line11
        '
        Me.Line11.BackColor = System.Drawing.Color.Aqua
        Me.Line11.Location = New System.Drawing.Point(392, 264)
        Me.Line11.Name = "Line11"
        Me.Line11.Size = New System.Drawing.Size(32, 3)
        Me.Line11.TabIndex = 47
        '
        'Line17
        '
        Me.Line17.BackColor = System.Drawing.Color.Aqua
        Me.Line17.Location = New System.Drawing.Point(644, 208)
        Me.Line17.Name = "Line17"
        Me.Line17.Size = New System.Drawing.Size(124, 3)
        Me.Line17.TabIndex = 48
        '
        'Line18
        '
        Me.Line18.BackColor = System.Drawing.Color.Aqua
        Me.Line18.Location = New System.Drawing.Point(644, 264)
        Me.Line18.Name = "Line18"
        Me.Line18.Size = New System.Drawing.Size(124, 3)
        Me.Line18.TabIndex = 49
        '
        'IntLoad5
        '
        '
        'IntLoad5Close
        '
        '
        'IntLoad5Send
        '
        '
        'LabelIntLoad5
        '
        '
        'Switch5
        '
        '
        'MainMenu1
        '
        Me.MainMenu1.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.mnuDefault})
        '
        'mnuDefault
        '
        Me.mnuDefault.Index = 0
        Me.mnuDefault.Text = "Disconnect all 5V Internal Loads"
        '
        'Label2
        '
        Me.Label2.Font = New System.Drawing.Font("Arial", 24.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label2.ForeColor = System.Drawing.Color.Aqua
        Me.Label2.Location = New System.Drawing.Point(8, 56)
        Me.Label2.Name = "Label2"
        Me.Label2.Size = New System.Drawing.Size(296, 40)
        Me.Label2.TabIndex = 50
        Me.Label2.Text = "5V Internal Loads"
        Me.Label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
        '
        'Int5VBusPower
        '
        Me.Int5VBusPower.BackColor = System.Drawing.Color.Transparent
        Me.Int5VBusPower.Font = New System.Drawing.Font("Arial", 15.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Int5VBusPower.ForeColor = System.Drawing.Color.Aqua
        Me.Int5VBusPower.Location = New System.Drawing.Point(200, 8)
        Me.Int5VBusPower.Name = "Int5VBusPower"
        Me.Int5VBusPower.Size = New System.Drawing.Size(104, 24)
        Me.Int5VBusPower.TabIndex = 592
        Me.Int5VBusPower.Text = "Power"
        Me.Int5VBusPower.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
        '
        'Label15
        '
        Me.Label15.BackColor = System.Drawing.Color.Transparent
        Me.Label15.Font = New System.Drawing.Font("Arial", 15.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label15.ForeColor = System.Drawing.Color.Aqua
        Me.Label15.Location = New System.Drawing.Point(40, 8)
        Me.Label15.Name = "Label15"
        Me.Label15.Size = New System.Drawing.Size(160, 24)
        Me.Label15.TabIndex = 591
        Me.Label15.Text = "5V Bus Power:"
        Me.Label15.TextAlign = System.Drawing.ContentAlignment.MiddleRight
        '
        'DateTime
        '
        Me.DateTime.BackColor = System.Drawing.Color.Transparent
        Me.DateTime.Cursor = System.Windows.Forms.Cursors.Default
        Me.DateTime.Font = New System.Drawing.Font("Arial", 20.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.DateTime.ForeColor = System.Drawing.Color.Yellow
        Me.DateTime.Location = New System.Drawing.Point(792, 16)
        Me.DateTime.Name = "DateTime"
        Me.DateTime.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.DateTime.Size = New System.Drawing.Size(464, 33)
        Me.DateTime.TabIndex = 593
        Me.DateTime.Text = "Date"
        Me.DateTime.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
        '
        'Label21
        '
        Me.Label21.BackColor = System.Drawing.Color.FromArgb(CType(224, Byte), CType(224, Byte), CType(224, Byte))
        Me.Label21.Location = New System.Drawing.Point(784, 8)
        Me.Label21.Name = "Label21"
        Me.Label21.Size = New System.Drawing.Size(480, 48)
        Me.Label21.TabIndex = 598
        '
        'Label3
        '
        Me.Label3.BackColor = System.Drawing.Color.Aqua
        Me.Label3.Location = New System.Drawing.Point(392, 320)
        Me.Label3.Name = "Label3"
        Me.Label3.Size = New System.Drawing.Size(376, 3)
        Me.Label3.TabIndex = 599
        '
        'NPCPanel
        '
        Me.NPCPanel.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(255, Byte), CType(255, Byte))
        Me.NPCPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.NPCPanel.Controls.Add(Me.NPCLabel)
        Me.NPCPanel.Cursor = System.Windows.Forms.Cursors.Default
        Me.NPCPanel.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.NPCPanel.ForeColor = System.Drawing.SystemColors.ControlText
        Me.NPCPanel.Location = New System.Drawing.Point(768, 303)
        Me.NPCPanel.Name = "NPCPanel"
        Me.NPCPanel.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.NPCPanel.Size = New System.Drawing.Size(256, 40)
        Me.NPCPanel.TabIndex = 600
        Me.NPCPanel.Text = "Load 12"
        '
        'NPCLabel
        '
        Me.NPCLabel.BackColor = System.Drawing.Color.FromArgb(CType(192, Byte), CType(255, Byte), CType(255, Byte))
        Me.NPCLabel.Cursor = System.Windows.Forms.Cursors.Arrow
        Me.NPCLabel.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.NPCLabel.ForeColor = System.Drawing.SystemColors.ControlText
        Me.NPCLabel.Location = New System.Drawing.Point(8, 8)
        Me.NPCLabel.Name = "NPCLabel"
        Me.NPCLabel.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.NPCLabel.Size = New System.Drawing.Size(240, 24)
        Me.NPCLabel.TabIndex = 32
        Me.NPCLabel.Text = "Node Power Controller"
        Me.NPCLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
        '
        'GotIntLoadDataDisplay
        '
        Me.GotIntLoadDataDisplay.AutoSize = True
        Me.GotIntLoadDataDisplay.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
        Me.GotIntLoadDataDisplay.Font = New System.Drawing.Font("Arial", 20.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.GotIntLoadDataDisplay.ForeColor = System.Drawing.Color.Red
        Me.GotIntLoadDataDisplay.Location = New System.Drawing.Point(8, 8)
        Me.GotIntLoadDataDisplay.Name = "GotIntLoadDataDisplay"
        Me.GotIntLoadDataDisplay.Size = New System.Drawing.Size(279, 38)
        Me.GotIntLoadDataDisplay.TabIndex = 601
        Me.GotIntLoadDataDisplay.Text = "Internal Load Status"
        Me.GotIntLoadDataDisplay.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
        '
        'Panel2
        '
        Me.Panel2.Controls.Add(Me.Int5VBusPower)
        Me.Panel2.Controls.Add(Me.Label15)
        Me.Panel2.Location = New System.Drawing.Point(272, 120)
        Me.Panel2.Name = "Panel2"
        Me.Panel2.Size = New System.Drawing.Size(328, 40)
        Me.Panel2.TabIndex = 612
        '
        'Label23
        '
        Me.Label23.BackColor = System.Drawing.Color.Aqua
        Me.Label23.Location = New System.Drawing.Point(264, 112)
        Me.Label23.Name = "Label23"
        Me.Label23.Size = New System.Drawing.Size(344, 56)
        Me.Label23.TabIndex = 611
        '
        'GroupBox1
        '
        Me.GroupBox1.Controls.Add(Me.Label38)
        Me.GroupBox1.Controls.Add(Me.Label37)
        Me.GroupBox1.Controls.Add(Me.Label27)
        Me.GroupBox1.Controls.Add(Me.Label28)
        Me.GroupBox1.Controls.Add(Me.Label24)
        Me.GroupBox1.Controls.Add(Me.Label26)
        Me.GroupBox1.Controls.Add(Me.Label16)
        Me.GroupBox1.Controls.Add(Me.Label6)
        Me.GroupBox1.Font = New System.Drawing.Font("Arial", 14.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.GroupBox1.ForeColor = System.Drawing.Color.FromArgb(CType(192, Byte), CType(255, Byte), CType(255, Byte))
        Me.GroupBox1.Location = New System.Drawing.Point(664, 376)
        Me.GroupBox1.Name = "GroupBox1"
        Me.GroupBox1.Size = New System.Drawing.Size(352, 136)
        Me.GroupBox1.TabIndex = 615
        Me.GroupBox1.TabStop = False
        Me.GroupBox1.Text = "Legend"
        '
        'Label38
        '
        Me.Label38.BackColor = System.Drawing.Color.Transparent
        Me.Label38.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label38.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label38.ForeColor = System.Drawing.Color.Yellow
        Me.Label38.ImageAlign = System.Drawing.ContentAlignment.TopLeft
        Me.Label38.Location = New System.Drawing.Point(96, 32)
        Me.Label38.Name = "Label38"
        Me.Label38.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label38.Size = New System.Drawing.Size(144, 16)
        Me.Label38.TabIndex = 583
        Me.Label38.Text = "5V Bus"
        Me.Label38.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
        '
        'Label37
        '
        Me.Label37.BackColor = System.Drawing.Color.Aqua
        Me.Label37.Location = New System.Drawing.Point(24, 40)
        Me.Label37.Name = "Label37"
        Me.Label37.Size = New System.Drawing.Size(48, 3)
        Me.Label37.TabIndex = 582
        '
        'Label27
        '
        Me.Label27.BackColor = System.Drawing.Color.Transparent
        Me.Label27.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label27.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label27.ForeColor = System.Drawing.Color.Yellow
        Me.Label27.ImageAlign = System.Drawing.ContentAlignment.TopCenter
        Me.Label27.Location = New System.Drawing.Point(96, 104)
        Me.Label27.Name = "Label27"
        Me.Label27.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label27.Size = New System.Drawing.Size(232, 16)
        Me.Label27.TabIndex = 482
        Me.Label27.Text = "Software Over-current Trip"
        Me.Label27.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
        '
        'Label28
        '
        Me.Label28.BackColor = System.Drawing.Color.Gray
        Me.Label28.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.Label28.Cursor = System.Windows.Forms.Cursors.Hand
        Me.Label28.Location = New System.Drawing.Point(40, 104)
        Me.Label28.Name = "Label28"
        Me.Label28.Size = New System.Drawing.Size(17, 17)
        Me.Label28.TabIndex = 481
        '
        'Label24
        '
        Me.Label24.BackColor = System.Drawing.Color.Transparent
        Me.Label24.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label24.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label24.ForeColor = System.Drawing.Color.Yellow
        Me.Label24.ImageAlign = System.Drawing.ContentAlignment.TopCenter
        Me.Label24.Location = New System.Drawing.Point(96, 80)
        Me.Label24.Name = "Label24"
        Me.Label24.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label24.Size = New System.Drawing.Size(144, 16)
        Me.Label24.TabIndex = 480
        Me.Label24.Text = "Switch Closed"
        Me.Label24.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
        '
        'Label26
        '
        Me.Label26.BackColor = System.Drawing.Color.Lime
        Me.Label26.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.Label26.Cursor = System.Windows.Forms.Cursors.Hand
        Me.Label26.Location = New System.Drawing.Point(40, 80)
        Me.Label26.Name = "Label26"
        Me.Label26.Size = New System.Drawing.Size(17, 17)
        Me.Label26.TabIndex = 479
        '
        'Label16
        '
        Me.Label16.BackColor = System.Drawing.Color.Transparent
        Me.Label16.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label16.Font = New System.Drawing.Font("Arial", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label16.ForeColor = System.Drawing.Color.Yellow
        Me.Label16.ImageAlign = System.Drawing.ContentAlignment.TopLeft
        Me.Label16.Location = New System.Drawing.Point(96, 56)
        Me.Label16.Name = "Label16"
        Me.Label16.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label16.Size = New System.Drawing.Size(144, 16)
        Me.Label16.TabIndex = 478
        Me.Label16.Text = "Switch Open"
        Me.Label16.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
        '
        'Label6
        '
        Me.Label6.BackColor = System.Drawing.Color.Red
        Me.Label6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.Label6.Cursor = System.Windows.Forms.Cursors.Hand
        Me.Label6.Location = New System.Drawing.Point(40, 56)
        Me.Label6.Name = "Label6"
        Me.Label6.Size = New System.Drawing.Size(17, 17)
        Me.Label6.TabIndex = 477
        '
        'Label19
        '
        Me.Label19.BackColor = System.Drawing.Color.White
        Me.Label19.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label19.Location = New System.Drawing.Point(656, 368)
        Me.Label19.Name = "Label19"
        Me.Label19.Size = New System.Drawing.Size(368, 152)
        Me.Label19.TabIndex = 616
        '
        'PMACS5Vintload
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.BackColor = System.Drawing.Color.Black
        Me.ClientSize = New System.Drawing.Size(1272, 899)
        Me.Controls.Add(Me.GroupBox1)
        Me.Controls.Add(Me.Label19)
        Me.Controls.Add(Me.Panel2)
        Me.Controls.Add(Me.Label23)
        Me.Controls.Add(Me.GotIntLoadDataDisplay)
        Me.Controls.Add(Me.V_5Int)
        Me.Controls.Add(Me.I_5Int)
        Me.Controls.Add(Me._Load_5IntI_0)
        Me.Controls.Add(Me._Load_5IntI_1)
        Me.Controls.Add(Me.NPCPanel)
        Me.Controls.Add(Me.Label3)
        Me.Controls.Add(Me.DateTime)
        Me.Controls.Add(Me.Label21)
        Me.Controls.Add(Me.Label2)
        Me.Controls.Add(Me.IntConverterC)
        Me.Controls.Add(Me._IntLoad5_0)
        Me.Controls.Add(Me._IntLoad5_1)
        Me.Controls.Add(Me.ConF)
        Me.Controls.Add(Me._Switch5_0)
        Me.Controls.Add(Me._Switch5_1)
        Me.Controls.Add(Me._IntLoad5Switch_0)
        Me.Controls.Add(Me._IntLoad5Switch_1)
        Me.Controls.Add(Me.Line1)
        Me.Controls.Add(Me.Line2)
        Me.Controls.Add(Me.Line3)
        Me.Controls.Add(Me.Line4)
        Me.Controls.Add(Me.Line5)
        Me.Controls.Add(Me.Line10)
        Me.Controls.Add(Me.Line11)
        Me.Controls.Add(Me.Line17)
        Me.Controls.Add(Me.Line18)
        Me.Controls.Add(Me._IntLoad5Config_1)
        Me.Controls.Add(Me._IntLoad5Config_0)
        Me.Cursor = System.Windows.Forms.Cursors.Default
        Me.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Location = New System.Drawing.Point(4, 23)
        Me.Menu = Me.MainMenu1
        Me.Name = "PMACS5Vintload"
        Me.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.StartPosition = System.Windows.Forms.FormStartPosition.WindowsDefaultBounds
        Me.Text = "PMACS 5V Internal Loads"
        Me.WindowState = System.Windows.Forms.FormWindowState.Maximized
        Me._IntLoad5Config_1.ResumeLayout(False)
        Me._IntLoad5Config_0.ResumeLayout(False)
        Me.IntConverterC.ResumeLayout(False)
        Me._IntLoad5_0.ResumeLayout(False)
        Me._IntLoad5_1.ResumeLayout(False)
        CType(Me.I5, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.Int5ILimit, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.Int5V, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.Int5VSwitchConfirm, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.IntLoad5, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.IntLoad5Close, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.IntLoad5Config, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.IntLoad5ILimit, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.IntLoad5Send, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.IntLoad5Switch, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.IntLoad5SwitchClose, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.IntLoad5SwitchOpen, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.IntLoad5V, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.IntLoad5VSwitch, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.Label1, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.LabelIntLoad5, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.LoadID5Int, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.Load_5IntI, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.Switch5, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.SwitchClose5Int, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.SwitchOpen5Int, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.V5, System.ComponentModel.ISupportInitialize).EndInit()
        Me.NPCPanel.ResumeLayout(False)
        Me.Panel2.ResumeLayout(False)
        Me.GroupBox1.ResumeLayout(False)
        Me.ResumeLayout(False)

    End Sub
#End Region
#Region "Upgrade Support "
    Private Shared m_vb6FormDefInstance As PMACS5Vintload
    Private Shared m_InitializingDefInstance As Boolean
    Public Shared Property DefInstance() As PMACS5Vintload
        Get
            If m_vb6FormDefInstance Is Nothing OrElse m_vb6FormDefInstance.IsDisposed Then
                m_InitializingDefInstance = True
                m_vb6FormDefInstance = New PMACS5Vintload
                m_InitializingDefInstance = False
            End If
            DefInstance = m_vb6FormDefInstance
        End Get
        Set(ByVal Value As PMACS5Vintload)
            m_vb6FormDefInstance = Value
        End Set
    End Property
#End Region
#Region "Load form"
    '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    'Load the form for 5V internal load and initialize it
    '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    Private Sub PMACS5Vintload_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
        Dim i As Short
        Dim X As Object

        If LoginType = 2 Then
            For i = 0 To 1
                'disable controls on PMACS5Vintload form
                LabelIntLoad5(i).Enabled = False
                IntLoad5(i).Enabled = False
                Switch5(i).Enabled = False
            Next
            mnuDefault.Enabled = False
        End If
        If MVConverters(0).ConverterStatus = 1 Or MVConverters(1).ConverterStatus = 1 Then
            ConF.ForeColor = System.Drawing.Color.Lime
        Else
            ConF.ForeColor = System.Drawing.Color.Red
        End If
    End Sub
#End Region

#Region "Double click 5V internal load"
    ''''''''''''''''''''''''''''''''''''''''''''''''''''''
    'Doubel click the 5V internal load box will
    'bring up the loaf configuration frame
    ''''''''''''''''''''''''''''''''''''''''''''''''''''''
    Private Sub IntLoad5_DoubleClick(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles IntLoad5.DoubleClick, IntLoad5.Click
        Dim Index As Short = IntLoad5.GetIndex(eventSender)
        Dim X As Short

        'Disable Timer1
        'PMACSstartup.DefInstance.Timer1.Enabled = False
        activeFlag = True
        'close all load configuration frame that's already opened
        For X = 0 To 1
            IntLoad5Config(X).Visible = False
        Next X

        'initialize the configuration frame with load info
        'X = IntLoad5Initialize(IntLoads5(Index))

        'show the load configuration frame
        IntLoad5Config(Index).Visible = True
        LoadID5Int(Index).Focus()
    End Sub

    Private Sub LabelIntLoad5_DoubleClick(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles LabelIntLoad5.DoubleClick, LabelIntLoad5.Click
        Dim Index As Short = LabelIntLoad5.GetIndex(eventSender)
        Dim X As Short

        activeFlag = True
        'close all load configuration frame that's already opened
        For X = 0 To 1
            IntLoad5Config(X).Visible = False
        Next X

        'initialize the configuration frame with load info
        'X = IntLoad5Initialize(IntLoads5(Index))

        'show the load configuration frame
        IntLoad5Config(Index).Visible = True
        LoadID5Int(Index).Focus()
    End Sub
#End Region

#Region "Click cancel load configuration"
    '''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    'User click close button on load configuration frame
    'no changes would be made
    '''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    Private Sub IntLoad5Close_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles IntLoad5Close.Click
        Dim Index As Short = IntLoad5Close.GetIndex(eventSender)
        Dim mstrName As Object
        Dim response As Short

        'confirm with the user that no changes would be made
        'response = MsgBox("Close Internal Load Configuration without making changes?", MsgBoxStyle.Exclamation + MsgBoxStyle.YesNo, "" & mstrName)
        'If response = MsgBoxResult.Yes Then
        IntLoad5Config(Index).Visible = False
        'End If
        'Enable Timer1
        activeFlag = False

    End Sub
#End Region

#Region "Click send load configuration"
    ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    'User click the send button on load configuration frame
    'Load connection and current limit seeting will be updated
    ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    Private Sub IntLoad5Send_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles IntLoad5Send.Click
        Dim Index As Short = IntLoad5Send.GetIndex(eventSender)
        Dim Y As Integer
        Dim X As Object
        Dim mstrName As Object
        Dim myPrompt As String
        Dim response As Short
        Dim myString As String
        Dim IndexString As String
        Dim result As String
        Dim ws As New edu.washington.apl.pmacs.load_service  'work variable.
        Dim myIntLoadUpdateType5 As New edu.washington.apl.pmacs.loadUpdateType
        'Dim myIntLoadListType5 As edu.washington.apl.pmacs.loadListType 'comment out on 4/27/05 due to change of setload()

        If Not GotIntLoadData Then
            MsgBox("Cannot commuicate with Server at this moment. Try again later.")
            IntLoad5Config(Index).Visible = False
            Exit Sub
        End If

        IndexString = CStr(Index + 1)
        myString = "/1/internal/" + IndexString

        'Confirm with the user that he wants to send in the changes in load configuration
        response = MsgBox("Change Load Configuration for 5V Internal Load " + CStr(IntLoads5(Index).Loadindex) + "?", MsgBoxStyle.Question + MsgBoxStyle.YesNo, "Confirm Operation" & mstrName)
        'Change the color of the switches
        'If switch is opened, color is white
        'load state = 0 (off)
        'If switch is closed, color is red
        'load state = 1 (on)
        If response = MsgBoxResult.Yes Then
            If IsNumeric(Int5ILimit(Index).Text) Then
                If CDbl(Int5ILimit(Index).Text) >= 0 Then
                    IntLoad5Config(Index).Visible = False
                    'Set the cursor to be a hourglass
                    Cursor.Current = System.Windows.Forms.Cursors.WaitCursor
                    If IntLoad5SwitchOpen(Index).Checked = True Then
                        'IntLoads5(Index).Load5S = False
                        'Switch5(Index).BackColor = System.Drawing.Color.White
                        'MsgBox("The load is being disconnected!")
                        IntLoads5(Index).LoadState = 0
                    ElseIf IntLoad5SwitchClose(Index).Checked = True Then
                        'IntLoads5(Index).Load5S = True
                        'Switch5(Index).BackColor = System.Drawing.ColorTranslator.FromOle(RGB(255, 0, 0))
                        'MsgBox("The load is being connected!")
                        IntLoads5(Index).LoadState = 1
                    End If

                    'Update the current limit with user input value
                    IntLoads5(Index).LoadCurrentLimit = CDbl(Int5ILimit(Index).Text)
                    IntLoads5(Index).LoadName = LoadID5Int(Index).Text

                    myIntLoadUpdateType5.current_limit = IntLoads5(Index).LoadCurrentLimit * 1000
                    myIntLoadUpdateType5.name = IntLoads5(Index).LoadName
                    myIntLoadUpdateType5.state = IntLoads5(Index).LoadState

                    'myIntLoadListType5 = ws.setLoad(myString, myIntLoadUpdateType5) 'comment out on 4/27/05 due to change of setload()
                    Try
                        result = ws.setLoad(myString, myIntLoadUpdateType5)
                    Catch ex As Exception
                        Beep()
                        myPrompt = "Error in sending SOAP Data over network." + vbCrLf + vbCrLf
                        myPrompt = myPrompt + "Method Called: setLoad()" + vbCrLf
                        myPrompt = myPrompt + "Possible reasons include the following:" + vbCrLf
                        myPrompt = myPrompt + "1. The Node Power Controller could be offline." + vbCrLf
                        myPrompt = myPrompt + "2. The PMACS Server could be busy." + vbCrLf
                        myPrompt = myPrompt + "3. Network cable could be disconnected." + vbCrLf + vbCrLf
                        myPrompt = myPrompt + "Exact text of exception error information is as follows:" + vbCrLf
                        myPrompt = myPrompt + ex.ToString()
                        ShowMessage(myPrompt)
                        'response = MsgBox(myPrompt, 0, "Error sending Internal Load configuration")
                    End Try
                    'X = LoadData(Y)

                    'initialize the load configuration fram with new settings
                    'X = IntLoad5Initialize(IntLoads5(Index))
                    'MsgBox("Load Configuration Changed!")
                    'set the cursor back to an arrow
                    Cursor.Current = System.Windows.Forms.Cursors.Arrow
                    activeFlag = False
                Else
                    MsgBox("Please enter an appropriate current limit!", MsgBoxStyle.Exclamation, "Error" & mstrName)
                End If
            Else
                MsgBox("Please enter an appropriate current limit!", MsgBoxStyle.Exclamation, "Error" & mstrName)
            End If
        Else
            'if user cancels the action
            IntLoad5Config(Index).Visible = False
            activeFlag = False
            'MsgBox("No Changes Made!")
        End If
        'Enable Timer1
        'PMACSstartup.DefInstance.Timer1.Enabled = True
    End Sub
#End Region

#Region "Disconnect 5V internal loads"
    ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    'When the user click on the Default button, PMACS will restore
    'all settings to its deafault state.
    'All current limit = 1A
    'All switches status = open
    ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

    Private Sub mnuDefault_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuDefault.Click
        Dim i As Integer
        Dim mstrName As Object
        Dim response As Short
        Dim X As Integer
        Dim Y As Integer

        If Not GotIntLoadData Then
            MsgBox("Cannot commuicate with Server at this moment. Try again later.")
            Exit Sub
        End If

        'confirm with the user if he/she wants to restore default system data
        response = MsgBox("Disconnect all 5V Internal Loads?", MsgBoxStyle.Exclamation + MsgBoxStyle.YesNo, "Confirm Operation" & mstrName)
        'If user confirms with the restore defaultaction, call the function
        'DefaultData to set data back to default

        If response = MsgBoxResult.Yes Then
            Y = 3
            X = DefaultData(Y)
        End If
    End Sub
#End Region

#Region "Double Click on switch for 5V internal load"
    'When user double click on the switch, the GUI will ask
    'the operator is he wants to change the status of the switch
    Private Sub Switch5_DoubleClick(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Switch5.DoubleClick, Switch5.Click
        Dim Index As Short = Switch5.GetIndex(eventSender)
        Dim X As Short
        Dim Y As Integer
        Dim Z As Object
        Dim response As Short
        Dim myPrompt As String
        Dim mstrName As Object
        Dim myString As String
        Dim IndexString As String
        Dim result As String
        Dim ws As New edu.washington.apl.pmacs.load_service  'work variable.
        Dim myIntLoadUpdateType5 As New edu.washington.apl.pmacs.loadUpdateType
        'Dim myIntLoadListType5 As edu.washington.apl.pmacs.loadListType 'comment out on 4/27/05 due to change of setload()

        If Not GotIntLoadData Then
            MsgBox("Cannot commuicate with Server at this moment. Try again later.")
            Exit Sub
        End If

        IndexString = CStr(Index + 1)
        myString = "/1/internal/" + IndexString
        mstrName = "Confirm operation"

        'Disable Timer1
        'PMACSstartup.DefInstance.Timer1.Enabled = False
        activeFlag = True

        'close all load configuration frame that's already opened
        For X = 0 To 1
            IntLoad5Config(X).Visible = False
        Next X

        If IntLoads5(Index).LoadState = 1 Then 'Load is ON
            'Comfirm with User
            response = MsgBox("Open the Switch for 5V internal load " + "'" + IntLoads5(Index).LoadName + "'?", MsgBoxStyle.Question + MsgBoxStyle.YesNo, "" & mstrName)
            'If User confirms the change
            If response = MsgBoxResult.Yes Then
                'Set the cursor to be a hourglass
                Cursor.Current = System.Windows.Forms.Cursors.WaitCursor
                'Set state of load to OFF (0)
                IntLoads5(Index).LoadState = 0
                myIntLoadUpdateType5.state = IntLoads5(Index).LoadState
                myIntLoadUpdateType5.current_limit = IntLoads5(Index).LoadCurrentLimit * 1000
                'Use setLoad() to change the state of the load
                'myIntLoadListType5 = ws.setLoad(myString, myIntLoadUpdateType5) 'comment out on 4/27/05 due to change of setload()
                Try
                    result = ws.setLoad(myString, myIntLoadUpdateType5)
                Catch ex As Exception
                    Beep()
                    myPrompt = "Error in sending SOAP Data over network." + vbCrLf + vbCrLf
                    myPrompt = myPrompt + "Method Called: setLoad()" + vbCrLf
                    myPrompt = myPrompt + "Possible reasons include the following:" + vbCrLf
                    myPrompt = myPrompt + "1. The Node Power Controller could be offline." + vbCrLf
                    myPrompt = myPrompt + "2. The PMACS Server could be busy." + vbCrLf
                    myPrompt = myPrompt + "3. Network cable could be disconnected." + vbCrLf + vbCrLf
                    myPrompt = myPrompt + "Exact text of exception error information is as follows:" + vbCrLf
                    myPrompt = myPrompt + ex.ToString()
                    ShowMessage(myPrompt)
                End Try
                'Z = LoadData(Y)

                'initialize the load configuration fram with new settings
                'Z = IntLoad5Initialize(IntLoads5(Index))
                'MsgBox("The load has been disconnected!")
                activeFlag = False
                'Set the cursor back to an arrow
                Cursor.Current = System.Windows.Forms.Cursors.Arrow
            Else
                'if user cancels the action
                'MsgBox("No Changes Made!")
                activeFlag = False
            End If
        ElseIf IntLoads5(Index).LoadState = 0 Then 'Load is OFF
            'Comfirm with User
            response = MsgBox("Close the Switch for 5V internal load " + "'" + IntLoads5(Index).LoadName + "'?", MsgBoxStyle.Question + MsgBoxStyle.YesNo, "" & mstrName)
            'If User confirms the change
            If response = MsgBoxResult.Yes Then
                'Set the cursor to be a hourglass
                Cursor.Current = System.Windows.Forms.Cursors.WaitCursor
                'Set state of load to ON (1)
                IntLoads5(Index).LoadState = 1
                myIntLoadUpdateType5.state = IntLoads5(Index).LoadState
                myIntLoadUpdateType5.current_limit = IntLoads5(Index).LoadCurrentLimit * 1000
                'Use setLoad() to change the state of the load
                'myIntLoadListType5 = ws.setLoad(myString, myIntLoadUpdateType5) 'comment out on 4/27/05 due to change of setload()
                Try
                    result = ws.setLoad(myString, myIntLoadUpdateType5)
                Catch ex As Exception
                    Beep()
                    myPrompt = "Error in sending SOAP Data over network." + vbCrLf + vbCrLf
                    myPrompt = myPrompt + "Method Called: setLoad()" + vbCrLf
                    myPrompt = myPrompt + "Possible reasons include the following:" + vbCrLf
                    myPrompt = myPrompt + "1. Server could be offline." + vbCrLf
                    myPrompt = myPrompt + "2. Server could be busy." + vbCrLf
                    myPrompt = myPrompt + "3. Network cable could be disconnected." + vbCrLf + vbCrLf
                    myPrompt = myPrompt + "Exact text of exception error information is as follows:" + vbCrLf
                    myPrompt = myPrompt + ex.ToString()
                    ShowMessage(myPrompt)
                End Try
                'Z = LoadData(Y)

                'initialize the load configuration fram with new settings
                'Z = IntLoad5Initialize(IntLoads5(Index))
                'MsgBox("The load has been connected!")
                activeFlag = False
                'Set the cursor back to an arrow
                Cursor.Current = System.Windows.Forms.Cursors.Arrow
            Else
                'if user cancels the action
                'MsgBox("No Changes Made!")
                activeFlag = False
            End If
        End If
    End Sub
#End Region

End Class