Esempio n. 1
0
        public void ChangeLanguage()
        {
            try
            {
                string[] m_def_en = new string[] { "Clear",
                                                   "Upload",
                                                   "Export",
                                                   "Stop Read",
                                                   "Start Read" };

                string[] m_def_cn = new string[] { "清除", "上传", "导出", "停止读卡", "启动读卡" };

                string[] m_def_tw = new string[] { "清除", "上傳", "導出", "停止讀卡", "啟動讀卡" };

                string[] MainValue = IniSettings.LoadLanguage(@"passive/readdemo", m_def_en, m_def_cn, m_def_tw);
                int      index     = 0;

                btnClear.Text  = MainValue[index++] + "(&C)";
                btnUpLoad.Text = MainValue[index++] + "(&U)";
                btnExport.Text = MainValue[index++] + "(&E)";
                if (IsStart)
                {
                    btnStart.Text = MainValue[index++] + "(&S)";
                    index++;
                }
                else
                {
                    index++;
                    btnStart.Text = MainValue[index++] + "(&S)";
                }
            }
            catch { }

            cdgvShow.ChangeLanguage();
        }
Esempio n. 2
0
        public void ChangeLanguage()
        {
            try
            {
                string[] m_def_en = new string[] { " READ DEMO ",
                                                   " BASE SETTINGS ",
                                                   " SENIOR SETTINGS ",
                                                   " ISO18000-6B READ&&WRITE ",
                                                   " EPC(GEN 2) READ&&WRITE ",
                                                   " WIFI SETTINGS " };

                string[] m_def_cn = new string[] { "读卡演示", "基本参数", "高级参数", "ISO18000-6B 读写操作", "EPC(GEN 2) 读写操作", "WIFI参数" };

                string[] m_def_tw = new string[] { "讀卡演示", "基本參數", "高級參數", "ISO18000-6B 讀寫操作", "EPC(GEN 2) 讀寫操作", "WIFI參數" };

                string[] MainValue = IniSettings.LoadLanguage(@"passive/passive", m_def_en, m_def_cn, m_def_tw);
                int      index     = 0;

                tabReadDemo.Text       = MainValue[index++];
                tabBaseSettings.Text   = MainValue[index++];
                tabSeniorSettings.Text = MainValue[index++];
                tabWriteISO.Text       = MainValue[index++];
                tabWriteEPC.Text       = MainValue[index++];
                tabWifiSettings.Text   = MainValue[index++];
            }
            catch { }

            ucPBaseSettings1.ChangeLanguage();
            ucPSeniorSettings1.ChangeLanguage();
            ucPReadDemo1.ChangeLanguage();
            ucPWriteISO1.ChangeLanguage();
            ucPWriteEPC1.ChangeLanguage();
            ucWifiSettings1.ChangeLanguage();
        }
Esempio n. 3
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            if (ucPassive1 != null)
            {
                ucPassive1        = new ucPassive();
                ucPassive1.Parent = pnlInformation;
                ucPassive1.Dock   = DockStyle.Fill;
            }
            IniSettings.LoadLanguage();
            IniSettings.LngCount = 2;
            UInt16 languageid = Languages.UserDefaultUILanguage;

            switch (languageid)
            {
            case 0x0804:
                LoadLanguage(1);
                break;

            case 0x0C04:
            case 0x0404:
                LoadLanguage(2);
                break;

            default:
                LoadLanguage(0);
                break;
            }

            SystemPub.ADRcp = new PassiveRcp();
            SystemPub.ADRcp.RcpLogEventReceived += RcpLogEventReceived;
            SystemPub.ADRcp.RxRspParsed         += RxRspEventReceived;
        }
Esempio n. 4
0
        public void ChangeLanguage()
        {
            string[] m_def_en = new string[] { "No.", "Ant", "Address", "Hex/Dec/WG", "Length", "Hex Card", "Last Time", "Repeat Count", "Mult Count", "Div Ant", "Div Address", "Div Alarm", "Count", "Sum" };
            string[] m_def_cn = new string[] { "序号", "天线", "地址", "16进制/10进制/标准韦根", "长度", "十六进制", "读卡时间", "读卡次数", "读数量", "区分天线", "区分地址", "区分报警", "数量", "合计" };
            string[] m_def_tw = new string[] { "序號", "天線", "地址", "16進制/10進制/標準維根", "長度", "十六進制", "讀卡時間", "讀卡次數", "數量", "區分天線", "區分地址", "區分報警", "數量", "合計" };

            string[] MainValue = IniSettings.LoadLanguage("cardview", m_def_en, m_def_cn, m_def_tw);
            int      index     = 0;

            colID.HeaderText         = MainValue[index++];
            colAnt.HeaderText        = MainValue[index++];
            colAddress.HeaderText    = MainValue[index++];
            colDecCard.HeaderText    = MainValue[index++];
            colHexByteSum.HeaderText = MainValue[index++];
            colHexCard.HeaderText    = MainValue[index++];
            colTime.HeaderText       = MainValue[index++];
            colCount.HeaderText      = MainValue[index++];

            lblReadCount.Text = MainValue[index++];
            chkDivAnt.Text    = MainValue[index++];
            chkDivAddr.Text   = MainValue[index++];
            chkDivAlarm.Text  = MainValue[index++];
            lblCount.Text     = MainValue[index++];
            lblSum.Text       = MainValue[index++];
        }
Esempio n. 5
0
        /// <summary>
        /// 加载界面语言选择
        /// </summary>
        public void LoadCommLanguage()
        {
            try
            {
                string[] m_def_en = new string[] { "Configuration",
                                                   "Serial Interface", "Net Interface", "USB Interface",
                                                   "PortName", "BaudRate", "Remote IP", "Remote Port" };

                string[] m_def_cn = new string[] { "通讯参数配置",
                                                   "串口通讯(RS232/RS485)", "网络通讯(TCP/WIFI)", "USB通讯(虚拟键盘/编程模式)",
                                                   "串口选择", "波特率", "远程IP地址", "远程IP端口" };

                string[] m_def_tw = new string[] { "通訊參數設定",
                                                   "串口通訊(RS232/RS485)", "網絡通訊(TCP/WIFI)", "USB通訊(虛擬鍵盤/編程模式)",
                                                   "串行埠選擇", "串行傳輸速率", "遠程IP地址", "遠程IP埠" };

                string[] MainValue = IniSettings.LoadLanguage("sioconfig", m_def_en, m_def_cn, m_def_tw);
                int      index     = 0;

                this.Text    = IniSettings.GetLanguageString("Select the device connection mode", "设备连接方式选择");
                grbComm.Text = MainValue[index++];

                rdbSerial.Text = MainValue[index++];
                rdbNet.Text    = MainValue[index++];
                rdbUsb.Text    = MainValue[index++];
                rdbSerial.Font = rdbNet.Font = rdbUsb.Font = new Font(IniSettings.AppsFont.FontFamily, 9, FontStyle.Bold);
                grbSerial.Text = rdbSerial.Text;
                grbNet.Text    = rdbNet.Text;
                grbUsb.Text    = rdbUsb.Text;

                lblPortName.Text = MainValue[index++];
                lblBaudRate.Text = MainValue[index++];

                lblRemoteIP.Text   = MainValue[index++];
                lblRemotePort.Text = MainValue[index++];
            }
            catch { }
        }
Esempio n. 6
0
        public void ChangeLanguage()
        {
            try
            {
                string[] m_def_en = new string[] { "ISO18000-6B Read",
                                                   "Address:", "Length:", "(Length not more 64)", "Data:",
                                                   "ISO18000-6B Write",
                                                   "Address:", "Length:", "(Address start 18,Length not more 64)", "Data:",
                                                   "ISO18000-6B Identify", "Card No:", "Identify", "Read", "Write" };

                string[] m_def_cn = new string[] { "ISO18000-6B 读数据区", "地址:", "长度:", "(长度不大于64)", "数据:", "ISO18000-6B 写数据区", "地址:", "长度:", "(写地址从18开始,长度不大于64)", "数据:", "ISO18000-6B 卡号识别区", "卡号:", "识别", "读卡", "写卡" };

                string[] m_def_tw = new string[] { "ISO18000-6B 讀數據區", "地址:", "長度:", "(長度不大于64)", "數據:", "ISO18000-6B 寫數據區", "地址:", "長度:", "(寫地址從18開始.長度不能大于64)", "數據:", "ISO18000-6B 卡號識別區", "卡號:", "識別", "讀卡", "寫卡" };

                string[] MainValue = IniSettings.LoadLanguage(@"passive/iso6b", m_def_en, m_def_cn, m_def_tw);
                int      index     = 0;

                grbRead.Text        = MainValue[index++];
                lblReadAddress.Text = MainValue[index++];
                lblReadLength.Text  = MainValue[index++];
                lblReadMark.Text    = MainValue[index++];
                lblReadData.Text    = MainValue[index++];

                grbWrite.Text        = MainValue[index++];
                lblWriteAddress.Text = MainValue[index++];
                lblWriteLength.Text  = MainValue[index++];
                lblWriteMark.Text    = MainValue[index++];
                lblWriteData.Text    = MainValue[index++];

                grbIdentify.Text = MainValue[index++];
                lblCard.Text     = MainValue[index++];

                btnIdentify.Text = MainValue[index++] + "(&E)";
                btnRead.Text     = MainValue[index++] + "(&A)";
                btnWrite.Text    = MainValue[index++] + "(&R)";
            }
            catch { }
        }
Esempio n. 7
0
        public void ChangeLanguage()
        {
            try
            {
                string[] m_def_en = new string[] { "EPC(GEN 2) Read",
                                                   "Block:", "Address:", "Length:", "(Length not more 16)", "Data:",
                                                   "EPC(GEN 2) Write",
                                                   "Block:", "Address:", "Length:", "(Length not more 16)", "Data:",
                                                   "EPC(GEN 2) Identify", "Card No:",
                                                   "Identify", "Read", "Write",

                                                   "Quick Write Card Zone(Weigand Card)Max 4 Byte",
                                                   "Card Type:", "Card Position:", "Auto Add 1", "Auto Encrypt",
                                                   "EPC(GEN 2)Write Card",
                                                   "Current Read Num:", "Be Written Num:", "Write Num:", "Dec", "Hex", "WG",
                                                   "Read Tag", "Write Tag", "Decrease 1", "Add 1",
                                                   "Auto Hex" };

                string[] m_def_cn = new string[] { "EPC(GEN 2) 读数据区", "分区选择:", "地址:", "长度:", "(长度不大于16)", "数据:", "EPC(GEN 2) 写数据区", "分区选择:", "地址:", "长度:", "(长度不大于16)", "数据:", "EPC(GEN 2) 卡号识别区", "卡号:", "识别", "读卡", "写卡", "快速写卡区(韦根卡号)最大4字节", "卡号类型:", "写入位置:", "是否自动加1", "是否自动加密", "EPC(GEN 2)写卡", "当前读取卡号:", "已写入卡号:", "待写入卡号:", "十进制", "十六进制", "韦根8位", "读取卡号", "写入卡号", "卡号减 1", "卡号加 1", "是否16进制自加" };

                string[] m_def_tw = new string[] { "EPC(GEN 2) 讀數據區", "分區選擇:", "地址:", "長度:", "(長度不大于16)", "數據:", "EPC(GEN 2) 寫數據區", "分區選擇:", "地址:", "長度:", "(長度不大于16)", "數據:", "EPC(GEN 2) 卡號識別區", "卡號:", "識別", "讀卡", "寫卡", "快速寫卡區(維根卡號)最大4字節", "卡號類型:", "寫入位置:", "是否自動加1", "是否自動加密", "EPC(GEN 2)寫卡", "當前讀取卡號:", "己寫入卡號:", "待寫入卡號:", "十進制", "十六進制", "維根8位", "讀取卡號", "寫入卡號", "卡號减 1", "卡號加 1", "是否16進制自加" };

                string[] MainValue = IniSettings.LoadLanguage(@"passive/iso6c", m_def_en, m_def_cn, m_def_tw);
                int      index     = 0;

                grbRead.Text        = MainValue[index++];
                lblReadBlock.Text   = MainValue[index++];
                lblReadAddress.Text = MainValue[index++];
                lblReadLength.Text  = MainValue[index++];
                lblReadMark.Text    = MainValue[index++];
                lblReadData.Text    = MainValue[index++];

                grbWrite.Text        = MainValue[index++];
                lblWriteBlock.Text   = MainValue[index++];
                lblWriteAddress.Text = MainValue[index++];
                lblWriteLength.Text  = MainValue[index++];
                lblWriteMark.Text    = MainValue[index++];
                lblWriteData.Text    = MainValue[index++];

                grbIdentify.Text = MainValue[index++];
                lblCard.Text     = MainValue[index++];


                btnIdentify.Text = MainValue[index++] + "(&E)";
                btnRead.Text     = MainValue[index++] + "(&A)";
                btnWrite.Text    = MainValue[index++] + "(&R)";

                #region ---Quick Write card---
                grbQuickWrite.Text = MainValue[index++];
                lblWiegand.Text    = MainValue[index++];
                lblPosition.Text   = MainValue[index++];
                chkAdd.Text        = MainValue[index++];
                chkIsEncrypt.Text  = MainValue[index++];

                grbWrite.Text     = MainValue[index++];
                lblReadCard.Text  = MainValue[index++];
                lblWriteCard.Text = MainValue[index++];

                lblWriteCardNO.Text    = MainValue[index++];
                lblWriteCardNODec.Text = MainValue[index++];
                lblWriteCardNOHex.Text = MainValue[index++];
                lblWriteCardNOWG.Text  = MainValue[index++];

                btnReadTag.Text  = MainValue[index++] + "(F9)";
                btnWriteTag.Text = MainValue[index++] + "(F12)";
                btnDec.Text      = MainValue[index++];
                btnAdd.Text      = MainValue[index++];

                chkAddHex.Text = MainValue[index++];
                #endregion
            }
            catch { }
        }
Esempio n. 8
0
        public void ChangeLanguage()
        {
            int intSelectItem = 0;

            try
            {
                string[] m_def_en = new string[] { "Wiegand Parameters Input Zone",
                                                   "Byte Offset:", "Pulse Width:", "Out Interval:", "Pulse Period:",

                                                   "Basic Parameters Input Zone",
                                                   "Work Mode:", "Command", "Active", "Passive",
                                                   "Output Mode:", "Read Interval:", "Power Size:",
                                                   "Trigger:", "Close", "High Trigger", "Low Trigger",
                                                   "Same ID interval:",
                                                   "Buzzer:", "DisEnable", "Enabled",
                                                   "Card Type:", "ISO18000-6B", "EPC(GEN 2)Single-Tag", "EPC(GEN 2)Multi-Tag", "EPC(GEN 2)Multi-Data", "ISO18000-6B + EPC(GEN 2)",

                                                   "Senior Parameters Input Zone",
                                                   "Antenna:", "ANT 1", "ANT 2", "ANT 3", "ANT 4",
                                                   "Encrypt authorized:", "Do not use unless customized reader!", "Encrypt:", "DisEnable", "Enabled",
                                                   "Password:"******"Other Memory:", "Start Address:", "Length:", "Max Tags:",

                                                   "Freq Parameters Input Zone",
                                                   "Hopping Enabled:", "DisEnable", "Enabled",
                                                   "China", "America", "Europe", "Fixed Freq:", "Hopping Value:",

                                                   "OutPut Parameters Input Zone",
                                                   "Out Type:", "Out Len:", "Is Key Enter",

                                                   "Get Para", "Set Para", "Default All" };

                string[] m_def_cn = new string[] { "韦根参数输入区", "数据偏移:", "脉冲宽度:", "输出周期:", "脉冲周期:", "基本参数输入区", "工作模式:", "应答方式", "主动方式", "被动方式", "通讯模式:", "读卡周期:", "功率大小:", "外部触发方式:", "关闭", "高电压触发", "低电压触发", "相同ID输出间隔:", "嗡鸣器:", "禁止", "使能", "读卡类别:", "ISO18000-6B标签", "EPC(GEN 2)单标签", "EPC(GEN 2)多标签", "EPC(GEN 2)单标签-多区域数据", "ISO18000-6B标签 + EPC(GEN 2)标签", "高级参数输入区", "天线个数:", "天线 1", "天线 2", "天线 3", "天线 4", "加密授权:", "非定制读卡器慎用该功能!", "加密使能:", "禁止", "使能", "密码:", "其他区域卡号:", "起始地址:", "长度:", "最大读卡数量:", "跳频参数输入区", "跳频使能:", "禁止", "使能", "中国", "美标", "欧标", "定频值:", "跳频值:", "输出数据参数输入区", "输出类型:", "输出长度:", "是否带回车符", "获取参数", "设置参数", "默认所有参数" };
                string[] m_def_tw = new string[] { "維根參數輸入區", "數據偏移:", "脈衝寬度:", "輸出周期:", "脈衝周期:", "基本參數輸入區", "工作模式:", "應答方式", "主動方式", "被動方式", "通訊模式:", "讀卡周期:", "功率大小:", "外部觸發方式:", "關閉", "高電壓觸發", "低電壓觸發", "相同ID輸出間隔:", "蜂嗚器:", "禁止", "使用", "讀卡類別:", "ISO18000-6B標簽", "EPC(GEN 2)單標簽", "EPC(GEN 2)多標簽", "EPC(GEN 2)單標簽-多區域數據", "ISO18000-6B標簽 + EPC(GEN 2)標簽", "高級參數輸入區", "天線個數:", "天線 1", "天線 2", "天線 3", "天線 4", "加密授權:", "非定制讀卡器慎用該功能!", "加密使用:", "禁止", "使用", "密碼:", "其他區域卡號:", "起始地址:", "長度:", "最大讀卡數量:", "跳頻參數輸入區", "跳頻使用:", "禁止", "使用", "中國", "美規", "歐規", "定頻值:", "跳頻值:", "輸出數據參數輸入區", "輸出類型:", "輸出長度:", "是否帶Enter", "獲取參數", "設置參數", "默認所有參數" };

                string[] MainValue = IniSettings.LoadLanguage(@"passive/basesettings", m_def_en, m_def_cn, m_def_tw);
                int      index     = 0;

                #region ---Wiegand---
                grbWiegand.Text     = MainValue[index++];
                lblByteOffset.Text  = MainValue[index++];
                lblPulseWidth.Text  = MainValue[index++];
                lblOutInterval.Text = MainValue[index++];
                lblPulsePeriod.Text = MainValue[index++];
                #endregion

                #region ---Basic Para---
                grbParaB.Text    = MainValue[index++];
                lblWorkMode.Text = MainValue[index++];
                intSelectItem    = cmbWorkMode.SelectedIndex;
                cmbWorkMode.Items.Clear();
                cmbWorkMode.Items.Add(MainValue[index++]);
                cmbWorkMode.Items.Add(MainValue[index++]);
                cmbWorkMode.Items.Add(MainValue[index++]);
                cmbWorkMode.SelectedIndex = intSelectItem;

                lblOutputMode.Text   = MainValue[index++];
                lblReadInterval.Text = MainValue[index++];
                lblPowerSize.Text    = MainValue[index++];
                lblTrigger.Text      = MainValue[index++];
                intSelectItem        = cmbTrigger.SelectedIndex;
                cmbTrigger.Items.Clear();
                cmbTrigger.Items.Add(MainValue[index++]);
                cmbTrigger.Items.Add(MainValue[index++]);
                cmbTrigger.Items.Add(MainValue[index++]);
                cmbTrigger.SelectedIndex = intSelectItem;

                lblSameIDinterval.Text = MainValue[index++];
                lblBuzzer.Text         = MainValue[index++];
                intSelectItem          = cmbBuzzer.SelectedIndex;
                cmbBuzzer.Items.Clear();
                cmbBuzzer.Items.Add(MainValue[index++]);
                cmbBuzzer.Items.Add(MainValue[index++]);
                cmbBuzzer.SelectedIndex = intSelectItem;

                lblCardType.Text = MainValue[index++];
                intSelectItem    = cmbCardType.SelectedIndex;
                cmbCardType.Items.Clear();
                cmbCardType.Items.Add(MainValue[index++]);
                cmbCardType.Items.Add(MainValue[index++]);
                cmbCardType.Items.Add(MainValue[index++]);
                cmbCardType.Items.Add(MainValue[index++]);
                cmbCardType.Items.Add(MainValue[index++]);
                cmbCardType.SelectedIndex = intSelectItem;
                #endregion

                #region ---Senior Para---
                grbSenior.Text  = MainValue[index++];
                lblAntenna.Text = MainValue[index++];

                chkAntenna1.Text = MainValue[index++];
                chkAntenna2.Text = MainValue[index++];
                chkAntenna3.Text = MainValue[index++];
                chkAntenna4.Text = MainValue[index++];

                lblChangePwd.Text       = MainValue[index++];
                lblChangePwdSymbol.Text = MainValue[index++];
                lblEncrypt.Text         = MainValue[index++];
                intSelectItem           = cmbEncrypt.SelectedIndex;
                cmbEncrypt.Items.Clear();
                cmbEncrypt.Items.Add(MainValue[index++]);
                cmbEncrypt.Items.Add(MainValue[index++]);
                cmbEncrypt.SelectedIndex = intSelectItem;

                lblPassword.Text     = MainValue[index++];
                lblMemory.Text       = MainValue[index++];
                lblStartAddress.Text = MainValue[index++];
                lblLength.Text       = MainValue[index++];
                lblMaxTag.Text       = MainValue[index++];
                #endregion

                #region ---Hopping---
                grbHopping.Text     = MainValue[index++];
                lblFreqHopping.Text = MainValue[index++];
                intSelectItem       = cmbFreqHopping.SelectedIndex;
                cmbFreqHopping.Items.Clear();
                cmbFreqHopping.Items.Add(MainValue[index++]);
                cmbFreqHopping.Items.Add(MainValue[index++]);
                cmbFreqHopping.SelectedIndex = intSelectItem;

                btnChina.Text     = MainValue[index++];
                btnAmerica.Text   = MainValue[index++];
                btnEurope.Text    = MainValue[index++];
                lblFixedFreq.Text = MainValue[index++];
                lblHopping1.Text  = MainValue[index++];
                #endregion

                #region ---OutPut Card---
                grbOutType.Text = MainValue[index++];
                lblOutMode.Text = MainValue[index++];
                lblOutLen.Text  = MainValue[index++];
                chkEnter.Text   = MainValue[index++];

                intSelectItem = cmbOutType.SelectedIndex;
                cmbOutType.Items.Clear();
                cmbOutType.Items.AddRange(new string[3] {
                    "Decimal", "Hex", "Wiegand"
                });
                cmbOutType.SelectedIndex = intSelectItem;
                #endregion

                #region ---Button---
                btnGetPara.Text    = MainValue[index++] + "(&G)";
                btnSetPara.Text    = MainValue[index++] + "(&S)";
                btnDefaultAll.Text = MainValue[index++] + "(&A)";
                #endregion
            }
            catch { }
            grbOutType.Visible = IniSettings.Communication == CommType.USB;
        }
        public void ChangeLanguage()
        {
            try
            {
                string[] m_def_en = new string[] {
                    "Get Para", "Set Para", "Default",
                    "TCPIP Config",
                    "IP Address", "IP Port:", "Subnet Mask:", "GateWay:", "Mac Address:",
                    "Network Mode:", "Server IP:", "Server Port:",
                    "SYRIS Config", "Set Syris",
                    "Address Config", "Old Address:", "New Address:", "Set Address",
                    "Soft Config", "Time Config", "Now Time:", "Reader Time:", "Get Time", "Set Time",
                    "IO1 Open", "IO2 Open", "IO1 Close", "IO2 Close",
                    "SoftReset"
                };

                string[] m_def_cn = new string[] { "获取参数", "设置参数", "默认参数", "TCPIP参数设置", "IP地址:", "IP端口:", "子网掩码:", "网关地址:", "Mac地址:", "网络模式:", "服务器IP:", "服务器端口:", "SYRIS参数配置", "设置序列号", "通讯地址配置", "原有通讯地址:", "待设置通讯地址:", "设置地址", "软件设置", "时间设置", "当前时间:", "设备时间:", "获取时间", "同步时间", "IO1 开", "IO2 开", "IO1 关", "IO2 关", "软重启" };

                string[] m_def_tw = new string[] { "獲取參數", "設置參數", "默認參數", "TCPIP參數設置", "IP地址:", "IP端口:", "子網掩碼:", "網關地址:", "Mac地址:", "網路模式:", "服務器IP:", "服務器端口:", "SYRIS參數配置", "設置序列號", "通訊地址配置", "原有通訊地址:", "待設置通訊地址:", "設置地址", "軟體設置", "時間設置", "當前時間:", "設備時間:", "獲取時間", "同步時間", "IO1 開", "IO2 開", "IO1 關", "IO2 關", "軟體重啟" };

                string[] MainValue = IniSettings.LoadLanguage(@"passive/senior", m_def_en, m_def_cn, m_def_tw);

                int index = 0;

                #region ---PUB---

                btnGetPara.Text = MainValue[index++] + "(&G)";
                btnSetPara.Text = MainValue[index++] + "(&S)";
                btnDefault.Text = MainValue[index++] + "(&D)";
                #endregion

                #region ---TCPIP Config---
                grbTCPIP.Text = MainValue[index++];

                lblTCPIP.Text      = MainValue[index++];
                lblTCPPort.Text    = MainValue[index++];
                lblTCPMask.Text    = MainValue[index++];
                lblTCPGateway.Text = MainValue[index++];
                lblTCPMac.Text     = MainValue[index++];
                lblIsServer.Text   = MainValue[index++];
                lblRemoteIP.Text   = MainValue[index++];
                lblRemotePort.Text = MainValue[index++];
                #endregion

                #region ---SYRIS Config---
                grbSYRIS.Text     = MainValue[index++];
                btnInitSyris.Text = MainValue[index++];
                #endregion

                #region ---Address Config---
                grbAddress.Text = MainValue[index++];
                lblOldAddr.Text = MainValue[index++];
                lblNewAddr.Text = MainValue[index++];

                btnAddress.Text = MainValue[index++];
                #endregion

                #region ---Senior Config---
                grbSoft.Text       = MainValue[index++];
                grbTime.Text       = MainValue[index++];
                lblNowTime.Text    = MainValue[index++];
                lblReaderTime.Text = MainValue[index++];
                btnGetTime.Text    = MainValue[index++];
                btnSetTime.Text    = MainValue[index++];

                btnIO1Open.Text  = MainValue[index++];
                btnIO2Open.Text  = MainValue[index++];
                btnIO1Close.Text = MainValue[index++];
                btnIO2Close.Text = MainValue[index++];

                btnReset.Text = MainValue[index++];
                #endregion
            }
            catch { }

            txtNowTime.Font    = new Font(IniSettings.AppsFont.FontFamily, 9F);
            txtReaderTime.Font = new Font(IniSettings.AppsFont.FontFamily, 9F);
        }