using HPG_68D.My;
using Microsoft.VisualBasic;
using Microsoft.VisualBasic.CompilerServices;
using System;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.IO.Ports;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Windows.Forms;

namespace HPG_68D
{
    [DesignerGenerated]
    public class MDIParent1 : Form
    {
        private static ArrayList __ENCList = new ArrayList();
        private IContainer components;
        [AccessedThroughProperty("ContentsToolStripMenuItem")]
        private ToolStripMenuItem _ContentsToolStripMenuItem;
        [AccessedThroughProperty("HelpMenu")]
        private ToolStripMenuItem _HelpMenu;
        [AccessedThroughProperty("IndexToolStripMenuItem")]
        private ToolStripMenuItem _IndexToolStripMenuItem;
        [AccessedThroughProperty("SearchToolStripMenuItem")]
        private ToolStripMenuItem _SearchToolStripMenuItem;
        [AccessedThroughProperty("ToolStripSeparator8")]
        private ToolStripSeparator _ToolStripSeparator8;
        [AccessedThroughProperty("AboutToolStripMenuItem")]
        private ToolStripMenuItem _AboutToolStripMenuItem;
        [AccessedThroughProperty("ArrangeIconsToolStripMenuItem")]
        private ToolStripMenuItem _ArrangeIconsToolStripMenuItem;
        [AccessedThroughProperty("CloseAllToolStripMenuItem")]
        private ToolStripMenuItem _CloseAllToolStripMenuItem;
        [AccessedThroughProperty("NewWindowToolStripMenuItem")]
        private ToolStripMenuItem _NewWindowToolStripMenuItem;
        [AccessedThroughProperty("WindowsMenu")]
        private ToolStripMenuItem _WindowsMenu;
        [AccessedThroughProperty("CascadeToolStripMenuItem")]
        private ToolStripMenuItem _CascadeToolStripMenuItem;
        [AccessedThroughProperty("TileVerticalToolStripMenuItem")]
        private ToolStripMenuItem _TileVerticalToolStripMenuItem;
        [AccessedThroughProperty("TileHorizontalToolStripMenuItem")]
        private ToolStripMenuItem _TileHorizontalToolStripMenuItem;
        [AccessedThroughProperty("OptionsToolStripMenuItem")]
        private ToolStripMenuItem _OptionsToolStripMenuItem;
        [AccessedThroughProperty("HelpToolStripButton")]
        private ToolStripButton _HelpToolStripButton;
        [AccessedThroughProperty("ToolStripSeparator2")]
        private ToolStripSeparator _ToolStripSeparator2;
        [AccessedThroughProperty("PrintPreviewToolStripButton")]
        private ToolStripButton _PrintPreviewToolStripButton;
        [AccessedThroughProperty("ToolTip")]
        private ToolTip _ToolTip;
        [AccessedThroughProperty("ToolStripStatusLabel")]
        private ToolStripStatusLabel _ToolStripStatusLabel;
        [AccessedThroughProperty("StatusStrip")]
        private StatusStrip _StatusStrip;
        [AccessedThroughProperty("PrintToolStripButton")]
        private ToolStripButton _PrintToolStripButton;
        [AccessedThroughProperty("NewToolStripButton")]
        private ToolStripButton _NewToolStripButton;
        [AccessedThroughProperty("ToolStrip")]
        private ToolStrip _ToolStrip;
        [AccessedThroughProperty("OpenToolStripButton")]
        private ToolStripButton _OpenToolStripButton;
        [AccessedThroughProperty("SaveToolStripButton")]
        private ToolStripButton _SaveToolStripButton;
        [AccessedThroughProperty("ToolStripSeparator1")]
        private ToolStripSeparator _ToolStripSeparator1;
        [AccessedThroughProperty("PrintPreviewToolStripMenuItem")]
        private ToolStripMenuItem _PrintPreviewToolStripMenuItem;
        [AccessedThroughProperty("PrintToolStripMenuItem")]
        private ToolStripMenuItem _PrintToolStripMenuItem;
        [AccessedThroughProperty("ToolStripSeparator4")]
        private ToolStripSeparator _ToolStripSeparator4;
        [AccessedThroughProperty("ExitToolStripMenuItem")]
        private ToolStripMenuItem _ExitToolStripMenuItem;
        [AccessedThroughProperty("ToolStripSeparator5")]
        private ToolStripSeparator _ToolStripSeparator5;
        [AccessedThroughProperty("PrintSetupToolStripMenuItem")]
        private ToolStripMenuItem _PrintSetupToolStripMenuItem;
        [AccessedThroughProperty("SaveAsToolStripMenuItem")]
        private ToolStripMenuItem _SaveAsToolStripMenuItem;
        [AccessedThroughProperty("NewToolStripMenuItem")]
        private ToolStripMenuItem _NewToolStripMenuItem;
        [AccessedThroughProperty("FileMenu")]
        private ToolStripMenuItem _FileMenu;
        [AccessedThroughProperty("OpenToolStripMenuItem")]
        private ToolStripMenuItem _OpenToolStripMenuItem;
        [AccessedThroughProperty("ToolStripSeparator3")]
        private ToolStripSeparator _ToolStripSeparator3;
        [AccessedThroughProperty("SaveToolStripMenuItem")]
        private ToolStripMenuItem _SaveToolStripMenuItem;
        [AccessedThroughProperty("MenuStrip")]
        private MenuStrip _MenuStrip;
        [AccessedThroughProperty("EditMenu")]
        private ToolStripMenuItem _EditMenu;
        [AccessedThroughProperty("UndoToolStripMenuItem")]
        private ToolStripMenuItem _UndoToolStripMenuItem;
        [AccessedThroughProperty("RedoToolStripMenuItem")]
        private ToolStripMenuItem _RedoToolStripMenuItem;
        [AccessedThroughProperty("ToolStripSeparator6")]
        private ToolStripSeparator _ToolStripSeparator6;
        [AccessedThroughProperty("CutToolStripMenuItem")]
        private ToolStripMenuItem _CutToolStripMenuItem;
        [AccessedThroughProperty("CopyToolStripMenuItem")]
        private ToolStripMenuItem _CopyToolStripMenuItem;
        [AccessedThroughProperty("PasteToolStripMenuItem")]
        private ToolStripMenuItem _PasteToolStripMenuItem;
        [AccessedThroughProperty("ToolStripSeparator7")]
        private ToolStripSeparator _ToolStripSeparator7;
        [AccessedThroughProperty("SelectAllToolStripMenuItem")]
        private ToolStripMenuItem _SelectAllToolStripMenuItem;
        [AccessedThroughProperty("ViewMenu")]
        private ToolStripMenuItem _ViewMenu;
        [AccessedThroughProperty("ToolBarToolStripMenuItem")]
        private ToolStripMenuItem _ToolBarToolStripMenuItem;
        [AccessedThroughProperty("StatusBarToolStripMenuItem")]
        private ToolStripMenuItem _StatusBarToolStripMenuItem;
        [AccessedThroughProperty("ToolsMenu")]
        private ToolStripMenuItem _ToolsMenu;
        [AccessedThroughProperty("TypeMenu")]
        private ToolStripMenuItem _TypeMenu;
        [AccessedThroughProperty("机型信息MToolStripMenuItem")]
        private ToolStripMenuItem _机型信息MToolStripMenuItem;
        [AccessedThroughProperty("EditMenuList")]
        private ToolStripMenuItem _EditMenuList;
        [AccessedThroughProperty("信道信息CToolStripMenuItem")]
        private ToolStripMenuItem _信道信息CToolStripMenuItem;
        [AccessedThroughProperty("ToolStripSeparator9")]
        private ToolStripSeparator _ToolStripSeparator9;
        [AccessedThroughProperty("整机信息OToolStripMenuItem")]
        private ToolStripMenuItem _整机信息OToolStripMenuItem;
        [AccessedThroughProperty("扫描信息SToolStripMenuItem")]
        private ToolStripMenuItem _扫描信息SToolStripMenuItem;
        [AccessedThroughProperty("提示音AToolStripMenuItem")]
        private ToolStripMenuItem _提示音AToolStripMenuItem;
        [AccessedThroughProperty("ToolStripSeparator10")]
        private ToolStripSeparator _ToolStripSeparator10;
        [AccessedThroughProperty("双音多频DToolStripMenuItem")]
        private ToolStripMenuItem _双音多频DToolStripMenuItem;
        [AccessedThroughProperty("两音TToolStripMenuItem")]
        private ToolStripMenuItem _两音TToolStripMenuItem;
        [AccessedThroughProperty("五音FToolStripMenuItem")]
        private ToolStripMenuItem _五音FToolStripMenuItem;
        [AccessedThroughProperty("ToolStripSeparator11")]
        private ToolStripSeparator _ToolStripSeparator11;
        [AccessedThroughProperty("紧急报警信息EToolStripMenuItem")]
        private ToolStripMenuItem _紧急报警信息EToolStripMenuItem;
        [AccessedThroughProperty("收音机存储信道JToolStripMenuItem")]
        private ToolStripMenuItem _收音机存储信道JToolStripMenuItem;
        [AccessedThroughProperty("嵌入信息IToolStripMenuItem")]
        private ToolStripMenuItem _嵌入信息IToolStripMenuItem;
        [AccessedThroughProperty("对讲机信息RToolStripMenuItem")]
        private ToolStripMenuItem _对讲机信息RToolStripMenuItem;
        [AccessedThroughProperty("ToolStripSeparator12")]
        private ToolStripSeparator _ToolStripSeparator12;
        [AccessedThroughProperty("ProgrammeMenu")]
        private ToolStripMenuItem _ProgrammeMenu;
        [AccessedThroughProperty("从对讲机读取数据RToolStripMenuItem")]
        private ToolStripMenuItem _从对讲机读取数据RToolStripMenuItem;
        [AccessedThroughProperty("向对讲机写入数据WToolStripMenuItem")]
        private ToolStripMenuItem _向对讲机写入数据WToolStripMenuItem;
        [AccessedThroughProperty("SetMenu")]
        private ToolStripMenuItem _SetMenu;
        [AccessedThroughProperty("语言设置LToolStripMenuItem")]
        private ToolStripMenuItem _语言设置LToolStripMenuItem;
        [AccessedThroughProperty("通信端口PToolStripMenuItem")]
        private ToolStripMenuItem _通信端口PToolStripMenuItem;
        [AccessedThroughProperty("更改密码CToolStripMenuItem")]
        private ToolStripMenuItem _更改密码CToolStripMenuItem;
        [AccessedThroughProperty("TreeViewToolStripMenuItem")]
        private ToolStripMenuItem _TreeViewToolStripMenuItem;
        [AccessedThroughProperty("ToolStripSeparator13")]
        private ToolStripSeparator _ToolStripSeparator13;
        [AccessedThroughProperty("ToolStripSeparator14")]
        private ToolStripSeparator _ToolStripSeparator14;
        [AccessedThroughProperty("帮助主题HToolStripMenuItem")]
        private ToolStripMenuItem _帮助主题HToolStripMenuItem;
        [AccessedThroughProperty("Panel1")]
        private Panel _Panel1;
        [AccessedThroughProperty("EditMenuListTreeView")]
        private TreeView _EditMenuListTreeView;
        [AccessedThroughProperty("ToolStripSeparator15")]
        private ToolStripSeparator _ToolStripSeparator15;
        [AccessedThroughProperty("SerialPort1")]
        private SerialPort _SerialPort1;
        [AccessedThroughProperty("Timer1")]
        private System.Windows.Forms.Timer _Timer1;
        [AccessedThroughProperty("ReadToolStripButton")]
        private ToolStripButton _ReadToolStripButton;
        [AccessedThroughProperty("ComPortToolStripButton")]
        private ToolStripButton _ComPortToolStripButton;
        [AccessedThroughProperty("WriteToolStripButton")]
        private ToolStripButton _WriteToolStripButton;
        [AccessedThroughProperty("ToolStripSeparator16")]
        private ToolStripSeparator _ToolStripSeparator16;
        [AccessedThroughProperty("中文ToolStripMenuItem")]
        private ToolStripMenuItem _中文ToolStripMenuItem;
        [AccessedThroughProperty("英文ToolStripMenuItem")]
        private ToolStripMenuItem _英文ToolStripMenuItem;
        private int m_ChildFormNumber;

        [DebuggerNonUserCode]
        static MDIParent1()
        {
        }

        public MDIParent1()
        {
            Load += MDIParent1_Load;
            __ENCList.Add(new WeakReference(this));
            m_ChildFormNumber = 0;
            InitializeComponent();
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && components != null)
                components.Dispose();
            base.Dispose(disposing);
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            components = new Container();
            var componentResourceManager = new ComponentResourceManager(typeof(MDIParent1));
            MenuStrip = new MenuStrip();
            FileMenu = new ToolStripMenuItem();
            NewToolStripMenuItem = new ToolStripMenuItem();
            OpenToolStripMenuItem = new ToolStripMenuItem();
            ToolStripSeparator3 = new ToolStripSeparator();
            SaveToolStripMenuItem = new ToolStripMenuItem();
            SaveAsToolStripMenuItem = new ToolStripMenuItem();
            ToolStripSeparator4 = new ToolStripSeparator();
            PrintToolStripMenuItem = new ToolStripMenuItem();
            PrintPreviewToolStripMenuItem = new ToolStripMenuItem();
            PrintSetupToolStripMenuItem = new ToolStripMenuItem();
            ToolStripSeparator5 = new ToolStripSeparator();
            ExitToolStripMenuItem = new ToolStripMenuItem();
            TypeMenu = new ToolStripMenuItem();
            机型信息MToolStripMenuItem = new ToolStripMenuItem();
            EditMenuList = new ToolStripMenuItem();
            信道信息CToolStripMenuItem = new ToolStripMenuItem();
            ToolStripSeparator9 = new ToolStripSeparator();
            整机信息OToolStripMenuItem = new ToolStripMenuItem();
            扫描信息SToolStripMenuItem = new ToolStripMenuItem();
            提示音AToolStripMenuItem = new ToolStripMenuItem();
            ToolStripSeparator10 = new ToolStripSeparator();
            双音多频DToolStripMenuItem = new ToolStripMenuItem();
            两音TToolStripMenuItem = new ToolStripMenuItem();
            五音FToolStripMenuItem = new ToolStripMenuItem();
            ToolStripSeparator11 = new ToolStripSeparator();
            紧急报警信息EToolStripMenuItem = new ToolStripMenuItem();
            ToolStripSeparator15 = new ToolStripSeparator();
            收音机存储信道JToolStripMenuItem = new ToolStripMenuItem();
            ToolStripSeparator12 = new ToolStripSeparator();
            嵌入信息IToolStripMenuItem = new ToolStripMenuItem();
            对讲机信息RToolStripMenuItem = new ToolStripMenuItem();
            ProgrammeMenu = new ToolStripMenuItem();
            从对讲机读取数据RToolStripMenuItem = new ToolStripMenuItem();
            向对讲机写入数据WToolStripMenuItem = new ToolStripMenuItem();
            SetMenu = new ToolStripMenuItem();
            语言设置LToolStripMenuItem = new ToolStripMenuItem();
            中文ToolStripMenuItem = new ToolStripMenuItem();
            英文ToolStripMenuItem = new ToolStripMenuItem();
            通信端口PToolStripMenuItem = new ToolStripMenuItem();
            更改密码CToolStripMenuItem = new ToolStripMenuItem();
            ViewMenu = new ToolStripMenuItem();
            TreeViewToolStripMenuItem = new ToolStripMenuItem();
            ToolBarToolStripMenuItem = new ToolStripMenuItem();
            StatusBarToolStripMenuItem = new ToolStripMenuItem();
            WindowsMenu = new ToolStripMenuItem();
            NewWindowToolStripMenuItem = new ToolStripMenuItem();
            CascadeToolStripMenuItem = new ToolStripMenuItem();
            TileVerticalToolStripMenuItem = new ToolStripMenuItem();
            TileHorizontalToolStripMenuItem = new ToolStripMenuItem();
            ArrangeIconsToolStripMenuItem = new ToolStripMenuItem();
            ToolStripSeparator13 = new ToolStripSeparator();
            CloseAllToolStripMenuItem = new ToolStripMenuItem();
            ToolStripSeparator14 = new ToolStripSeparator();
            HelpMenu = new ToolStripMenuItem();
            ContentsToolStripMenuItem = new ToolStripMenuItem();
            IndexToolStripMenuItem = new ToolStripMenuItem();
            SearchToolStripMenuItem = new ToolStripMenuItem();
            ToolStripSeparator8 = new ToolStripSeparator();
            帮助主题HToolStripMenuItem = new ToolStripMenuItem();
            AboutToolStripMenuItem = new ToolStripMenuItem();
            EditMenu = new ToolStripMenuItem();
            UndoToolStripMenuItem = new ToolStripMenuItem();
            RedoToolStripMenuItem = new ToolStripMenuItem();
            ToolStripSeparator6 = new ToolStripSeparator();
            CutToolStripMenuItem = new ToolStripMenuItem();
            CopyToolStripMenuItem = new ToolStripMenuItem();
            PasteToolStripMenuItem = new ToolStripMenuItem();
            ToolStripSeparator7 = new ToolStripSeparator();
            SelectAllToolStripMenuItem = new ToolStripMenuItem();
            ToolsMenu = new ToolStripMenuItem();
            OptionsToolStripMenuItem = new ToolStripMenuItem();
            ToolStrip = new ToolStrip();
            NewToolStripButton = new ToolStripButton();
            OpenToolStripButton = new ToolStripButton();
            SaveToolStripButton = new ToolStripButton();
            ToolStripSeparator1 = new ToolStripSeparator();
            PrintToolStripButton = new ToolStripButton();
            PrintPreviewToolStripButton = new ToolStripButton();
            ToolStripSeparator2 = new ToolStripSeparator();
            ReadToolStripButton = new ToolStripButton();
            ComPortToolStripButton = new ToolStripButton();
            WriteToolStripButton = new ToolStripButton();
            ToolStripSeparator16 = new ToolStripSeparator();
            HelpToolStripButton = new ToolStripButton();
            StatusStrip = new StatusStrip();
            ToolStripStatusLabel = new ToolStripStatusLabel();
            ToolTip = new ToolTip(components);
            Panel1 = new Panel();
            EditMenuListTreeView = new TreeView();
            SerialPort1 = new SerialPort(components);
            Timer1 = new System.Windows.Forms.Timer(components);
            MenuStrip.SuspendLayout();
            ToolStrip.SuspendLayout();
            StatusStrip.SuspendLayout();
            Panel1.SuspendLayout();
            SuspendLayout();
            MenuStrip.AccessibleDescription = null;
            MenuStrip.AccessibleName = null;
            componentResourceManager.ApplyResources(MenuStrip, "MenuStrip");
            MenuStrip.BackgroundImage = null;
            MenuStrip.Font = null;
            MenuStrip.Items.AddRange(new ToolStripItem[10]
            {
                FileMenu,
                TypeMenu,
                EditMenuList,
                ProgrammeMenu,
                SetMenu,
                ViewMenu,
                WindowsMenu,
                HelpMenu,
                EditMenu,
                ToolsMenu
            });
            MenuStrip.MdiWindowListItem = WindowsMenu;
            MenuStrip.Name = "MenuStrip";
            ToolTip.SetToolTip(MenuStrip, componentResourceManager.GetString("MenuStrip.ToolTip"));
            FileMenu.AccessibleDescription = null;
            FileMenu.AccessibleName = null;
            componentResourceManager.ApplyResources(FileMenu, "FileMenu");
            FileMenu.BackgroundImage = null;
            FileMenu.DropDownItems.AddRange(new ToolStripItem[11]
            {
                NewToolStripMenuItem,
                OpenToolStripMenuItem,
                ToolStripSeparator3,
                SaveToolStripMenuItem,
                SaveAsToolStripMenuItem,
                ToolStripSeparator4,
                PrintToolStripMenuItem,
                PrintPreviewToolStripMenuItem,
                PrintSetupToolStripMenuItem,
                ToolStripSeparator5,
                ExitToolStripMenuItem
            });
            FileMenu.Name = "FileMenu";
            FileMenu.ShortcutKeyDisplayString = null;
            NewToolStripMenuItem.AccessibleDescription = null;
            NewToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(NewToolStripMenuItem, "NewToolStripMenuItem");
            NewToolStripMenuItem.BackgroundImage = null;
            NewToolStripMenuItem.Name = "NewToolStripMenuItem";
            NewToolStripMenuItem.ShortcutKeyDisplayString = null;
            OpenToolStripMenuItem.AccessibleDescription = null;
            OpenToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(OpenToolStripMenuItem, "OpenToolStripMenuItem");
            OpenToolStripMenuItem.BackgroundImage = null;
            OpenToolStripMenuItem.Name = "OpenToolStripMenuItem";
            OpenToolStripMenuItem.ShortcutKeyDisplayString = null;
            ToolStripSeparator3.AccessibleDescription = null;
            ToolStripSeparator3.AccessibleName = null;
            componentResourceManager.ApplyResources(ToolStripSeparator3, "ToolStripSeparator3");
            ToolStripSeparator3.Name = "ToolStripSeparator3";
            SaveToolStripMenuItem.AccessibleDescription = null;
            SaveToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(SaveToolStripMenuItem, "SaveToolStripMenuItem");
            SaveToolStripMenuItem.BackgroundImage = null;
            SaveToolStripMenuItem.Name = "SaveToolStripMenuItem";
            SaveToolStripMenuItem.ShortcutKeyDisplayString = null;
            SaveAsToolStripMenuItem.AccessibleDescription = null;
            SaveAsToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(SaveAsToolStripMenuItem, "SaveAsToolStripMenuItem");
            SaveAsToolStripMenuItem.BackgroundImage = null;
            SaveAsToolStripMenuItem.Name = "SaveAsToolStripMenuItem";
            SaveAsToolStripMenuItem.ShortcutKeyDisplayString = null;
            ToolStripSeparator4.AccessibleDescription = null;
            ToolStripSeparator4.AccessibleName = null;
            componentResourceManager.ApplyResources(ToolStripSeparator4, "ToolStripSeparator4");
            ToolStripSeparator4.Name = "ToolStripSeparator4";
            PrintToolStripMenuItem.AccessibleDescription = null;
            PrintToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(PrintToolStripMenuItem, "PrintToolStripMenuItem");
            PrintToolStripMenuItem.BackgroundImage = null;
            PrintToolStripMenuItem.Name = "PrintToolStripMenuItem";
            PrintToolStripMenuItem.ShortcutKeyDisplayString = null;
            PrintPreviewToolStripMenuItem.AccessibleDescription = null;
            PrintPreviewToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(PrintPreviewToolStripMenuItem, "PrintPreviewToolStripMenuItem");
            PrintPreviewToolStripMenuItem.BackgroundImage = null;
            PrintPreviewToolStripMenuItem.Name = "PrintPreviewToolStripMenuItem";
            PrintPreviewToolStripMenuItem.ShortcutKeyDisplayString = null;
            PrintSetupToolStripMenuItem.AccessibleDescription = null;
            PrintSetupToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(PrintSetupToolStripMenuItem, "PrintSetupToolStripMenuItem");
            PrintSetupToolStripMenuItem.BackgroundImage = null;
            PrintSetupToolStripMenuItem.Name = "PrintSetupToolStripMenuItem";
            PrintSetupToolStripMenuItem.ShortcutKeyDisplayString = null;
            ToolStripSeparator5.AccessibleDescription = null;
            ToolStripSeparator5.AccessibleName = null;
            componentResourceManager.ApplyResources(ToolStripSeparator5, "ToolStripSeparator5");
            ToolStripSeparator5.Name = "ToolStripSeparator5";
            ExitToolStripMenuItem.AccessibleDescription = null;
            ExitToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(ExitToolStripMenuItem, "ExitToolStripMenuItem");
            ExitToolStripMenuItem.BackgroundImage = null;
            ExitToolStripMenuItem.Name = "ExitToolStripMenuItem";
            ExitToolStripMenuItem.ShortcutKeyDisplayString = null;
            TypeMenu.AccessibleDescription = null;
            TypeMenu.AccessibleName = null;
            componentResourceManager.ApplyResources(TypeMenu, "TypeMenu");
            TypeMenu.BackgroundImage = null;
            TypeMenu.DropDownItems.AddRange(new ToolStripItem[1]
            {
                机型信息MToolStripMenuItem
            });
            TypeMenu.Name = "TypeMenu";
            TypeMenu.ShortcutKeyDisplayString = null;
            机型信息MToolStripMenuItem.AccessibleDescription = null;
            机型信息MToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(机型信息MToolStripMenuItem, "机型信息MToolStripMenuItem");
            机型信息MToolStripMenuItem.BackgroundImage = null;
            机型信息MToolStripMenuItem.Name = "机型信息MToolStripMenuItem";
            机型信息MToolStripMenuItem.ShortcutKeyDisplayString = null;
            EditMenuList.AccessibleDescription = null;
            EditMenuList.AccessibleName = null;
            componentResourceManager.ApplyResources(EditMenuList, "EditMenuList");
            EditMenuList.BackgroundImage = null;
            EditMenuList.DropDownItems.AddRange(new ToolStripItem[16]
            {
                信道信息CToolStripMenuItem,
                ToolStripSeparator9,
                整机信息OToolStripMenuItem,
                扫描信息SToolStripMenuItem,
                提示音AToolStripMenuItem,
                ToolStripSeparator10,
                双音多频DToolStripMenuItem,
                两音TToolStripMenuItem,
                五音FToolStripMenuItem,
                ToolStripSeparator11,
                紧急报警信息EToolStripMenuItem,
                ToolStripSeparator15,
                收音机存储信道JToolStripMenuItem,
                ToolStripSeparator12,
                嵌入信息IToolStripMenuItem,
                对讲机信息RToolStripMenuItem
            });
            EditMenuList.Name = "EditMenuList";
            EditMenuList.ShortcutKeyDisplayString = null;
            信道信息CToolStripMenuItem.AccessibleDescription = null;
            信道信息CToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(信道信息CToolStripMenuItem, "信道信息CToolStripMenuItem");
            信道信息CToolStripMenuItem.BackgroundImage = null;
            信道信息CToolStripMenuItem.Checked = true;
            信道信息CToolStripMenuItem.CheckState = CheckState.Checked;
            信道信息CToolStripMenuItem.Name = "信道信息CToolStripMenuItem";
            信道信息CToolStripMenuItem.ShortcutKeyDisplayString = null;
            ToolStripSeparator9.AccessibleDescription = null;
            ToolStripSeparator9.AccessibleName = null;
            componentResourceManager.ApplyResources(ToolStripSeparator9, "ToolStripSeparator9");
            ToolStripSeparator9.Name = "ToolStripSeparator9";
            整机信息OToolStripMenuItem.AccessibleDescription = null;
            整机信息OToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(整机信息OToolStripMenuItem, "整机信息OToolStripMenuItem");
            整机信息OToolStripMenuItem.BackgroundImage = null;
            整机信息OToolStripMenuItem.Name = "整机信息OToolStripMenuItem";
            整机信息OToolStripMenuItem.ShortcutKeyDisplayString = null;
            扫描信息SToolStripMenuItem.AccessibleDescription = null;
            扫描信息SToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(扫描信息SToolStripMenuItem, "扫描信息SToolStripMenuItem");
            扫描信息SToolStripMenuItem.BackgroundImage = null;
            扫描信息SToolStripMenuItem.Name = "扫描信息SToolStripMenuItem";
            扫描信息SToolStripMenuItem.ShortcutKeyDisplayString = null;
            提示音AToolStripMenuItem.AccessibleDescription = null;
            提示音AToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(提示音AToolStripMenuItem, "提示音AToolStripMenuItem");
            提示音AToolStripMenuItem.BackgroundImage = null;
            提示音AToolStripMenuItem.Name = "提示音AToolStripMenuItem";
            提示音AToolStripMenuItem.ShortcutKeyDisplayString = null;
            ToolStripSeparator10.AccessibleDescription = null;
            ToolStripSeparator10.AccessibleName = null;
            componentResourceManager.ApplyResources(ToolStripSeparator10, "ToolStripSeparator10");
            ToolStripSeparator10.Name = "ToolStripSeparator10";
            双音多频DToolStripMenuItem.AccessibleDescription = null;
            双音多频DToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(双音多频DToolStripMenuItem, "双音多频DToolStripMenuItem");
            双音多频DToolStripMenuItem.BackgroundImage = null;
            双音多频DToolStripMenuItem.Name = "双音多频DToolStripMenuItem";
            双音多频DToolStripMenuItem.ShortcutKeyDisplayString = null;
            两音TToolStripMenuItem.AccessibleDescription = null;
            两音TToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(两音TToolStripMenuItem, "两音TToolStripMenuItem");
            两音TToolStripMenuItem.BackgroundImage = null;
            两音TToolStripMenuItem.Name = "两音TToolStripMenuItem";
            两音TToolStripMenuItem.ShortcutKeyDisplayString = null;
            五音FToolStripMenuItem.AccessibleDescription = null;
            五音FToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(五音FToolStripMenuItem, "五音FToolStripMenuItem");
            五音FToolStripMenuItem.BackgroundImage = null;
            五音FToolStripMenuItem.Name = "五音FToolStripMenuItem";
            五音FToolStripMenuItem.ShortcutKeyDisplayString = null;
            ToolStripSeparator11.AccessibleDescription = null;
            ToolStripSeparator11.AccessibleName = null;
            componentResourceManager.ApplyResources(ToolStripSeparator11, "ToolStripSeparator11");
            ToolStripSeparator11.Name = "ToolStripSeparator11";
            紧急报警信息EToolStripMenuItem.AccessibleDescription = null;
            紧急报警信息EToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(紧急报警信息EToolStripMenuItem, "紧急报警信息EToolStripMenuItem");
            紧急报警信息EToolStripMenuItem.BackgroundImage = null;
            紧急报警信息EToolStripMenuItem.Name = "紧急报警信息EToolStripMenuItem";
            紧急报警信息EToolStripMenuItem.ShortcutKeyDisplayString = null;
            ToolStripSeparator15.AccessibleDescription = null;
            ToolStripSeparator15.AccessibleName = null;
            componentResourceManager.ApplyResources(ToolStripSeparator15, "ToolStripSeparator15");
            ToolStripSeparator15.Name = "ToolStripSeparator15";
            收音机存储信道JToolStripMenuItem.AccessibleDescription = null;
            收音机存储信道JToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(收音机存储信道JToolStripMenuItem, "收音机存储信道JToolStripMenuItem");
            收音机存储信道JToolStripMenuItem.BackgroundImage = null;
            收音机存储信道JToolStripMenuItem.Name = "收音机存储信道JToolStripMenuItem";
            收音机存储信道JToolStripMenuItem.ShortcutKeyDisplayString = null;
            ToolStripSeparator12.AccessibleDescription = null;
            ToolStripSeparator12.AccessibleName = null;
            componentResourceManager.ApplyResources(ToolStripSeparator12, "ToolStripSeparator12");
            ToolStripSeparator12.Name = "ToolStripSeparator12";
            嵌入信息IToolStripMenuItem.AccessibleDescription = null;
            嵌入信息IToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(嵌入信息IToolStripMenuItem, "嵌入信息IToolStripMenuItem");
            嵌入信息IToolStripMenuItem.BackgroundImage = null;
            嵌入信息IToolStripMenuItem.Name = "嵌入信息IToolStripMenuItem";
            嵌入信息IToolStripMenuItem.ShortcutKeyDisplayString = null;
            对讲机信息RToolStripMenuItem.AccessibleDescription = null;
            对讲机信息RToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(对讲机信息RToolStripMenuItem, "对讲机信息RToolStripMenuItem");
            对讲机信息RToolStripMenuItem.BackgroundImage = null;
            对讲机信息RToolStripMenuItem.Name = "对讲机信息RToolStripMenuItem";
            对讲机信息RToolStripMenuItem.ShortcutKeyDisplayString = null;
            ProgrammeMenu.AccessibleDescription = null;
            ProgrammeMenu.AccessibleName = null;
            componentResourceManager.ApplyResources(ProgrammeMenu, "ProgrammeMenu");
            ProgrammeMenu.BackgroundImage = null;
            ProgrammeMenu.DropDownItems.AddRange(new ToolStripItem[2]
            {
                从对讲机读取数据RToolStripMenuItem,
                向对讲机写入数据WToolStripMenuItem
            });
            ProgrammeMenu.Name = "ProgrammeMenu";
            ProgrammeMenu.ShortcutKeyDisplayString = null;
            从对讲机读取数据RToolStripMenuItem.AccessibleDescription = null;
            从对讲机读取数据RToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(从对讲机读取数据RToolStripMenuItem, "从对讲机读取数据RToolStripMenuItem");
            从对讲机读取数据RToolStripMenuItem.BackgroundImage = null;
            从对讲机读取数据RToolStripMenuItem.Name = "从对讲机读取数据RToolStripMenuItem";
            从对讲机读取数据RToolStripMenuItem.ShortcutKeyDisplayString = null;
            向对讲机写入数据WToolStripMenuItem.AccessibleDescription = null;
            向对讲机写入数据WToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(向对讲机写入数据WToolStripMenuItem, "向对讲机写入数据WToolStripMenuItem");
            向对讲机写入数据WToolStripMenuItem.BackgroundImage = null;
            向对讲机写入数据WToolStripMenuItem.Name = "向对讲机写入数据WToolStripMenuItem";
            向对讲机写入数据WToolStripMenuItem.ShortcutKeyDisplayString = null;
            SetMenu.AccessibleDescription = null;
            SetMenu.AccessibleName = null;
            componentResourceManager.ApplyResources(SetMenu, "SetMenu");
            SetMenu.BackgroundImage = null;
            SetMenu.DropDownItems.AddRange(new ToolStripItem[3]
            {
                语言设置LToolStripMenuItem,
                通信端口PToolStripMenuItem,
                更改密码CToolStripMenuItem
            });
            SetMenu.Name = "SetMenu";
            SetMenu.ShortcutKeyDisplayString = null;
            语言设置LToolStripMenuItem.AccessibleDescription = null;
            语言设置LToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(语言设置LToolStripMenuItem, "语言设置LToolStripMenuItem");
            语言设置LToolStripMenuItem.BackgroundImage = null;
            语言设置LToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[2]
            {
                中文ToolStripMenuItem,
                英文ToolStripMenuItem
            });
            语言设置LToolStripMenuItem.Name = "语言设置LToolStripMenuItem";
            语言设置LToolStripMenuItem.ShortcutKeyDisplayString = null;
            中文ToolStripMenuItem.AccessibleDescription = null;
            中文ToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(中文ToolStripMenuItem, "中文ToolStripMenuItem");
            中文ToolStripMenuItem.BackgroundImage = null;
            中文ToolStripMenuItem.Checked = true;
            中文ToolStripMenuItem.CheckState = CheckState.Checked;
            中文ToolStripMenuItem.Name = "中文ToolStripMenuItem";
            中文ToolStripMenuItem.ShortcutKeyDisplayString = null;
            英文ToolStripMenuItem.AccessibleDescription = null;
            英文ToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(英文ToolStripMenuItem, "英文ToolStripMenuItem");
            英文ToolStripMenuItem.BackgroundImage = null;
            英文ToolStripMenuItem.Name = "英文ToolStripMenuItem";
            英文ToolStripMenuItem.ShortcutKeyDisplayString = null;
            通信端口PToolStripMenuItem.AccessibleDescription = null;
            通信端口PToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(通信端口PToolStripMenuItem, "通信端口PToolStripMenuItem");
            通信端口PToolStripMenuItem.BackgroundImage = null;
            通信端口PToolStripMenuItem.Name = "通信端口PToolStripMenuItem";
            通信端口PToolStripMenuItem.ShortcutKeyDisplayString = null;
            更改密码CToolStripMenuItem.AccessibleDescription = null;
            更改密码CToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(更改密码CToolStripMenuItem, "更改密码CToolStripMenuItem");
            更改密码CToolStripMenuItem.BackgroundImage = null;
            更改密码CToolStripMenuItem.Name = "更改密码CToolStripMenuItem";
            更改密码CToolStripMenuItem.ShortcutKeyDisplayString = null;
            ViewMenu.AccessibleDescription = null;
            ViewMenu.AccessibleName = null;
            componentResourceManager.ApplyResources(ViewMenu, "ViewMenu");
            ViewMenu.BackgroundImage = null;
            ViewMenu.DropDownItems.AddRange(new ToolStripItem[3]
            {
                TreeViewToolStripMenuItem,
                ToolBarToolStripMenuItem,
                StatusBarToolStripMenuItem
            });
            ViewMenu.Name = "ViewMenu";
            ViewMenu.ShortcutKeyDisplayString = null;
            TreeViewToolStripMenuItem.AccessibleDescription = null;
            TreeViewToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(TreeViewToolStripMenuItem, "TreeViewToolStripMenuItem");
            TreeViewToolStripMenuItem.BackgroundImage = null;
            TreeViewToolStripMenuItem.Checked = true;
            TreeViewToolStripMenuItem.CheckOnClick = true;
            TreeViewToolStripMenuItem.CheckState = CheckState.Checked;
            TreeViewToolStripMenuItem.Name = "TreeViewToolStripMenuItem";
            TreeViewToolStripMenuItem.ShortcutKeyDisplayString = null;
            ToolBarToolStripMenuItem.AccessibleDescription = null;
            ToolBarToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(ToolBarToolStripMenuItem, "ToolBarToolStripMenuItem");
            ToolBarToolStripMenuItem.BackgroundImage = null;
            ToolBarToolStripMenuItem.Checked = true;
            ToolBarToolStripMenuItem.CheckOnClick = true;
            ToolBarToolStripMenuItem.CheckState = CheckState.Checked;
            ToolBarToolStripMenuItem.Name = "ToolBarToolStripMenuItem";
            ToolBarToolStripMenuItem.ShortcutKeyDisplayString = null;
            StatusBarToolStripMenuItem.AccessibleDescription = null;
            StatusBarToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(StatusBarToolStripMenuItem, "StatusBarToolStripMenuItem");
            StatusBarToolStripMenuItem.BackgroundImage = null;
            StatusBarToolStripMenuItem.Checked = true;
            StatusBarToolStripMenuItem.CheckOnClick = true;
            StatusBarToolStripMenuItem.CheckState = CheckState.Checked;
            StatusBarToolStripMenuItem.Name = "StatusBarToolStripMenuItem";
            StatusBarToolStripMenuItem.ShortcutKeyDisplayString = null;
            WindowsMenu.AccessibleDescription = null;
            WindowsMenu.AccessibleName = null;
            componentResourceManager.ApplyResources(WindowsMenu, "WindowsMenu");
            WindowsMenu.BackgroundImage = null;
            WindowsMenu.DropDownItems.AddRange(new ToolStripItem[8]
            {
                NewWindowToolStripMenuItem,
                CascadeToolStripMenuItem,
                TileVerticalToolStripMenuItem,
                TileHorizontalToolStripMenuItem,
                ArrangeIconsToolStripMenuItem,
                ToolStripSeparator13,
                CloseAllToolStripMenuItem,
                ToolStripSeparator14
            });
            WindowsMenu.Name = "WindowsMenu";
            WindowsMenu.ShortcutKeyDisplayString = null;
            NewWindowToolStripMenuItem.AccessibleDescription = null;
            NewWindowToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(NewWindowToolStripMenuItem, "NewWindowToolStripMenuItem");
            NewWindowToolStripMenuItem.BackgroundImage = null;
            NewWindowToolStripMenuItem.Name = "NewWindowToolStripMenuItem";
            NewWindowToolStripMenuItem.ShortcutKeyDisplayString = null;
            CascadeToolStripMenuItem.AccessibleDescription = null;
            CascadeToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(CascadeToolStripMenuItem, "CascadeToolStripMenuItem");
            CascadeToolStripMenuItem.BackgroundImage = null;
            CascadeToolStripMenuItem.Name = "CascadeToolStripMenuItem";
            CascadeToolStripMenuItem.ShortcutKeyDisplayString = null;
            TileVerticalToolStripMenuItem.AccessibleDescription = null;
            TileVerticalToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(TileVerticalToolStripMenuItem, "TileVerticalToolStripMenuItem");
            TileVerticalToolStripMenuItem.BackgroundImage = null;
            TileVerticalToolStripMenuItem.Name = "TileVerticalToolStripMenuItem";
            TileVerticalToolStripMenuItem.ShortcutKeyDisplayString = null;
            TileHorizontalToolStripMenuItem.AccessibleDescription = null;
            TileHorizontalToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(TileHorizontalToolStripMenuItem, "TileHorizontalToolStripMenuItem");
            TileHorizontalToolStripMenuItem.BackgroundImage = null;
            TileHorizontalToolStripMenuItem.Name = "TileHorizontalToolStripMenuItem";
            TileHorizontalToolStripMenuItem.ShortcutKeyDisplayString = null;
            ArrangeIconsToolStripMenuItem.AccessibleDescription = null;
            ArrangeIconsToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(ArrangeIconsToolStripMenuItem, "ArrangeIconsToolStripMenuItem");
            ArrangeIconsToolStripMenuItem.BackgroundImage = null;
            ArrangeIconsToolStripMenuItem.Name = "ArrangeIconsToolStripMenuItem";
            ArrangeIconsToolStripMenuItem.ShortcutKeyDisplayString = null;
            ToolStripSeparator13.AccessibleDescription = null;
            ToolStripSeparator13.AccessibleName = null;
            componentResourceManager.ApplyResources(ToolStripSeparator13, "ToolStripSeparator13");
            ToolStripSeparator13.Name = "ToolStripSeparator13";
            CloseAllToolStripMenuItem.AccessibleDescription = null;
            CloseAllToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(CloseAllToolStripMenuItem, "CloseAllToolStripMenuItem");
            CloseAllToolStripMenuItem.BackgroundImage = null;
            CloseAllToolStripMenuItem.Name = "CloseAllToolStripMenuItem";
            CloseAllToolStripMenuItem.ShortcutKeyDisplayString = null;
            ToolStripSeparator14.AccessibleDescription = null;
            ToolStripSeparator14.AccessibleName = null;
            componentResourceManager.ApplyResources(ToolStripSeparator14, "ToolStripSeparator14");
            ToolStripSeparator14.Name = "ToolStripSeparator14";
            HelpMenu.AccessibleDescription = null;
            HelpMenu.AccessibleName = null;
            componentResourceManager.ApplyResources(HelpMenu, "HelpMenu");
            HelpMenu.BackgroundImage = null;
            HelpMenu.DropDownItems.AddRange(new ToolStripItem[6]
            {
                ContentsToolStripMenuItem,
                IndexToolStripMenuItem,
                SearchToolStripMenuItem,
                ToolStripSeparator8,
                帮助主题HToolStripMenuItem,
                AboutToolStripMenuItem
            });
            HelpMenu.Name = "HelpMenu";
            HelpMenu.ShortcutKeyDisplayString = null;
            ContentsToolStripMenuItem.AccessibleDescription = null;
            ContentsToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(ContentsToolStripMenuItem, "ContentsToolStripMenuItem");
            ContentsToolStripMenuItem.BackgroundImage = null;
            ContentsToolStripMenuItem.Name = "ContentsToolStripMenuItem";
            ContentsToolStripMenuItem.ShortcutKeyDisplayString = null;
            IndexToolStripMenuItem.AccessibleDescription = null;
            IndexToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(IndexToolStripMenuItem, "IndexToolStripMenuItem");
            IndexToolStripMenuItem.BackgroundImage = null;
            IndexToolStripMenuItem.Name = "IndexToolStripMenuItem";
            IndexToolStripMenuItem.ShortcutKeyDisplayString = null;
            SearchToolStripMenuItem.AccessibleDescription = null;
            SearchToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(SearchToolStripMenuItem, "SearchToolStripMenuItem");
            SearchToolStripMenuItem.BackgroundImage = null;
            SearchToolStripMenuItem.Name = "SearchToolStripMenuItem";
            SearchToolStripMenuItem.ShortcutKeyDisplayString = null;
            ToolStripSeparator8.AccessibleDescription = null;
            ToolStripSeparator8.AccessibleName = null;
            componentResourceManager.ApplyResources(ToolStripSeparator8, "ToolStripSeparator8");
            ToolStripSeparator8.Name = "ToolStripSeparator8";
            帮助主题HToolStripMenuItem.AccessibleDescription = null;
            帮助主题HToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(帮助主题HToolStripMenuItem, "帮助主题HToolStripMenuItem");
            帮助主题HToolStripMenuItem.BackgroundImage = null;
            帮助主题HToolStripMenuItem.Name = "帮助主题HToolStripMenuItem";
            帮助主题HToolStripMenuItem.ShortcutKeyDisplayString = null;
            AboutToolStripMenuItem.AccessibleDescription = null;
            AboutToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(AboutToolStripMenuItem, "AboutToolStripMenuItem");
            AboutToolStripMenuItem.BackgroundImage = null;
            AboutToolStripMenuItem.Name = "AboutToolStripMenuItem";
            AboutToolStripMenuItem.ShortcutKeyDisplayString = null;
            EditMenu.AccessibleDescription = null;
            EditMenu.AccessibleName = null;
            componentResourceManager.ApplyResources(EditMenu, "EditMenu");
            EditMenu.BackgroundImage = null;
            EditMenu.DropDownItems.AddRange(new ToolStripItem[8]
            {
                UndoToolStripMenuItem,
                RedoToolStripMenuItem,
                ToolStripSeparator6,
                CutToolStripMenuItem,
                CopyToolStripMenuItem,
                PasteToolStripMenuItem,
                ToolStripSeparator7,
                SelectAllToolStripMenuItem
            });
            EditMenu.Name = "EditMenu";
            EditMenu.ShortcutKeyDisplayString = null;
            UndoToolStripMenuItem.AccessibleDescription = null;
            UndoToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(UndoToolStripMenuItem, "UndoToolStripMenuItem");
            UndoToolStripMenuItem.BackgroundImage = null;
            UndoToolStripMenuItem.Name = "UndoToolStripMenuItem";
            UndoToolStripMenuItem.ShortcutKeyDisplayString = null;
            RedoToolStripMenuItem.AccessibleDescription = null;
            RedoToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(RedoToolStripMenuItem, "RedoToolStripMenuItem");
            RedoToolStripMenuItem.BackgroundImage = null;
            RedoToolStripMenuItem.Name = "RedoToolStripMenuItem";
            RedoToolStripMenuItem.ShortcutKeyDisplayString = null;
            ToolStripSeparator6.AccessibleDescription = null;
            ToolStripSeparator6.AccessibleName = null;
            componentResourceManager.ApplyResources(ToolStripSeparator6, "ToolStripSeparator6");
            ToolStripSeparator6.Name = "ToolStripSeparator6";
            CutToolStripMenuItem.AccessibleDescription = null;
            CutToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(CutToolStripMenuItem, "CutToolStripMenuItem");
            CutToolStripMenuItem.BackgroundImage = null;
            CutToolStripMenuItem.Name = "CutToolStripMenuItem";
            CutToolStripMenuItem.ShortcutKeyDisplayString = null;
            CopyToolStripMenuItem.AccessibleDescription = null;
            CopyToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(CopyToolStripMenuItem, "CopyToolStripMenuItem");
            CopyToolStripMenuItem.BackgroundImage = null;
            CopyToolStripMenuItem.Name = "CopyToolStripMenuItem";
            CopyToolStripMenuItem.ShortcutKeyDisplayString = null;
            PasteToolStripMenuItem.AccessibleDescription = null;
            PasteToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(PasteToolStripMenuItem, "PasteToolStripMenuItem");
            PasteToolStripMenuItem.BackgroundImage = null;
            PasteToolStripMenuItem.Name = "PasteToolStripMenuItem";
            PasteToolStripMenuItem.ShortcutKeyDisplayString = null;
            ToolStripSeparator7.AccessibleDescription = null;
            ToolStripSeparator7.AccessibleName = null;
            componentResourceManager.ApplyResources(ToolStripSeparator7, "ToolStripSeparator7");
            ToolStripSeparator7.Name = "ToolStripSeparator7";
            SelectAllToolStripMenuItem.AccessibleDescription = null;
            SelectAllToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(SelectAllToolStripMenuItem, "SelectAllToolStripMenuItem");
            SelectAllToolStripMenuItem.BackgroundImage = null;
            SelectAllToolStripMenuItem.Name = "SelectAllToolStripMenuItem";
            SelectAllToolStripMenuItem.ShortcutKeyDisplayString = null;
            ToolsMenu.AccessibleDescription = null;
            ToolsMenu.AccessibleName = null;
            componentResourceManager.ApplyResources(ToolsMenu, "ToolsMenu");
            ToolsMenu.BackgroundImage = null;
            ToolsMenu.DropDownItems.AddRange(new ToolStripItem[1]
            {
                OptionsToolStripMenuItem
            });
            ToolsMenu.Name = "ToolsMenu";
            ToolsMenu.ShortcutKeyDisplayString = null;
            OptionsToolStripMenuItem.AccessibleDescription = null;
            OptionsToolStripMenuItem.AccessibleName = null;
            componentResourceManager.ApplyResources(OptionsToolStripMenuItem, "OptionsToolStripMenuItem");
            OptionsToolStripMenuItem.BackgroundImage = null;
            OptionsToolStripMenuItem.Name = "OptionsToolStripMenuItem";
            OptionsToolStripMenuItem.ShortcutKeyDisplayString = null;
            ToolStrip.AccessibleDescription = null;
            ToolStrip.AccessibleName = null;
            componentResourceManager.ApplyResources(ToolStrip, "ToolStrip");
            ToolStrip.BackgroundImage = null;
            ToolStrip.Font = null;
            ToolStrip.Items.AddRange(new ToolStripItem[12]
            {
                NewToolStripButton,
                OpenToolStripButton,
                SaveToolStripButton,
                ToolStripSeparator1,
                PrintToolStripButton,
                PrintPreviewToolStripButton,
                ToolStripSeparator2,
                ReadToolStripButton,
                ComPortToolStripButton,
                WriteToolStripButton,
                ToolStripSeparator16,
                HelpToolStripButton
            });
            ToolStrip.Name = "ToolStrip";
            ToolTip.SetToolTip(ToolStrip, componentResourceManager.GetString("ToolStrip.ToolTip"));
            NewToolStripButton.AccessibleDescription = null;
            NewToolStripButton.AccessibleName = null;
            componentResourceManager.ApplyResources(NewToolStripButton, "NewToolStripButton");
            NewToolStripButton.BackgroundImage = null;
            NewToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
            NewToolStripButton.Name = "NewToolStripButton";
            OpenToolStripButton.AccessibleDescription = null;
            OpenToolStripButton.AccessibleName = null;
            componentResourceManager.ApplyResources(OpenToolStripButton, "OpenToolStripButton");
            OpenToolStripButton.BackgroundImage = null;
            OpenToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
            OpenToolStripButton.Name = "OpenToolStripButton";
            SaveToolStripButton.AccessibleDescription = null;
            SaveToolStripButton.AccessibleName = null;
            componentResourceManager.ApplyResources(SaveToolStripButton, "SaveToolStripButton");
            SaveToolStripButton.BackgroundImage = null;
            SaveToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
            SaveToolStripButton.Name = "SaveToolStripButton";
            ToolStripSeparator1.AccessibleDescription = null;
            ToolStripSeparator1.AccessibleName = null;
            componentResourceManager.ApplyResources(ToolStripSeparator1, "ToolStripSeparator1");
            ToolStripSeparator1.Name = "ToolStripSeparator1";
            PrintToolStripButton.AccessibleDescription = null;
            PrintToolStripButton.AccessibleName = null;
            componentResourceManager.ApplyResources(PrintToolStripButton, "PrintToolStripButton");
            PrintToolStripButton.BackgroundImage = null;
            PrintToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
            PrintToolStripButton.Name = "PrintToolStripButton";
            PrintPreviewToolStripButton.AccessibleDescription = null;
            PrintPreviewToolStripButton.AccessibleName = null;
            componentResourceManager.ApplyResources(PrintPreviewToolStripButton, "PrintPreviewToolStripButton");
            PrintPreviewToolStripButton.BackgroundImage = null;
            PrintPreviewToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
            PrintPreviewToolStripButton.Name = "PrintPreviewToolStripButton";
            ToolStripSeparator2.AccessibleDescription = null;
            ToolStripSeparator2.AccessibleName = null;
            componentResourceManager.ApplyResources(ToolStripSeparator2, "ToolStripSeparator2");
            ToolStripSeparator2.Name = "ToolStripSeparator2";
            ReadToolStripButton.AccessibleDescription = null;
            ReadToolStripButton.AccessibleName = null;
            componentResourceManager.ApplyResources(ReadToolStripButton, "ReadToolStripButton");
            ReadToolStripButton.BackgroundImage = null;
            ReadToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
            ReadToolStripButton.Name = "ReadToolStripButton";
            ComPortToolStripButton.AccessibleDescription = null;
            ComPortToolStripButton.AccessibleName = null;
            componentResourceManager.ApplyResources(ComPortToolStripButton, "ComPortToolStripButton");
            ComPortToolStripButton.BackgroundImage = null;
            ComPortToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
            ComPortToolStripButton.Name = "ComPortToolStripButton";
            WriteToolStripButton.AccessibleDescription = null;
            WriteToolStripButton.AccessibleName = null;
            componentResourceManager.ApplyResources(WriteToolStripButton, "WriteToolStripButton");
            WriteToolStripButton.BackgroundImage = null;
            WriteToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
            WriteToolStripButton.Name = "WriteToolStripButton";
            ToolStripSeparator16.AccessibleDescription = null;
            ToolStripSeparator16.AccessibleName = null;
            componentResourceManager.ApplyResources(ToolStripSeparator16, "ToolStripSeparator16");
            ToolStripSeparator16.Name = "ToolStripSeparator16";
            HelpToolStripButton.AccessibleDescription = null;
            HelpToolStripButton.AccessibleName = null;
            componentResourceManager.ApplyResources(HelpToolStripButton, "HelpToolStripButton");
            HelpToolStripButton.BackgroundImage = null;
            HelpToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
            HelpToolStripButton.Name = "HelpToolStripButton";
            StatusStrip.AccessibleDescription = null;
            StatusStrip.AccessibleName = null;
            componentResourceManager.ApplyResources(StatusStrip, "StatusStrip");
            StatusStrip.BackgroundImage = null;
            StatusStrip.Font = null;
            StatusStrip.Items.AddRange(new ToolStripItem[1]
            {
                ToolStripStatusLabel
            });
            StatusStrip.Name = "StatusStrip";
            ToolTip.SetToolTip(StatusStrip, componentResourceManager.GetString("StatusStrip.ToolTip"));
            ToolStripStatusLabel.AccessibleDescription = null;
            ToolStripStatusLabel.AccessibleName = null;
            componentResourceManager.ApplyResources(ToolStripStatusLabel, "ToolStripStatusLabel");
            ToolStripStatusLabel.BackgroundImage = null;
            ToolStripStatusLabel.Name = "ToolStripStatusLabel";
            Panel1.AccessibleDescription = null;
            Panel1.AccessibleName = null;
            componentResourceManager.ApplyResources(Panel1, "Panel1");
            Panel1.BackgroundImage = null;
            Panel1.BorderStyle = BorderStyle.Fixed3D;
            Panel1.Controls.Add(EditMenuListTreeView);
            Panel1.Font = null;
            Panel1.Name = "Panel1";
            ToolTip.SetToolTip(Panel1, componentResourceManager.GetString("Panel1.ToolTip"));
            EditMenuListTreeView.AccessibleDescription = null;
            EditMenuListTreeView.AccessibleName = null;
            componentResourceManager.ApplyResources(EditMenuListTreeView, "EditMenuListTreeView");
            EditMenuListTreeView.BackgroundImage = null;
            EditMenuListTreeView.Font = null;
            EditMenuListTreeView.Name = "EditMenuListTreeView";
            EditMenuListTreeView.Nodes.AddRange(new TreeNode[1]
            {
                (TreeNode) componentResourceManager.GetObject("EditMenuListTreeView.Nodes")
            });
            ToolTip.SetToolTip(EditMenuListTreeView, componentResourceManager.GetString("EditMenuListTreeView.ToolTip"));
            SerialPort1.BaudRate = 19200;
            SerialPort1.DtrEnable = true;
            SerialPort1.RtsEnable = true;
            Timer1.Interval = 10;
            AccessibleDescription = null;
            AccessibleName = null;
            componentResourceManager.ApplyResources(this, "$this");
            AutoScaleMode = AutoScaleMode.Font;
            Controls.Add(Panel1);
            Controls.Add(ToolStrip);
            Controls.Add(MenuStrip);
            Controls.Add(StatusStrip);
            DoubleBuffered = true;
            Font = null;
            IsMdiContainer = true;
            MainMenuStrip = MenuStrip;
            Name = nameof(MDIParent1);
            ToolTip.SetToolTip(this, componentResourceManager.GetString("$this.ToolTip"));
            MenuStrip.ResumeLayout(false);
            MenuStrip.PerformLayout();
            ToolStrip.ResumeLayout(false);
            ToolStrip.PerformLayout();
            StatusStrip.ResumeLayout(false);
            StatusStrip.PerformLayout();
            Panel1.ResumeLayout(false);
            ResumeLayout(false);
            PerformLayout();
        }

        internal virtual ToolStripMenuItem ContentsToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _ContentsToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _ContentsToolStripMenuItem = value; }
        }

        internal virtual ToolStripMenuItem HelpMenu
        {
            [DebuggerNonUserCode]
            get => _HelpMenu;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _HelpMenu = value; }
        }

        internal virtual ToolStripMenuItem IndexToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _IndexToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _IndexToolStripMenuItem = value; }
        }

        internal virtual ToolStripMenuItem SearchToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _SearchToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _SearchToolStripMenuItem = value; }
        }

        internal virtual ToolStripSeparator ToolStripSeparator8
        {
            [DebuggerNonUserCode]
            get => _ToolStripSeparator8;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _ToolStripSeparator8 = value; }
        }

        internal virtual ToolStripMenuItem AboutToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _AboutToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_AboutToolStripMenuItem != null)
                    _AboutToolStripMenuItem.Click -= AboutToolStripMenuItem_Click;
                _AboutToolStripMenuItem = value;
                if (_AboutToolStripMenuItem == null)
                    return;
                _AboutToolStripMenuItem.Click += AboutToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripMenuItem ArrangeIconsToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _ArrangeIconsToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_ArrangeIconsToolStripMenuItem != null)
                    _ArrangeIconsToolStripMenuItem.Click -= ArrangeIconsToolStripMenuItem_Click;
                _ArrangeIconsToolStripMenuItem = value;
                if (_ArrangeIconsToolStripMenuItem == null)
                    return;
                _ArrangeIconsToolStripMenuItem.Click += ArrangeIconsToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripMenuItem CloseAllToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _CloseAllToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_CloseAllToolStripMenuItem != null)
                    _CloseAllToolStripMenuItem.Click -= CloseAllToolStripMenuItem_Click;
                _CloseAllToolStripMenuItem = value;
                if (_CloseAllToolStripMenuItem == null)
                    return;
                _CloseAllToolStripMenuItem.Click += CloseAllToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripMenuItem NewWindowToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _NewWindowToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_NewWindowToolStripMenuItem != null)
                    _NewWindowToolStripMenuItem.Click -= ShowNewForm;
                _NewWindowToolStripMenuItem = value;
                if (_NewWindowToolStripMenuItem == null)
                    return;
                _NewWindowToolStripMenuItem.Click += ShowNewForm;
            }
        }

        internal virtual ToolStripMenuItem WindowsMenu
        {
            [DebuggerNonUserCode]
            get => _WindowsMenu;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _WindowsMenu = value; }
        }

        internal virtual ToolStripMenuItem CascadeToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _CascadeToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_CascadeToolStripMenuItem != null)
                    _CascadeToolStripMenuItem.Click -= CascadeToolStripMenuItem_Click;
                _CascadeToolStripMenuItem = value;
                if (_CascadeToolStripMenuItem == null)
                    return;
                _CascadeToolStripMenuItem.Click += CascadeToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripMenuItem TileVerticalToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _TileVerticalToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_TileVerticalToolStripMenuItem != null)
                    _TileVerticalToolStripMenuItem.Click -= TileVerticleToolStripMenuItem_Click;
                _TileVerticalToolStripMenuItem = value;
                if (_TileVerticalToolStripMenuItem == null)
                    return;
                _TileVerticalToolStripMenuItem.Click += TileVerticleToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripMenuItem TileHorizontalToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _TileHorizontalToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_TileHorizontalToolStripMenuItem != null)
                    _TileHorizontalToolStripMenuItem.Click -= TileHorizontalToolStripMenuItem_Click;
                _TileHorizontalToolStripMenuItem = value;
                if (_TileHorizontalToolStripMenuItem == null)
                    return;
                _TileHorizontalToolStripMenuItem.Click += TileHorizontalToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripMenuItem OptionsToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _OptionsToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _OptionsToolStripMenuItem = value; }
        }

        internal virtual ToolStripButton HelpToolStripButton
        {
            [DebuggerNonUserCode]
            get => _HelpToolStripButton;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _HelpToolStripButton = value; }
        }

        internal virtual ToolStripSeparator ToolStripSeparator2
        {
            [DebuggerNonUserCode]
            get => _ToolStripSeparator2;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _ToolStripSeparator2 = value; }
        }

        internal virtual ToolStripButton PrintPreviewToolStripButton
        {
            [DebuggerNonUserCode]
            get => _PrintPreviewToolStripButton;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _PrintPreviewToolStripButton = value; }
        }

        internal virtual ToolTip ToolTip
        {
            [DebuggerNonUserCode]
            get => _ToolTip;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _ToolTip = value; }
        }

        internal virtual ToolStripStatusLabel ToolStripStatusLabel
        {
            [DebuggerNonUserCode]
            get => _ToolStripStatusLabel;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _ToolStripStatusLabel = value; }
        }

        internal virtual StatusStrip StatusStrip
        {
            [DebuggerNonUserCode]
            get => _StatusStrip;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _StatusStrip = value; }
        }

        internal virtual ToolStripButton PrintToolStripButton
        {
            [DebuggerNonUserCode]
            get => _PrintToolStripButton;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _PrintToolStripButton = value; }
        }

        internal virtual ToolStripButton NewToolStripButton
        {
            [DebuggerNonUserCode]
            get => _NewToolStripButton;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_NewToolStripButton != null)
                    _NewToolStripButton.Click -= ShowNewForm;
                _NewToolStripButton = value;
                if (_NewToolStripButton == null)
                    return;
                _NewToolStripButton.Click += ShowNewForm;
            }
        }

        internal virtual ToolStrip ToolStrip
        {
            [DebuggerNonUserCode]
            get => _ToolStrip;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _ToolStrip = value; }
        }

        internal virtual ToolStripButton OpenToolStripButton
        {
            [DebuggerNonUserCode]
            get => _OpenToolStripButton;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_OpenToolStripButton != null)
                    _OpenToolStripButton.Click -= OpenFile;
                _OpenToolStripButton = value;
                if (_OpenToolStripButton == null)
                    return;
                _OpenToolStripButton.Click += OpenFile;
            }
        }

        internal virtual ToolStripButton SaveToolStripButton
        {
            [DebuggerNonUserCode]
            get => _SaveToolStripButton;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_SaveToolStripButton != null)
                    _SaveToolStripButton.Click -= SaveToolStripButton_Click;
                _SaveToolStripButton = value;
                if (_SaveToolStripButton == null)
                    return;
                _SaveToolStripButton.Click += SaveToolStripButton_Click;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator1
        {
            [DebuggerNonUserCode]
            get => _ToolStripSeparator1;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _ToolStripSeparator1 = value; }
        }

        internal virtual ToolStripMenuItem PrintPreviewToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _PrintPreviewToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _PrintPreviewToolStripMenuItem = value; }
        }

        internal virtual ToolStripMenuItem PrintToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _PrintToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _PrintToolStripMenuItem = value; }
        }

        internal virtual ToolStripSeparator ToolStripSeparator4
        {
            [DebuggerNonUserCode]
            get => _ToolStripSeparator4;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _ToolStripSeparator4 = value; }
        }

        internal virtual ToolStripMenuItem ExitToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _ExitToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_ExitToolStripMenuItem != null)
                    _ExitToolStripMenuItem.Click -= ExitToolsStripMenuItem_Click;
                _ExitToolStripMenuItem = value;
                if (_ExitToolStripMenuItem == null)
                    return;
                _ExitToolStripMenuItem.Click += ExitToolsStripMenuItem_Click;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator5
        {
            [DebuggerNonUserCode]
            get => _ToolStripSeparator5;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _ToolStripSeparator5 = value; }
        }

        internal virtual ToolStripMenuItem PrintSetupToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _PrintSetupToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _PrintSetupToolStripMenuItem = value; }
        }

        internal virtual ToolStripMenuItem SaveAsToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _SaveAsToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_SaveAsToolStripMenuItem != null)
                    _SaveAsToolStripMenuItem.Click -= SaveAsToolStripMenuItem_Click;
                _SaveAsToolStripMenuItem = value;
                if (_SaveAsToolStripMenuItem == null)
                    return;
                _SaveAsToolStripMenuItem.Click += SaveAsToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripMenuItem NewToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _NewToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_NewToolStripMenuItem != null)
                    _NewToolStripMenuItem.Click -= ShowNewForm;
                _NewToolStripMenuItem = value;
                if (_NewToolStripMenuItem == null)
                    return;
                _NewToolStripMenuItem.Click += ShowNewForm;
            }
        }

        internal virtual ToolStripMenuItem FileMenu
        {
            [DebuggerNonUserCode]
            get => _FileMenu;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _FileMenu = value; }
        }

        internal virtual ToolStripMenuItem OpenToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _OpenToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_OpenToolStripMenuItem != null)
                    _OpenToolStripMenuItem.Click -= OpenFile;
                _OpenToolStripMenuItem = value;
                if (_OpenToolStripMenuItem == null)
                    return;
                _OpenToolStripMenuItem.Click += OpenFile;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator3
        {
            [DebuggerNonUserCode]
            get => _ToolStripSeparator3;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _ToolStripSeparator3 = value; }
        }

        internal virtual ToolStripMenuItem SaveToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _SaveToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_SaveToolStripMenuItem != null)
                    _SaveToolStripMenuItem.Click -= SaveToolStripMenuItem_Click;
                _SaveToolStripMenuItem = value;
                if (_SaveToolStripMenuItem == null)
                    return;
                _SaveToolStripMenuItem.Click += SaveToolStripMenuItem_Click;
            }
        }

        internal virtual MenuStrip MenuStrip
        {
            [DebuggerNonUserCode]
            get => _MenuStrip;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _MenuStrip = value; }
        }

        internal virtual ToolStripMenuItem EditMenu
        {
            [DebuggerNonUserCode]
            get => _EditMenu;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _EditMenu = value; }
        }

        internal virtual ToolStripMenuItem UndoToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _UndoToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _UndoToolStripMenuItem = value; }
        }

        internal virtual ToolStripMenuItem RedoToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _RedoToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _RedoToolStripMenuItem = value; }
        }

        internal virtual ToolStripSeparator ToolStripSeparator6
        {
            [DebuggerNonUserCode]
            get => _ToolStripSeparator6;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _ToolStripSeparator6 = value; }
        }

        internal virtual ToolStripMenuItem CutToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _CutToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_CutToolStripMenuItem != null)
                    _CutToolStripMenuItem.Click -= CutToolStripMenuItem_Click;
                _CutToolStripMenuItem = value;
                if (_CutToolStripMenuItem == null)
                    return;
                _CutToolStripMenuItem.Click += CutToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripMenuItem CopyToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _CopyToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_CopyToolStripMenuItem != null)
                    _CopyToolStripMenuItem.Click -= CopyToolStripMenuItem_Click;
                _CopyToolStripMenuItem = value;
                if (_CopyToolStripMenuItem == null)
                    return;
                _CopyToolStripMenuItem.Click += CopyToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripMenuItem PasteToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _PasteToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_PasteToolStripMenuItem != null)
                    _PasteToolStripMenuItem.Click -= PasteToolStripMenuItem_Click;
                _PasteToolStripMenuItem = value;
                if (_PasteToolStripMenuItem == null)
                    return;
                _PasteToolStripMenuItem.Click += PasteToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator7
        {
            [DebuggerNonUserCode]
            get => _ToolStripSeparator7;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _ToolStripSeparator7 = value; }
        }

        internal virtual ToolStripMenuItem SelectAllToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _SelectAllToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _SelectAllToolStripMenuItem = value; }
        }

        internal virtual ToolStripMenuItem ViewMenu
        {
            [DebuggerNonUserCode]
            get => _ViewMenu;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _ViewMenu = value; }
        }

        internal virtual ToolStripMenuItem ToolBarToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _ToolBarToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_ToolBarToolStripMenuItem != null)
                    _ToolBarToolStripMenuItem.Click -= ToolBarToolStripMenuItem_Click;
                _ToolBarToolStripMenuItem = value;
                if (_ToolBarToolStripMenuItem == null)
                    return;
                _ToolBarToolStripMenuItem.Click += ToolBarToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripMenuItem StatusBarToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _StatusBarToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_StatusBarToolStripMenuItem != null)
                    _StatusBarToolStripMenuItem.Click -= StatusBarToolStripMenuItem_Click;
                _StatusBarToolStripMenuItem = value;
                if (_StatusBarToolStripMenuItem == null)
                    return;
                _StatusBarToolStripMenuItem.Click += StatusBarToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripMenuItem ToolsMenu
        {
            [DebuggerNonUserCode]
            get => _ToolsMenu;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _ToolsMenu = value; }
        }

        internal virtual ToolStripMenuItem TypeMenu
        {
            [DebuggerNonUserCode]
            get => _TypeMenu;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _TypeMenu = value; }
        }

        internal virtual ToolStripMenuItem 机型信息MToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _机型信息MToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_机型信息MToolStripMenuItem != null)
                    _机型信息MToolStripMenuItem.Click -= 机型信息MToolStripMenuItem_Click;
                _机型信息MToolStripMenuItem = value;
                if (_机型信息MToolStripMenuItem == null)
                    return;
                _机型信息MToolStripMenuItem.Click += 机型信息MToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripMenuItem EditMenuList
        {
            [DebuggerNonUserCode]
            get => _EditMenuList;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _EditMenuList = value; }
        }

        internal virtual ToolStripMenuItem 信道信息CToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _信道信息CToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_信道信息CToolStripMenuItem != null)
                    _信道信息CToolStripMenuItem.Click -= 信道信息CToolStripMenuItem_Click;
                _信道信息CToolStripMenuItem = value;
                if (_信道信息CToolStripMenuItem == null)
                    return;
                _信道信息CToolStripMenuItem.Click += 信道信息CToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator9
        {
            [DebuggerNonUserCode]
            get => _ToolStripSeparator9;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _ToolStripSeparator9 = value; }
        }

        internal virtual ToolStripMenuItem 整机信息OToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _整机信息OToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_整机信息OToolStripMenuItem != null)
                    _整机信息OToolStripMenuItem.Click -= 整机信息OToolStripMenuItem_Click;
                _整机信息OToolStripMenuItem = value;
                if (_整机信息OToolStripMenuItem == null)
                    return;
                _整机信息OToolStripMenuItem.Click += 整机信息OToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripMenuItem 扫描信息SToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _扫描信息SToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_扫描信息SToolStripMenuItem != null)
                    _扫描信息SToolStripMenuItem.Click -= 扫描信息SToolStripMenuItem_Click;
                _扫描信息SToolStripMenuItem = value;
                if (_扫描信息SToolStripMenuItem == null)
                    return;
                _扫描信息SToolStripMenuItem.Click += 扫描信息SToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripMenuItem 提示音AToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _提示音AToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_提示音AToolStripMenuItem != null)
                    _提示音AToolStripMenuItem.Click -= 提示音AToolStripMenuItem_Click;
                _提示音AToolStripMenuItem = value;
                if (_提示音AToolStripMenuItem == null)
                    return;
                _提示音AToolStripMenuItem.Click += 提示音AToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator10
        {
            [DebuggerNonUserCode]
            get => _ToolStripSeparator10;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _ToolStripSeparator10 = value; }
        }

        internal virtual ToolStripMenuItem 双音多频DToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _双音多频DToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_双音多频DToolStripMenuItem != null)
                    _双音多频DToolStripMenuItem.Click -= 双音多频DToolStripMenuItem_Click;
                _双音多频DToolStripMenuItem = value;
                if (_双音多频DToolStripMenuItem == null)
                    return;
                _双音多频DToolStripMenuItem.Click += 双音多频DToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripMenuItem 两音TToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _两音TToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_两音TToolStripMenuItem != null)
                    _两音TToolStripMenuItem.Click -= 两音TToolStripMenuItem_Click;
                _两音TToolStripMenuItem = value;
                if (_两音TToolStripMenuItem == null)
                    return;
                _两音TToolStripMenuItem.Click += 两音TToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripMenuItem 五音FToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _五音FToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_五音FToolStripMenuItem != null)
                    _五音FToolStripMenuItem.Click -= 五音FToolStripMenuItem_Click;
                _五音FToolStripMenuItem = value;
                if (_五音FToolStripMenuItem == null)
                    return;
                _五音FToolStripMenuItem.Click += 五音FToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator11
        {
            [DebuggerNonUserCode]
            get => _ToolStripSeparator11;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _ToolStripSeparator11 = value; }
        }

        internal virtual ToolStripMenuItem 紧急报警信息EToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _紧急报警信息EToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_紧急报警信息EToolStripMenuItem != null)
                    _紧急报警信息EToolStripMenuItem.Click -= 紧急报警信息EToolStripMenuItem_Click;
                _紧急报警信息EToolStripMenuItem = value;
                if (_紧急报警信息EToolStripMenuItem == null)
                    return;
                _紧急报警信息EToolStripMenuItem.Click += 紧急报警信息EToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripMenuItem 收音机存储信道JToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _收音机存储信道JToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_收音机存储信道JToolStripMenuItem != null)
                    _收音机存储信道JToolStripMenuItem.Click -= 收音机存储信道JToolStripMenuItem_Click;
                _收音机存储信道JToolStripMenuItem = value;
                if (_收音机存储信道JToolStripMenuItem == null)
                    return;
                _收音机存储信道JToolStripMenuItem.Click += 收音机存储信道JToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripMenuItem 嵌入信息IToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _嵌入信息IToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_嵌入信息IToolStripMenuItem != null)
                    _嵌入信息IToolStripMenuItem.Click -= 嵌入信息IToolStripMenuItem_Click;
                _嵌入信息IToolStripMenuItem = value;
                if (_嵌入信息IToolStripMenuItem == null)
                    return;
                _嵌入信息IToolStripMenuItem.Click += 嵌入信息IToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripMenuItem 对讲机信息RToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _对讲机信息RToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_对讲机信息RToolStripMenuItem != null)
                    _对讲机信息RToolStripMenuItem.Click -= 对讲机信息RToolStripMenuItem_Click;
                _对讲机信息RToolStripMenuItem = value;
                if (_对讲机信息RToolStripMenuItem == null)
                    return;
                _对讲机信息RToolStripMenuItem.Click += 对讲机信息RToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator12
        {
            [DebuggerNonUserCode]
            get => _ToolStripSeparator12;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _ToolStripSeparator12 = value; }
        }

        internal virtual ToolStripMenuItem ProgrammeMenu
        {
            [DebuggerNonUserCode]
            get => _ProgrammeMenu;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _ProgrammeMenu = value; }
        }

        internal virtual ToolStripMenuItem 从对讲机读取数据RToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _从对讲机读取数据RToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_从对讲机读取数据RToolStripMenuItem != null)
                    _从对讲机读取数据RToolStripMenuItem.Click -= 从对讲机读取数据RToolStripMenuItem_Click;
                _从对讲机读取数据RToolStripMenuItem = value;
                if (_从对讲机读取数据RToolStripMenuItem == null)
                    return;
                _从对讲机读取数据RToolStripMenuItem.Click += 从对讲机读取数据RToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripMenuItem 向对讲机写入数据WToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _向对讲机写入数据WToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_向对讲机写入数据WToolStripMenuItem != null)
                    _向对讲机写入数据WToolStripMenuItem.Click -= 向对讲机写入数据WToolStripMenuItem_Click;
                _向对讲机写入数据WToolStripMenuItem = value;
                if (_向对讲机写入数据WToolStripMenuItem == null)
                    return;
                _向对讲机写入数据WToolStripMenuItem.Click += 向对讲机写入数据WToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripMenuItem SetMenu
        {
            [DebuggerNonUserCode]
            get => _SetMenu;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _SetMenu = value; }
        }

        internal virtual ToolStripMenuItem 语言设置LToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _语言设置LToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _语言设置LToolStripMenuItem = value; }
        }

        internal virtual ToolStripMenuItem 通信端口PToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _通信端口PToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_通信端口PToolStripMenuItem != null)
                    _通信端口PToolStripMenuItem.Click -= 通信端口PToolStripMenuItem_Click;
                _通信端口PToolStripMenuItem = value;
                if (_通信端口PToolStripMenuItem == null)
                    return;
                _通信端口PToolStripMenuItem.Click += 通信端口PToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripMenuItem 更改密码CToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _更改密码CToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_更改密码CToolStripMenuItem != null)
                    _更改密码CToolStripMenuItem.Click -= 更改密码CToolStripMenuItem_Click;
                _更改密码CToolStripMenuItem = value;
                if (_更改密码CToolStripMenuItem == null)
                    return;
                _更改密码CToolStripMenuItem.Click += 更改密码CToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripMenuItem TreeViewToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _TreeViewToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_TreeViewToolStripMenuItem != null)
                    _TreeViewToolStripMenuItem.Click -= TreeViewToolStripMenuItem_Click;
                _TreeViewToolStripMenuItem = value;
                if (_TreeViewToolStripMenuItem == null)
                    return;
                _TreeViewToolStripMenuItem.Click += TreeViewToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator13
        {
            [DebuggerNonUserCode]
            get => _ToolStripSeparator13;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _ToolStripSeparator13 = value; }
        }

        internal virtual ToolStripSeparator ToolStripSeparator14
        {
            [DebuggerNonUserCode]
            get => _ToolStripSeparator14;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _ToolStripSeparator14 = value; }
        }

        internal virtual ToolStripMenuItem 帮助主题HToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _帮助主题HToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _帮助主题HToolStripMenuItem = value; }
        }

        internal virtual Panel Panel1
        {
            [DebuggerNonUserCode]
            get => _Panel1;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set => _Panel1 = value;
        }

        internal virtual TreeView EditMenuListTreeView
        {
            [DebuggerNonUserCode]
            get => _EditMenuListTreeView;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_EditMenuListTreeView != null)
                    _EditMenuListTreeView.NodeMouseClick -= EditMenuListTreeView_NodeMouseClick;
                _EditMenuListTreeView = value;
                if (_EditMenuListTreeView == null)
                    return;
                _EditMenuListTreeView.NodeMouseClick += EditMenuListTreeView_NodeMouseClick;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator15
        {
            [DebuggerNonUserCode]
            get => _ToolStripSeparator15;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _ToolStripSeparator15 = value; }
        }

        internal virtual SerialPort SerialPort1
        {
            [DebuggerNonUserCode]
            get => _SerialPort1;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_SerialPort1 != null)
                    _SerialPort1.DataReceived -= SerialPort1_DataReceived;
                _SerialPort1 = value;
                if (_SerialPort1 == null)
                    return;
                _SerialPort1.DataReceived += SerialPort1_DataReceived;
            }
        }

        internal virtual System.Windows.Forms.Timer Timer1
        {
            [DebuggerNonUserCode]
            get => _Timer1;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_Timer1 != null)
                    _Timer1.Tick -= Timer1_Tick;
                _Timer1 = value;
                if (_Timer1 == null)
                    return;
                _Timer1.Tick += Timer1_Tick;
            }
        }

        internal virtual ToolStripButton ReadToolStripButton
        {
            [DebuggerNonUserCode]
            get => _ReadToolStripButton;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_ReadToolStripButton != null)
                    _ReadToolStripButton.Click -= ReadToolStripButton_Click;
                _ReadToolStripButton = value;
                if (_ReadToolStripButton == null)
                    return;
                _ReadToolStripButton.Click += ReadToolStripButton_Click;
            }
        }

        internal virtual ToolStripButton ComPortToolStripButton
        {
            [DebuggerNonUserCode]
            get => _ComPortToolStripButton;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_ComPortToolStripButton != null)
                    _ComPortToolStripButton.Click -= ComPortToolStripButton_Click;
                _ComPortToolStripButton = value;
                if (_ComPortToolStripButton == null)
                    return;
                _ComPortToolStripButton.Click += ComPortToolStripButton_Click;
            }
        }

        internal virtual ToolStripButton WriteToolStripButton
        {
            [DebuggerNonUserCode]
            get => _WriteToolStripButton;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_WriteToolStripButton != null)
                    _WriteToolStripButton.Click -= WriteToolStripButton_Click;
                _WriteToolStripButton = value;
                if (_WriteToolStripButton == null)
                    return;
                _WriteToolStripButton.Click += WriteToolStripButton_Click;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator16
        {
            [DebuggerNonUserCode]
            get => _ToolStripSeparator16;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set { _ToolStripSeparator16 = value; }
        }

        internal virtual ToolStripMenuItem 中文ToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _中文ToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_中文ToolStripMenuItem != null)
                    _中文ToolStripMenuItem.Click -= 中文ToolStripMenuItem_Click;
                _中文ToolStripMenuItem = value;
                if (_中文ToolStripMenuItem == null)
                    return;
                _中文ToolStripMenuItem.Click += 中文ToolStripMenuItem_Click;
            }
        }

        internal virtual ToolStripMenuItem 英文ToolStripMenuItem
        {
            [DebuggerNonUserCode]
            get => _英文ToolStripMenuItem;
            [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (_英文ToolStripMenuItem != null)
                    _英文ToolStripMenuItem.Click -= 英文ToolStripMenuItem_Click;
                _英文ToolStripMenuItem = value;
                if (_英文ToolStripMenuItem == null)
                    return;
                _英文ToolStripMenuItem.Click += 英文ToolStripMenuItem_Click;
            }
        }

        private void ShowNewForm(object sender, EventArgs e)
        {
            try
            {
                var streamReader = File.OpenText(Application.StartupPath + "\\default_data.hpg");
                var index = 0;
                do
                {
                    publicva.EEPROM_Byte[index] = Conversions.ToByte("&h" + streamReader.ReadLine());
                    checked
                    {
                        ++index;
                    }
                }
                while (index <= short.MaxValue);

                streamReader.Close();
                AllForm_LoadData(RuntimeHelpers.GetObjectValue(sender), e);
                FormTreeViewHide();
            }
            catch (Exception ex)
            {
                ProjectData.SetProjectError(ex);
                ProjectData.ClearProjectError();
            }

            publicva.Rw_PasswordStr = "";
        }

        private void OpenFile(object sender, EventArgs e)
        {
            var openFileDialog = new OpenFileDialog();
            openFileDialog.InitialDirectory = MyProject.Computer.FileSystem.SpecialDirectories.MyDocuments;
            openFileDialog.Filter = "数据文件(*.hpg)|*.hpg";
            if (openFileDialog.ShowDialog(this) != DialogResult.OK)
                return;
            var streamReader = new StreamReader(openFileDialog.FileName);
            var index = 0;
            do
            {
                publicva.EEPROM_Byte[index] = Conversions.ToByte("&h" + streamReader.ReadLine());
                checked
                {
                    ++index;
                }
            }
            while (index <= short.MaxValue);

            streamReader.Close();
            AllForm_LoadData(RuntimeHelpers.GetObjectValue(sender), e);
            FormTreeViewHide();
        }

        private void SaveAsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var saveFileDialog = new SaveFileDialog();
            saveFileDialog.InitialDirectory = MyProject.Computer.FileSystem.SpecialDirectories.MyDocuments;
            saveFileDialog.Filter = "数据文件(*.hpg)|*.hpg";
            if (saveFileDialog.ShowDialog(this) != DialogResult.OK)
                return;
            var fileName = saveFileDialog.FileName;
            AllForm_SaveData(RuntimeHelpers.GetObjectValue(sender), e);
            var streamWriter = new StreamWriter(fileName);
            var startIndex = 0;
            do
            {
                streamWriter.WriteLine(BitConverter.ToString(publicva.EEPROM_Byte, startIndex, 1));
                checked
                {
                    ++startIndex;
                }
            }
            while (startIndex <= short.MaxValue);

            streamWriter.Close();
        }

        private void ExitToolsStripMenuItem_Click(object sender, EventArgs e) => Application.Exit();

        private void CutToolStripMenuItem_Click(object sender, EventArgs e)
        {
        }

        private void CopyToolStripMenuItem_Click(object sender, EventArgs e)
        {
        }

        private void PasteToolStripMenuItem_Click(object sender, EventArgs e)
        {
        }

        private void ToolBarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ToolStrip.Visible = ToolBarToolStripMenuItem.Checked;
        }

        private void StatusBarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            StatusStrip.Visible = StatusBarToolStripMenuItem.Checked;
        }

        private void CascadeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LayoutMdi(MdiLayout.Cascade);
        }

        private void TileVerticleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LayoutMdi(MdiLayout.TileVertical);
        }

        private void TileHorizontalToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LayoutMdi(MdiLayout.TileHorizontal);
        }

        private void ArrangeIconsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LayoutMdi(MdiLayout.ArrangeIcons);
        }

        private void CloseAllToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var mdiChildren = MdiChildren;
            var index = 0;
            while (index < mdiChildren.Length)
            {
                mdiChildren[index]
                    .Close();
                checked
                {
                    ++index;
                }
            }
        }

        private void MDIParent1_Load(object sender, EventArgs e)
        {
            MyProject.Forms.ComForm.GetSerialPortNames();
            publicva.ChangeCOM_Count = 0U;
            publicva.COM_SelectIndex = 0U;
            MyProject.Forms.ComForm.ComboBox1.SelectedIndex = checked((int) publicva.COM_SelectIndex);
            SerialPort1.PortName = Conversions.ToString(MyProject.Forms.ComForm.ComboBox1.Items[checked((int) publicva.COM_SelectIndex)]);
            MyProject.Forms.TypeMsgForm.ComboBox机型.SelectedIndex = 0;
            try
            {
                var streamReader = File.OpenText(Application.StartupPath + "\\Config.hpg");
                publicva.Language = streamReader.ReadLine();
                streamReader.Close();
            }
            catch (Exception ex)
            {
                ProjectData.SetProjectError(ex);
                publicva.Language = "en-US";
                ProjectData.ClearProjectError();
            }

            if (Operators.CompareString(publicva.Language, "zh-CN", false) == 0)
            {
                中文ToolStripMenuItem.Checked = true;
                英文ToolStripMenuItem.Checked = false;
            }
            else
            {
                中文ToolStripMenuItem.Checked = false;
                英文ToolStripMenuItem.Checked = true;
            }

            ChangeLanguage(publicva.Language);
            EditMenuListTreeView.Nodes[0]
                .Expand();
            MyProject.Forms.ChannelMsg.MdiParent = this;
            MyProject.Forms.ChannelMsg.Show();
            MyProject.Forms.ChannelMsg.Focus();
            ShowNewForm(RuntimeHelpers.GetObjectValue(sender), e);
            Get_FreqRang();
            publicva.LastProgrammeTime = Conversions.ToString(DateAndTime.Now.Year) + "-" + Conversions.ToString(DateAndTime.Now.Month) + "-" +
                                         Conversions.ToString(DateAndTime.Now.Day);
        }

        private void TreeViewToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Panel1.Visible = TreeViewToolStripMenuItem.Checked;
        }

        private void EditMenuListTreeView_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            var name = e.Node.Name;
            if (Operators.CompareString(name, "节点1", false) == 0)
                SafeLoadWindowByName(MyProject.Forms.ChannelMsg);
            else if (Operators.CompareString(name, "节点2", false) == 0)
                SafeLoadWindowByName(MyProject.Forms.TypeFuncMsgForm);
            else if (Operators.CompareString(name, "节点3", false) == 0)
                SafeLoadWindowByName(MyProject.Forms.ScanFuncMsgForm);
            else if (Operators.CompareString(name, "节点4", false) == 0)
                SafeLoadWindowByName(MyProject.Forms.BeepForm);
            else if (Operators.CompareString(name, "节点5", false) == 0)
                SafeLoadWindowByName(MyProject.Forms.DtmfForm);
            else if (Operators.CompareString(name, "节点6", false) == 0)
                SafeLoadWindowByName(MyProject.Forms._2ToneForm);
            else if (Operators.CompareString(name, "节点7", false) == 0)
                SafeLoadWindowByName(MyProject.Forms._5ToneForm);
            else if (Operators.CompareString(name, "节点8", false) == 0)
                SafeLoadWindowByName(MyProject.Forms.SOSMsgForm);
            else if (Operators.CompareString(name, "节点9", false) == 0)
                SafeLoadWindowByName(MyProject.Forms.RadioMsgForm);
            else if (Operators.CompareString(name, "节点10", false) == 0)
            {
                SafeLoadWindowByName(MyProject.Forms.MsgForm);
            }
            else
            {
                if (Operators.CompareString(name, "节点11", false) != 0)
                    return;
                SafeLoadWindowByName(MyProject.Forms.SofeMsgForm);
            }
        }

        private void FormTreeViewHide()
        {
            var index1 = 10;
            var strArray1 = new[,]
            {
                {
                    "HPG-68D",
                    "节点0"
                },
                {
                    "信道信息",
                    "节点1"
                },
                {
                    "整机信息",
                    "节点2"
                },
                {
                    "扫描信息",
                    "节点3"
                },
                {
                    "提示音",
                    "节点4"
                },
                {
                    "双音多频",
                    "节点5"
                },
                {
                    "两音",
                    "节点6"
                },
                {
                    "五音",
                    "节点7"
                },
                {
                    "紧急报警信息",
                    "节点8"
                },
                {
                    "收音机存储信道",
                    "节点9"
                },
                {
                    "嵌入信息",
                    "节点10"
                },
                {
                    "对讲机信息",
                    "节点11"
                }
            };
            var strArray2 = new[,]
            {
                {
                    "HPG-68D",
                    "节点0"
                },
                {
                    "Channel Information",
                    "节点1"
                },
                {
                    "Optional Features",
                    "节点2"
                },
                {
                    "Scan Information",
                    "节点3"
                },
                {
                    "Alert Tone",
                    "节点4"
                },
                {
                    "DTMF",
                    "节点5"
                },
                {
                    "2-Tone",
                    "节点6"
                },
                {
                    "5-Tone",
                    "节点7"
                },
                {
                    "Emergency Information",
                    "节点8"
                },
                {
                    "Receiver Only Memory",
                    "节点9"
                },
                {
                    "Embedded Message",
                    "节点10"
                },
                {
                    "Radio Information",
                    "节点11"
                }
            };
            EditMenuListTreeView.Nodes.Clear();

            EditMenuListTreeView.Nodes.Add(strArray2[0, 0]);
            EditMenuListTreeView.Nodes[0].Name = strArray2[0, 1];
            EditMenuListTreeView.SelectedNode = EditMenuListTreeView.Nodes[0];
            var index3 = 1;
            do
            {
                EditMenuListTreeView.SelectedNode.Nodes.Add(strArray2[index3, 0]);
                EditMenuListTreeView.SelectedNode.Nodes[checked(index3 - 1)].Name = strArray2[index3, 1];
                checked
                {
                    ++index3;
                }
            }
            while (index3 <= 11);

            if ((publicva.EEPROM_Byte[index1] & (uint) publicva.Bit5) > 0U)
            {
                五音FToolStripMenuItem.Visible = true;
            }
            else
            {
                EditMenuListTreeView.Nodes[0]
                    .Nodes[6]
                    .Remove();
                五音FToolStripMenuItem.Visible = false;
                if (JudgeIsFormLoaded(MyProject.Forms._5ToneForm))
                    MyProject.Forms._5ToneForm.Close();
            }

            if ((publicva.EEPROM_Byte[index1] & (uint) publicva.Bit4) > 0U)
            {
                两音TToolStripMenuItem.Visible = true;
            }
            else
            {
                EditMenuListTreeView.Nodes[0]
                    .Nodes[5]
                    .Remove();
                两音TToolStripMenuItem.Visible = false;
                if (JudgeIsFormLoaded(MyProject.Forms._2ToneForm))
                    MyProject.Forms._2ToneForm.Close();
            }

            if ((publicva.EEPROM_Byte[index1] & (uint) publicva.Bit0) > 0U)
            {
                双音多频DToolStripMenuItem.Visible = true;
            }
            else
            {
                EditMenuListTreeView.Nodes[0]
                    .Nodes[4]
                    .Remove();
                双音多频DToolStripMenuItem.Visible = false;
                if (JudgeIsFormLoaded(MyProject.Forms.DtmfForm))
                    MyProject.Forms.DtmfForm.Close();
            }

            if ((publicva.EEPROM_Byte[index1] & publicva.Bit5 | publicva.EEPROM_Byte[index1] & publicva.Bit4) != 0)
            {
                提示音AToolStripMenuItem.Visible = true;
            }
            else
            {
                EditMenuListTreeView.Nodes[0]
                    .Nodes[3]
                    .Remove();
                提示音AToolStripMenuItem.Visible = false;
                if (JudgeIsFormLoaded(MyProject.Forms.BeepForm))
                    MyProject.Forms.BeepForm.Close();
            }

            EditMenuListTreeView.Nodes[0]
                .Expand();
        }

        public void SafeLoadWindowByName(Form rFrm)
        {
            var mdiChildren = MdiChildren;
            var index = 0;
            while (index < mdiChildren.Length)
            {
                var form = mdiChildren[index];
                if (Operators.CompareString(form.Name, rFrm.Name, false) == 0)
                {
                    form.Focus();
                    return;
                }

                checked
                {
                    ++index;
                }
            }

            rFrm.MdiParent = this;
            rFrm.Show();
            rFrm.Focus();
        }

        public bool JudgeIsFormLoaded(Form rFrm)
        {
            var mdiChildren = MdiChildren;
            var index = 0;
            while (index < mdiChildren.Length)
            {
                if (Operators.CompareString(mdiChildren[index].Name, rFrm.Name, false) == 0)
                    return true;
                checked
                {
                    ++index;
                }
            }

            return false;
        }

        public void AllForm_LoadData(object sender, EventArgs e)
        {
            if (JudgeIsFormLoaded(MyProject.Forms.BeepForm))
                MyProject.Forms.BeepForm.BeepForm_Load(RuntimeHelpers.GetObjectValue(sender), e);
            if (JudgeIsFormLoaded(MyProject.Forms._2ToneForm))
                MyProject.Forms._2ToneForm._2ToneForm_Load(RuntimeHelpers.GetObjectValue(sender), e);
            if (JudgeIsFormLoaded(MyProject.Forms._5ToneForm))
                MyProject.Forms._5ToneForm._5ToneForm_Load(RuntimeHelpers.GetObjectValue(sender), e);
            if (JudgeIsFormLoaded(MyProject.Forms.DtmfForm))
                MyProject.Forms.DtmfForm.DtmfForm_Load(RuntimeHelpers.GetObjectValue(sender), e);
            if (JudgeIsFormLoaded(MyProject.Forms.RadioMsgForm))
                MyProject.Forms.RadioMsgForm.RadioMsgForm_Load(RuntimeHelpers.GetObjectValue(sender), e);
            if (JudgeIsFormLoaded(MyProject.Forms.ChannelMsg))
                MyProject.Forms.ChannelMsg.ChannelMsg_Load(RuntimeHelpers.GetObjectValue(sender), e);
            if (JudgeIsFormLoaded(MyProject.Forms.ScanFuncMsgForm))
                MyProject.Forms.ScanFuncMsgForm.ScanFuncMsgForm_Load(RuntimeHelpers.GetObjectValue(sender), e);
            if (JudgeIsFormLoaded(MyProject.Forms.SOSMsgForm))
                MyProject.Forms.SOSMsgForm.SOSMsgForm_Load(RuntimeHelpers.GetObjectValue(sender), e);
            if (JudgeIsFormLoaded(MyProject.Forms.TypeFuncMsgForm))
                MyProject.Forms.TypeFuncMsgForm.TypeFuncMsgForm_Load(RuntimeHelpers.GetObjectValue(sender), e);
            if (JudgeIsFormLoaded(MyProject.Forms.MsgForm))
                MyProject.Forms.MsgForm.MsgForm_Load(RuntimeHelpers.GetObjectValue(sender), e);
            if (!JudgeIsFormLoaded(MyProject.Forms.SofeMsgForm))
                return;
            MyProject.Forms.SofeMsgForm.SofeMsgForm_Load(RuntimeHelpers.GetObjectValue(sender), e);
        }

        public void AllForm_SaveData(object sender, EventArgs e)
        {
            if (JudgeIsFormLoaded(MyProject.Forms.BeepForm))
                MyProject.Forms.BeepForm.BeepForm_Deactivate(RuntimeHelpers.GetObjectValue(sender), e);
            if (JudgeIsFormLoaded(MyProject.Forms._2ToneForm))
                MyProject.Forms._2ToneForm._2ToneForm_Deactivate(RuntimeHelpers.GetObjectValue(sender), e);
            if (JudgeIsFormLoaded(MyProject.Forms._5ToneForm))
                MyProject.Forms._5ToneForm._5ToneForm_Deactivate(RuntimeHelpers.GetObjectValue(sender), e);
            if (JudgeIsFormLoaded(MyProject.Forms.DtmfForm))
                MyProject.Forms.DtmfForm.DtmfForm_Deactivate(RuntimeHelpers.GetObjectValue(sender), e);
            if (JudgeIsFormLoaded(MyProject.Forms.RadioMsgForm))
                MyProject.Forms.RadioMsgForm.RadioMsgForm_Deactivate(RuntimeHelpers.GetObjectValue(sender), e);
            if (JudgeIsFormLoaded(MyProject.Forms.ChannelMsg))
                MyProject.Forms.ChannelMsg.ChannelMsg_Deactivate(RuntimeHelpers.GetObjectValue(sender), e);
            if (JudgeIsFormLoaded(MyProject.Forms.ScanFuncMsgForm))
                MyProject.Forms.ScanFuncMsgForm.ScanFuncMsgForm_Deactivate(RuntimeHelpers.GetObjectValue(sender), e);
            if (JudgeIsFormLoaded(MyProject.Forms.SOSMsgForm))
                MyProject.Forms.SOSMsgForm.SOSMsgForm_Deactivate(RuntimeHelpers.GetObjectValue(sender), e);
            if (JudgeIsFormLoaded(MyProject.Forms.TypeFuncMsgForm))
                MyProject.Forms.TypeFuncMsgForm.TypeFuncMsgForm_Deactivate(RuntimeHelpers.GetObjectValue(sender), e);
            if (!JudgeIsFormLoaded(MyProject.Forms.MsgForm))
                return;
            MyProject.Forms.MsgForm.MsgForm_Deactivate(RuntimeHelpers.GetObjectValue(sender), e);
        }

        public void SetControl_Text(Control objectX, int address)
        {
            if (!(objectX is ComboBox))
                return;
            if (((ComboBox) objectX).FindStringExact(publicva.EEPROM_Byte[address]
                    .ToString()) != -1)
                ((ComboBox) objectX).Text = Conversions.ToString(publicva.EEPROM_Byte[address]);
            else
                ((ComboBox) objectX).SelectedIndex = 0;
        }

        public void GetContol_Data(Control objectX, int address)
        {
            if (!(objectX is ComboBox))
                return;
            publicva.EEPROM_Byte[address] =
                !(((ComboBox) objectX).FindStringExact(((ComboBox) objectX).Text) == -1 | ((ComboBox) objectX).SelectedIndex == 0)
                    ? Conversions.ToByte(((ComboBox) objectX).Text)
                    : (byte) 0;
        }

        public void Judge_SetControl_SetControl_U8_Data(
            Control object_x,
            int address,
            byte AndBit,
            int Right_No)
        {
            if (!(object_x is ComboBox))
                return;
            if (((ComboBox) object_x).FindString(publicva.EEPROM_Byte[address]
                    .ToString()) == -1)
                publicva.EEPROM_Byte[address] = 0;
            SetControl_U8_Data(object_x, address, AndBit, Right_No);
        }

        public void SetControl_U8_Data(Control objectX, int address, byte andBit, int rightNo)
        {
            if (objectX is ComboBox)
            {
                try
                {
                    ((ComboBox) objectX).SelectedIndex = (byte) ((publicva.EEPROM_Byte[address] & (uint) andBit) >> (rightNo & 7));
                }
                catch (Exception ex)
                {
                    ProjectData.SetProjectError(ex);
                    var num = (int) Interaction.MsgBox(objectX.Name + " 溢出出错值: " +
                                                       ((byte) ((publicva.EEPROM_Byte[address] & (uint) andBit) >> (rightNo & 7))));
                    ((ComboBox) objectX).SelectedIndex = 0;
                    ProjectData.ClearProjectError();
                }
            }

            if (!(objectX is CheckBox))
                return;
            try
            {
                if (rightNo != 0)
                    ((CheckBox) objectX).Checked = ((byte) ~(publicva.EEPROM_Byte[address] & andBit) & (uint) andBit) > 0U;
                else
                    ((CheckBox) objectX).Checked = (publicva.EEPROM_Byte[address] & (uint) andBit) > 0U;
            }
            catch (Exception ex)
            {
                ProjectData.SetProjectError(ex);
                var num = (int) Interaction.MsgBox(objectX.Name + " 溢出出错值: " + ((byte) (publicva.EEPROM_Byte[address] & andBit)));
                ((CheckBox) objectX).Checked = false;
                ProjectData.ClearProjectError();
            }
        }

        public void GetControl_U8_Data(Control object_x, int address, byte AndBit, int Right_No)
        {
            if (object_x is ComboBox)
            {
                publicva.EEPROM_Byte[address] = (byte) (publicva.EEPROM_Byte[address] & ~AndBit);
                publicva.EEPROM_Byte[address] = checked((byte) (publicva.EEPROM_Byte[address] | ((ComboBox) object_x).SelectedIndex << Right_No));
            }

            if (!(object_x is CheckBox))
                return;
            publicva.EEPROM_Byte[address] = !((CheckBox) object_x).Checked
                ? (Right_No == 0 ? (byte) (publicva.EEPROM_Byte[address] & ~AndBit) : (byte) (publicva.EEPROM_Byte[address] | AndBit))
                : (Right_No == 0 ? (byte) (publicva.EEPROM_Byte[address] | AndBit) : (byte) (publicva.EEPROM_Byte[address] & ~AndBit));
        }

        public object Get_2ByteToU16_L_H(int address)
        {
            return checked(publicva.EEPROM_Byte[address + 1] * 256 + publicva.EEPROM_Byte[address + 0] * 1);
        }

        public void Set_U16To2Byte_L_H(int value, int address)
        {
            publicva.EEPROM_Byte[checked(address + 1)] = checked((byte) ((value & 65280) >> 8));
            publicva.EEPROM_Byte[checked(address + 0)] = checked((byte) (value & byte.MaxValue));
        }

        public object Get_4ByteToU32_L_H(int address)
        {
            return checked(publicva.EEPROM_Byte[address + 3] * 16777216 + publicva.EEPROM_Byte[address + 2] * 65536 +
                           publicva.EEPROM_Byte[address + 1] * 256 + publicva.EEPROM_Byte[address + 0] * 1);
        }

        private void Set_U32To4Byte_L_H(int value, int address)
        {
            publicva.EEPROM_Byte[checked(address + 3)] = checked((byte) ((value & -16777216) >> 24));
            publicva.EEPROM_Byte[checked(address + 2)] = checked((byte) ((value & 16711680) >> 16));
            publicva.EEPROM_Byte[checked(address + 1)] = checked((byte) ((value & 65280) >> 8));
            publicva.EEPROM_Byte[checked(address + 0)] = checked((byte) (value & byte.MaxValue));
        }

        private void Get_FreqRang()
        {
            var num = 768;
            var index = 0;
            do
            {
                publicva.RxFreqRang[index, 0] = Conversions.ToUInteger(Get_4ByteToU32_L_H(checked(num + 0 + index * 16)));
                publicva.RxFreqRang[index, 1] = Conversions.ToUInteger(Get_4ByteToU32_L_H(checked(num + 4 + index * 16)));
                publicva.TxFreqRang[index, 0] = Conversions.ToUInteger(Get_4ByteToU32_L_H(checked(num + 8 + index * 16)));
                publicva.TxFreqRang[index, 1] = Conversions.ToUInteger(Get_4ByteToU32_L_H(checked(num + 12 + index * 16)));
                checked
                {
                    ++index;
                }
            }
            while (index <= 6);
        }

        public void Set_FreqRang()
        {
            var num = 768;
            var index = 0;
            do
            {
                Set_U32To4Byte_L_H(checked((int) publicva.RxFreqRang[index, 0]), checked(num + 0 + index * 16));
                Set_U32To4Byte_L_H(checked((int) publicva.RxFreqRang[index, 1]), checked(num + 4 + index * 16));
                Set_U32To4Byte_L_H(checked((int) publicva.TxFreqRang[index, 0]), checked(num + 8 + index * 16));
                Set_U32To4Byte_L_H(checked((int) publicva.TxFreqRang[index, 1]), checked(num + 12 + index * 16));
                checked
                {
                    ++index;
                }
            }
            while (index <= 6);
        }

        private void SaveToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SaveAsToolStripMenuItem_Click(RuntimeHelpers.GetObjectValue(sender), e);
        }

        private void SaveToolStripButton_Click(object sender, EventArgs e)
        {
            SaveAsToolStripMenuItem_Click(RuntimeHelpers.GetObjectValue(sender), e);
        }

        private void 通信端口PToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var num = (int) MyProject.Forms.ComForm.ShowDialog();
        }

        private bool JudgeArrayDataIsSame(byte[] source, byte[] input)
        {
            var num = Information.UBound(source);
            var index = 0;
            while (index <= num)
            {
                if (source[index] != input[index])
                    return false;
                checked
                {
                    ++index;
                }
            }

            return true;
        }

        private object Get_CRC_Data(byte[] UARTDATA)
        {
            var num1 = 0;
            var num2 = checked((uint) (UARTDATA[6] + 3 - 1));
            uint num3 = 0;
            while (num3 <= num2)
            {
                num1 = checked(num1 + UARTDATA[(int) (4L + num3)]) & byte.MaxValue;
                checked
                {
                    ++num3;
                }
            }

            return checked(25 - num1 & byte.MaxValue ^ byte.MaxValue + 1) & byte.MaxValue;
        }

        private void Tx_WriteDataCOM_Frame()
        {
            publicva.SendDataBuf[0] = 2;
            publicva.SendDataBuf[1] = 35;
            publicva.SendDataBuf[2] = 230;
            publicva.SendDataBuf[3] = 245;
            publicva.SendDataBuf[4] =
                checked((byte) unchecked(publicva.Rw_EEPROM_Add_Length_List[checked((int) publicva.Rw_EEPROM_Add_Length_ListIndex), 0] / 256L));
            publicva.SendDataBuf[5] =
                checked((byte) unchecked(publicva.Rw_EEPROM_Add_Length_List[checked((int) publicva.Rw_EEPROM_Add_Length_ListIndex), 0] % 256L));
            publicva.SendDataBuf[6] = checked((byte) publicva.Rw_EEPROM_Add_Length_List[(int) publicva.Rw_EEPROM_Add_Length_ListIndex, 1]);
            var num1 = checked((uint) (publicva.SendDataBuf[6] - 1));
            uint num2 = 0;
            while (num2 <= num1)
            {
                publicva.SendDataBuf[checked((int) (7L + num2))] =
                    publicva.EEPROM_Byte
                        [checked((int) (publicva.Rw_EEPROM_Add_Length_List[(int) publicva.Rw_EEPROM_Add_Length_ListIndex, 0] + num2))];
                checked
                {
                    ++num2;
                }
            }

            var index = checked(7 + publicva.SendDataBuf[6]);
            publicva.SendDataBuf[index] = Conversions.ToByte(Get_CRC_Data(publicva.SendDataBuf));
            publicva.SendDataBuf[checked(index + 1)] = 3;
            publicva.ReceivedCount = 5U;
            SerialPort1.Write(publicva.SendDataBuf, 0, checked(7 + publicva.SendDataBuf[6] + 1 + 1));
        }

        private void WriteDataToPC_EEPROM_Byte()
        {
            var num1 = checked((uint) (publicva.ReceivedDataBuf[6] - 1));
            uint num2 = 0;
            while (num2 <= num1)
            {
                publicva.EEPROM_Byte[checked((int) (publicva.Rw_EEPROM_Add_Length_List[(int) publicva.Rw_EEPROM_Add_Length_ListIndex, 0] + num2))] =
                    publicva.ReceivedDataBuf[checked((int) (7L + num2))];
                checked
                {
                    ++num2;
                }
            }
        }

        private void Tx_ReadDataCOM_Frame()
        {
            publicva.SendDataBuf[0] = 2;
            publicva.SendDataBuf[1] = 35;
            publicva.SendDataBuf[2] = 229;
            publicva.SendDataBuf[3] = 246;
            publicva.SendDataBuf[4] =
                checked((byte) unchecked(publicva.Rw_EEPROM_Add_Length_List[checked((int) publicva.Rw_EEPROM_Add_Length_ListIndex), 0] / 256L));
            publicva.SendDataBuf[5] =
                checked((byte) unchecked(publicva.Rw_EEPROM_Add_Length_List[checked((int) publicva.Rw_EEPROM_Add_Length_ListIndex), 0] % 256L));
            publicva.SendDataBuf[6] = checked((byte) publicva.Rw_EEPROM_Add_Length_List[(int) publicva.Rw_EEPROM_Add_Length_ListIndex, 1]);
            publicva.SendDataBuf[7] = 3;
            publicva.ReceivedCount = checked((uint) (7 + publicva.SendDataBuf[6] + 1 + 1));
            SerialPort1.Write(publicva.SendDataBuf, 0, 8);
        }

        public bool MSCcomm_StartInit(string MscommComStr, uint[,] AddressList)
        {
            bool flag;
            try
            {
                if (!SerialPort1.IsOpen)
                {
                    SerialPort1.Open();
                }
                else
                {
                    MyProject.Forms.ChannelMsg.Msgbox_Msg("Can not open serial port, check whether the port is occupied by other programs!!!");
                    flag = false;
                    goto label_9;
                }
            }
            catch (Exception ex)
            {
                ProjectData.SetProjectError(ex);
                MyProject.Forms.ChannelMsg.Msgbox_Msg("Can not open serial port, check whether the port is occupied by other programs!!!");
                flag = false;
                ProjectData.ClearProjectError();
                goto label_9;
            }

            SerialPort1.DiscardNull = true;
            publicva.F_MSCommStop = false;
            publicva.MSCommTimeOut = 60U;
            publicva.MSCommReconnectionCount = 0U;
            publicva.ChangeCOM_Count = 0U;
            publicva.MSCommStatus = 0U;
            publicva.MscommCom = MscommComStr;
            publicva.ReceivedCount = 5U;
            publicva.Rw_EEPROM_Add_Length_ListIndex = 0U;
            publicva.Rw_EEPROM_Add_Length_ListSum = checked((uint) (Information.UBound(AddressList) + 1));
            var num = checked((uint) Information.UBound(AddressList));
            uint index = 0;
            while (index <= num)
            {
                publicva.Rw_EEPROM_Add_Length_List[checked((int) index), 0] = AddressList[checked((int) index), 0];
                publicva.Rw_EEPROM_Add_Length_List[checked((int) index), 1] = AddressList[checked((int) index), 1];
                checked
                {
                    ++index;
                }
            }

            SerialPort1.Write(publicva.Tx_Connect, 0, publicva.Tx_Connect.Length);
            Timer1.Enabled = true;
            publicva.LastProgrammeTime = Conversions.ToString(DateAndTime.Now.Year) + "-" + Conversions.ToString(DateAndTime.Now.Month) + "-" +
                                         Conversions.ToString(DateAndTime.Now.Day);
            flag = true;
            label_9:
            return flag;
        }

        public void MSComm_Stop()
        {
            Timer1.Enabled = false;
            publicva.MSCommTimeOut = 0U;
            publicva.ChangeCOM_CNT = 0U;
            publicva.F_MSCommStop = true;
            publicva.ReceivedCount = 5U;
            SerialPort1.DiscardNull = true;
            if (!SerialPort1.IsOpen)
                return;
            Thread.Sleep(500);
            Application.DoEvents();
            SerialPort1.Close();
        }

        private void SerialPort1_DataReceived(object sender, SerialDataReceivedEventArgs e)
        {
            if (SerialPort1.BytesToRead < publicva.ReceivedCount)
                return;
            SerialPort1.Read(publicva.ReceivedDataBuf, 0, checked((int) publicva.ReceivedCount));
            switch (publicva.MSCommStatus)
            {
                case 0:
                    if (JudgeArrayDataIsSame(publicva.Rx_Connect_OK, publicva.ReceivedDataBuf))
                    {
                        publicva.MSCommTimeOut = 40U;
                        publicva.ChangeCOM_CNT = 0U;
                        publicva.MSCommStatus = 1U;
                        publicva.ReceivedCount = 21U;
                        SerialPort1.DiscardNull = false;
                        SerialPort1.Write(publicva.Tx_GetBandMsg, 0, publicva.Tx_GetBandMsg.Length);
                        break;
                    }

                    publicva.ChangeCOM_CNT = 0U;
                    SerialPort1.Write(publicva.Tx_Connect, 0, publicva.Tx_Connect.Length);
                    break;
                case 1:
                    var flag = false;
                    if (JudgeArrayDataIsSame(publicva.Rx_GetBandMsg, publicva.ReceivedDataBuf))
                    {
                        publicva.MSCommTimeOut = 40U;
                        var mscommCom1 = publicva.MscommCom;
                        if (Operators.CompareString(mscommCom1, "Write", false) == 0)
                        {
                            if ((publicva.ReceivedDataBuf[15] & (uint) publicva.Bit6) > 0U)
                                flag = true;
                        }
                        else if (Operators.CompareString(mscommCom1, "Read", false) == 0)
                        {
                            if ((publicva.ReceivedDataBuf[15] & (uint) publicva.Bit5) > 0U)
                                flag = true;
                        }
                        else if (Operators.CompareString(mscommCom1, "Write_Password", false) == 0 ||
                                 Operators.CompareString(mscommCom1, "Read_Password", false) != 0)
                            ;

                        if (flag)
                        {
                            publicva.MSCommStatus = 7U;
                        }
                        else
                        {
                            publicva.MSCommStatus = 3U;
                            var mscommCom2 = publicva.MscommCom;
                            if (Operators.CompareString(mscommCom2, "Write", false) == 0 ||
                                Operators.CompareString(mscommCom2, "Write_Password", false) == 0)
                                Tx_WriteDataCOM_Frame();
                            else if (Operators.CompareString(mscommCom2, "Read", false) == 0 ||
                                     Operators.CompareString(mscommCom2, "Read_Password", false) == 0)
                                Tx_ReadDataCOM_Frame();
                        }

                        break;
                    }

                    break;
                case 2:
                    if (JudgeArrayDataIsSame(publicva.Rx_Password_OK, publicva.ReceivedDataBuf))
                    {
                        publicva.MSCommTimeOut = 40U;
                        publicva.MSCommStatus = 3U;
                        var mscommCom = publicva.MscommCom;
                        if (Operators.CompareString(mscommCom, "Write", false) == 0)
                        {
                            Tx_WriteDataCOM_Frame();
                            break;
                        }

                        if (Operators.CompareString(mscommCom, "Read", false) == 0)
                        {
                            Tx_ReadDataCOM_Frame();
                            break;
                        }

                        break;
                    }

                    if (JudgeArrayDataIsSame(publicva.Rx_Password_Error, publicva.ReceivedDataBuf))
                    {
                        MyProject.Forms.ChannelMsg.Msgbox_Msg("Parrword Error");
                        publicva.MSCommStatus = 6U;
                        break;
                    }

                    break;
                case 3:
                    var mscommCom3 = publicva.MscommCom;
                    if (Operators.CompareString(mscommCom3, "Write", false) == 0 || Operators.CompareString(mscommCom3, "Write_Password", false) == 0)
                    {
                        if (JudgeArrayDataIsSame(publicva.Rx_CRC_DATA_OK, publicva.ReceivedDataBuf))
                        {
                            publicva.MSCommTimeOut = 40U;
                            publicva.Rw_EEPROM_Add_Length_ListIndex = checked((uint) (publicva.Rw_EEPROM_Add_Length_ListIndex + 1L));
                            if (publicva.Rw_EEPROM_Add_Length_ListIndex >= publicva.Rw_EEPROM_Add_Length_ListSum)
                            {
                                publicva.MSCommStatus = 4U;
                                publicva.ReceivedCount = 5U;
                                SerialPort1.Write(publicva.Tx_MSCommFinish, 0, publicva.Tx_MSCommFinish.Length);
                                break;
                            }

                            Tx_WriteDataCOM_Frame();
                            break;
                        }

                        if (JudgeArrayDataIsSame(publicva.Rx_CRC_DATA_Error, publicva.ReceivedDataBuf))
                        {
                            SerialPort1.Write(publicva.SendDataBuf, 0, checked(7 + publicva.SendDataBuf[6] + 1 + 1));
                            break;
                        }

                        break;
                    }

                    if (Operators.CompareString(mscommCom3, "Read", false) == 0 || Operators.CompareString(mscommCom3, "Read_Password", false) == 0)
                    {
                        var index = checked(7 + publicva.ReceivedDataBuf[6]);
                        if (Operators.ConditionalCompareObjectEqual(Get_CRC_Data(publicva.ReceivedDataBuf), publicva.ReceivedDataBuf[index], false))
                        {
                            publicva.MSCommTimeOut = 40U;
                            WriteDataToPC_EEPROM_Byte();
                            publicva.Rw_EEPROM_Add_Length_ListIndex = checked((uint) (publicva.Rw_EEPROM_Add_Length_ListIndex + 1L));
                            if (publicva.Rw_EEPROM_Add_Length_ListIndex >= publicva.Rw_EEPROM_Add_Length_ListSum)
                            {
                                publicva.MSCommStatus = 4U;
                                publicva.ReceivedCount = 5U;
                                SerialPort1.Write(publicva.Tx_MSCommFinish, 0, publicva.Tx_MSCommFinish.Length);
                            }
                            else
                                Tx_ReadDataCOM_Frame();
                        }
                        else
                            SerialPort1.Write(publicva.SendDataBuf, 0, 8);

                        break;
                    }

                    break;
                case 4:
                    if (JudgeArrayDataIsSame(publicva.Rx_MSCommFinish_OK, publicva.ReceivedDataBuf))
                    {
                        publicva.MSCommStatus = 5U;
                        break;
                    }

                    break;
            }
        }

        private void Timer1_Tick(object sender, EventArgs e)
        {
            switch (publicva.MSCommStatus)
            {
                case 5:
                    var mscommCom = publicva.MscommCom;
                    if (Operators.CompareString(mscommCom, "Write", false) == 0)
                    {
                        MSComm_Stop();
                        break;
                    }

                    if (Operators.CompareString(mscommCom, "Read", false) == 0)
                    {
                        AllForm_LoadData(RuntimeHelpers.GetObjectValue(sender), e);
                        FormTreeViewHide();
                        MSComm_Stop();
                        var numArray = new byte[32769];
                        var streamReader = File.OpenText(Application.StartupPath + "\\default_data.hpg");
                        var index1 = 0;
                        do
                        {
                            numArray[index1] = Conversions.ToByte("&h" + streamReader.ReadLine());
                            checked
                            {
                                ++index1;
                            }
                        }
                        while (index1 <= short.MaxValue);

                        streamReader.Close();
                        var index2 = 0;
                        do
                        {
                            numArray[index2] = publicva.EEPROM_Byte[index2];
                            checked
                            {
                                ++index2;
                            }
                        }
                        while (index2 <= 895);

                        var text = File.CreateText(Application.StartupPath + "\\default_data.hpg");
                        var startIndex = 0;
                        do
                        {
                            text.WriteLine(BitConverter.ToString(numArray, startIndex, 1));
                            checked
                            {
                                ++startIndex;
                            }
                        }
                        while (startIndex <= short.MaxValue);

                        text.Close();
                        break;
                    }

                    if (Operators.CompareString(mscommCom, "Write_Password", false) == 0)
                    {
                        MSComm_Stop();
                        MyProject.Forms.ChannelMsg.Msgbox_Msg("Password change is successful!");
                        break;
                    }

                    if (Operators.CompareString(mscommCom, "Read_Password", false) == 0)
                    {
                        MSComm_Stop();
                        var num = (int) MyProject.Forms.PasswordForm.ShowDialog();
                        break;
                    }

                    break;
                case 6:
                    MSComm_Stop();
                    break;
                case 7:
                    Timer1.Enabled = false;
                    var num1 = (int) MyProject.Forms.InputPasswordForm.ShowDialog();
                    break;
            }

            if (publicva.MSCommTimeOut > 0U)
            {
                publicva.MSCommTimeOut = checked((uint) (publicva.MSCommTimeOut - 1L));
                if (publicva.MSCommTimeOut == 0U)
                {
                    if (publicva.MSCommStatus == 0U)
                    {
                        publicva.MSCommReconnectionCount = checked((uint) (publicva.MSCommReconnectionCount + 1L));
                        if (publicva.MSCommReconnectionCount >= 5U)
                        {
                            MSComm_Stop();
                            MyProject.Forms.ChannelMsg.Msgbox_Msg("Connection radios failed!");
                        }
                        else
                        {
                            publicva.MSCommTimeOut = 60U;
                            SerialPort1.Write(publicva.Tx_Connect, 0, publicva.Tx_Connect.Length);
                        }
                    }
                    else
                    {
                        MSComm_Stop();
                        MyProject.Forms.ChannelMsg.Msgbox_Msg("Transmission interruption, please check connections and try again!!!");
                    }
                }
            }

            if (publicva.ChangeCOM_CNT <= 0U)
                return;
            publicva.ChangeCOM_CNT = checked((uint) (publicva.ChangeCOM_CNT - 1L));
            if (publicva.ChangeCOM_CNT == 0U)
            {
                publicva.ChangeCOM_Count = checked((uint) (publicva.ChangeCOM_Count + 1L));
                if (publicva.ChangeCOM_Count > MyProject.Forms.ComForm.ComboBox1.Items.Count)
                {
                    MSComm_Stop();
                    MyProject.Forms.ChannelMsg.Msgbox_Msg("Connection radios failed!");
                }
                else
                {
                    try
                    {
                        if (SerialPort1.IsOpen)
                        {
                            Thread.Sleep(500);
                            Application.DoEvents();
                            SerialPort1.Close();
                        }

                        publicva.COM_SelectIndex = checked((uint) (publicva.COM_SelectIndex + 1L));
                        if (publicva.COM_SelectIndex >= MyProject.Forms.ComForm.ComboBox1.Items.Count)
                            publicva.COM_SelectIndex = 0U;
                        MyProject.Forms.ComForm.ComboBox1.SelectedIndex = checked((int) publicva.COM_SelectIndex);
                        SerialPort1.PortName = MyProject.Forms.ComForm.ComboBox1.Text;
                        SerialPort1.Open();
                        publicva.MSCommTimeOut = 60U;
                        publicva.MSCommReconnectionCount = 0U;
                        SerialPort1.Write(publicva.Tx_Connect, 0, publicva.Tx_Connect.Length);
                    }
                    catch (Exception ex)
                    {
                        ProjectData.SetProjectError(ex);
                        MSComm_Stop();
                        MyProject.Forms.ChannelMsg.Msgbox_Msg("Connection radios failed!");
                        ProjectData.ClearProjectError();
                    }
                }
            }
        }

        private void 从对讲机读取数据RToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var num = (int) MyProject.Forms.MSCommReadForm.ShowDialog();
        }

        private void 向对讲机写入数据WToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var num = (int) MyProject.Forms.MSCommWriteForm.ShowDialog();
        }

        private void ReadToolStripButton_Click(object sender, EventArgs e)
        {
            var num = (int) MyProject.Forms.MSCommReadForm.ShowDialog();
        }

        private void WriteToolStripButton_Click(object sender, EventArgs e)
        {
            var num = (int) MyProject.Forms.MSCommWriteForm.ShowDialog();
        }

        private void ComPortToolStripButton_Click(object sender, EventArgs e)
        {
            var num = (int) MyProject.Forms.ComForm.ShowDialog();
        }

        private void 信道信息CToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SafeLoadWindowByName(MyProject.Forms.ChannelMsg);
        }

        private void 整机信息OToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SafeLoadWindowByName(MyProject.Forms.TypeFuncMsgForm);
        }

        private void 扫描信息SToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SafeLoadWindowByName(MyProject.Forms.ScanFuncMsgForm);
        }

        private void 提示音AToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SafeLoadWindowByName(MyProject.Forms.BeepForm);
        }

        private void 双音多频DToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SafeLoadWindowByName(MyProject.Forms.DtmfForm);
        }

        private void 两音TToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SafeLoadWindowByName(MyProject.Forms._2ToneForm);
        }

        private void 五音FToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SafeLoadWindowByName(MyProject.Forms._5ToneForm);
        }

        private void 紧急报警信息EToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SafeLoadWindowByName(MyProject.Forms.SOSMsgForm);
        }

        private void 收音机存储信道JToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SafeLoadWindowByName(MyProject.Forms.RadioMsgForm);
        }

        private void 嵌入信息IToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SafeLoadWindowByName(MyProject.Forms.MsgForm);
        }

        private void 对讲机信息RToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SafeLoadWindowByName(MyProject.Forms.SofeMsgForm);
        }

        private void 机型信息MToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SafeLoadWindowByName(MyProject.Forms.TypeMsgForm);
        }

        private void AboutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var num = (int) MyProject.Forms.AboutForm.ShowDialog();
        }

        private void 更改密码CToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!MSCcomm_StartInit("Read_Password", publicva.RPassword_EEPROM_Add_Lendgth_List))
                ;
        }

        private void ChangeLanguage(string languageName)
        {
            try
            {
                LanguageHelper.SetLanguage(languageName, this);
                LanguageHelper.SetLanguage(languageName, MyProject.Forms._2ToneForm);
                LanguageHelper.SetLanguage(languageName, MyProject.Forms._5ToneForm);
                LanguageHelper.SetLanguage(languageName, MyProject.Forms.AboutForm);
                LanguageHelper.SetLanguage(languageName, MyProject.Forms.BeepForm);
                LanguageHelper.SetLanguage(languageName, MyProject.Forms.ChannelEditForm);
                LanguageHelper.SetLanguage(languageName, MyProject.Forms.ChannelMsg);
                LanguageHelper.SetLanguage(languageName, MyProject.Forms.ComForm);
                LanguageHelper.SetLanguage(languageName, MyProject.Forms.DtmfForm);
                LanguageHelper.SetLanguage(languageName, MyProject.Forms.InputPasswordForm);
                LanguageHelper.SetLanguage(languageName, MyProject.Forms.MSCommReadForm);
                LanguageHelper.SetLanguage(languageName, MyProject.Forms.MSCommWriteForm);
                LanguageHelper.SetLanguage(languageName, MyProject.Forms.MsgForm);
                LanguageHelper.SetLanguage(languageName, MyProject.Forms.PasswordForm);
                LanguageHelper.SetLanguage(languageName, MyProject.Forms.RadioMsgForm);
                LanguageHelper.SetLanguage(languageName, MyProject.Forms.ScanFuncMsgForm);
                LanguageHelper.SetLanguage(languageName, MyProject.Forms.SofeMsgForm);
                LanguageHelper.SetLanguage(languageName, MyProject.Forms.SOSMsgForm);
                LanguageHelper.SetLanguage(languageName, MyProject.Forms.TypeFuncMsgForm);
                LanguageHelper.SetLanguage(languageName, MyProject.Forms.TypeMsgForm);
            }
            catch (Exception ex)
            {
                ProjectData.SetProjectError(ex);
                throw ex;
            }
        }

        private void 中文ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (Operators.CompareString(publicva.Language, "zh-CN", false) == 0)
                return;
            CloseAllToolStripMenuItem_Click(RuntimeHelpers.GetObjectValue(sender), e);
            publicva.Language = "zh-CN";
            中文ToolStripMenuItem.Checked = true;
            英文ToolStripMenuItem.Checked = false;
            AllForm_SaveData(RuntimeHelpers.GetObjectValue(sender), e);
            ChangeLanguage(publicva.Language);
            AllForm_LoadData(RuntimeHelpers.GetObjectValue(sender), e);
            FormTreeViewHide();
            SafeLoadWindowByName(MyProject.Forms.ChannelMsg);
            CascadeToolStripMenuItem_Click(RuntimeHelpers.GetObjectValue(sender), e);
            try
            {
                var text = File.CreateText(Application.StartupPath + "\\Config.hpg");
                text.WriteLine(publicva.Language);
                text.Close();
            }
            catch (Exception ex)
            {
                ProjectData.SetProjectError(ex);
                ProjectData.ClearProjectError();
            }
        }

        private void 英文ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (Operators.CompareString(publicva.Language, "en-US", false) == 0)
                return;
            CloseAllToolStripMenuItem_Click(RuntimeHelpers.GetObjectValue(sender), e);
            publicva.Language = "en-US";
            中文ToolStripMenuItem.Checked = false;
            英文ToolStripMenuItem.Checked = true;
            AllForm_SaveData(RuntimeHelpers.GetObjectValue(sender), e);
            ChangeLanguage(publicva.Language);
            AllForm_LoadData(RuntimeHelpers.GetObjectValue(sender), e);
            FormTreeViewHide();
            SafeLoadWindowByName(MyProject.Forms.ChannelMsg);
            CascadeToolStripMenuItem_Click(RuntimeHelpers.GetObjectValue(sender), e);
            try
            {
                var text = File.CreateText(Application.StartupPath + "\\Config.hpg");
                text.WriteLine(publicva.Language);
                text.Close();
            }
            catch (Exception ex)
            {
                ProjectData.SetProjectError(ex);
                ProjectData.ClearProjectError();
            }
        }
    }
}