// Decompiled with JetBrains decompiler
// Type: HPG_68D.MDIParent1
// Assembly: HPG-68D, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 530C99A8-8EEF-42C8-8A74-66FDE7B322C3
// Assembly location: C:\Program Files (x86)\HONGKAIDE\HPG-68D\HPG-68D.exe

using HPG_68D.My;
using Microsoft.VisualBasic;
using Microsoft.VisualBasic.CompilerServices;
using System;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
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()
    {
      this.Load += new EventHandler(this.MDIParent1_Load);
      MDIParent1.__ENCList.Add((object) new WeakReference((object) this));
      this.m_ChildFormNumber = 0;
      this.InitializeComponent();
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    private void ShowNewForm(object sender, EventArgs e)
    {
      try
      {
        StreamReader streamReader = File.OpenText(Application.StartupPath + "\\default_data.hpg");
        int index = 0;
        do
        {
          publicva.EEPROM_Byte[index] = Conversions.ToByte("&h" + streamReader.ReadLine());
          checked { ++index; }
        }
        while (index <= (int) short.MaxValue);
        streamReader.Close();
        this.AllForm_LoadData(RuntimeHelpers.GetObjectValue(sender), e);
        this.FormTreeViewHide();
      }
      catch (Exception ex)
      {
        ProjectData.SetProjectError(ex);
        ProjectData.ClearProjectError();
      }
      publicva.Rw_PasswordStr = "";
    }

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

    private void SaveAsToolStripMenuItem_Click(object sender, EventArgs e)
    {
      SaveFileDialog saveFileDialog = new SaveFileDialog();
      saveFileDialog.InitialDirectory = MyProject.Computer.FileSystem.SpecialDirectories.MyDocuments;
      saveFileDialog.Filter = "数据文件(*.hpg)|*.hpg";
      if (saveFileDialog.ShowDialog((IWin32Window) this) != DialogResult.OK)
        return;
      string fileName = saveFileDialog.FileName;
      this.AllForm_SaveData(RuntimeHelpers.GetObjectValue(sender), e);
      StreamWriter streamWriter = new StreamWriter(fileName);
      int startIndex = 0;
      do
      {
        streamWriter.WriteLine(BitConverter.ToString(publicva.EEPROM_Byte, startIndex, 1));
        checked { ++startIndex; }
      }
      while (startIndex <= (int) 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)
    {
      this.ToolStrip.Visible = this.ToolBarToolStripMenuItem.Checked;
    }

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

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

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

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

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

    private void CloseAllToolStripMenuItem_Click(object sender, EventArgs e)
    {
      Form[] mdiChildren = this.MdiChildren;
      int 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);
      this.SerialPort1.PortName = Conversions.ToString(MyProject.Forms.ComForm.ComboBox1.Items[checked ((int) publicva.COM_SelectIndex)]);
      MyProject.Forms.TypeMsgForm.ComboBox机型.SelectedIndex = 0;
      try
      {
        StreamReader streamReader = File.OpenText(Application.StartupPath + "\\Config.hpg");
        publicva.Language = streamReader.ReadLine();
        streamReader.Close();
      }
      catch (Exception ex)
      {
        ProjectData.SetProjectError(ex);
        publicva.Language = "zh-CN";
        ProjectData.ClearProjectError();
      }
      if (Operators.CompareString(publicva.Language, "zh-CN", false) == 0)
      {
        this.中文ToolStripMenuItem.Checked = true;
        this.英文ToolStripMenuItem.Checked = false;
      }
      else
      {
        this.中文ToolStripMenuItem.Checked = false;
        this.英文ToolStripMenuItem.Checked = true;
      }
      this.changeLanguage(publicva.Language);
      this.EditMenuListTreeView.Nodes[0].Expand();
      MyProject.Forms.ChannelMsg.MdiParent = (Form) this;
      MyProject.Forms.ChannelMsg.Show();
      MyProject.Forms.ChannelMsg.Focus();
      this.ShowNewForm(RuntimeHelpers.GetObjectValue(sender), e);
      this.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)
    {
      this.Panel1.Visible = this.TreeViewToolStripMenuItem.Checked;
    }

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

    public void FormTreeViewHide()
    {
      int index1 = 10;
      string[,] strArray1 = new string[12, 2]
      {
        {
          "HPG-68D",
          "节点0"
        },
        {
          "信道信息",
          "节点1"
        },
        {
          "整机信息",
          "节点2"
        },
        {
          "扫描信息",
          "节点3"
        },
        {
          "提示音",
          "节点4"
        },
        {
          "双音多频",
          "节点5"
        },
        {
          "两音",
          "节点6"
        },
        {
          "五音",
          "节点7"
        },
        {
          "紧急报警信息",
          "节点8"
        },
        {
          "收音机存储信道",
          "节点9"
        },
        {
          "嵌入信息",
          "节点10"
        },
        {
          "对讲机信息",
          "节点11"
        }
      };
      string[,] strArray2 = new string[12, 2]
      {
        {
          "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"
        }
      };
      this.EditMenuListTreeView.Nodes.Clear();
      if (Operators.CompareString(publicva.Language, "zh-CN", false) == 0)
      {
        this.EditMenuListTreeView.Nodes.Add(strArray1[0, 0]);
        this.EditMenuListTreeView.Nodes[0].Name = strArray1[0, 1];
        this.EditMenuListTreeView.SelectedNode = this.EditMenuListTreeView.Nodes[0];
        int index2 = 1;
        do
        {
          this.EditMenuListTreeView.SelectedNode.Nodes.Add(strArray1[index2, 0]);
          this.EditMenuListTreeView.SelectedNode.Nodes[checked (index2 - 1)].Name = strArray1[index2, 1];
          checked { ++index2; }
        }
        while (index2 <= 11);
      }
      else
      {
        this.EditMenuListTreeView.Nodes.Add(strArray2[0, 0]);
        this.EditMenuListTreeView.Nodes[0].Name = strArray2[0, 1];
        this.EditMenuListTreeView.SelectedNode = this.EditMenuListTreeView.Nodes[0];
        int index3 = 1;
        do
        {
          this.EditMenuListTreeView.SelectedNode.Nodes.Add(strArray2[index3, 0]);
          this.EditMenuListTreeView.SelectedNode.Nodes[checked (index3 - 1)].Name = strArray2[index3, 1];
          checked { ++index3; }
        }
        while (index3 <= 11);
      }
      if (((uint) publicva.EEPROM_Byte[index1] & (uint) publicva.Bit5) > 0U)
      {
        this.五音FToolStripMenuItem.Visible = true;
      }
      else
      {
        this.EditMenuListTreeView.Nodes[0].Nodes[6].Remove();
        this.五音FToolStripMenuItem.Visible = false;
        if (this.JudgeIsFormLoaded((Form) MyProject.Forms._5ToneForm))
          MyProject.Forms._5ToneForm.Close();
      }
      if (((uint) publicva.EEPROM_Byte[index1] & (uint) publicva.Bit4) > 0U)
      {
        this.两音TToolStripMenuItem.Visible = true;
      }
      else
      {
        this.EditMenuListTreeView.Nodes[0].Nodes[5].Remove();
        this.两音TToolStripMenuItem.Visible = false;
        if (this.JudgeIsFormLoaded((Form) MyProject.Forms._2ToneForm))
          MyProject.Forms._2ToneForm.Close();
      }
      if (((uint) publicva.EEPROM_Byte[index1] & (uint) publicva.Bit0) > 0U)
      {
        this.双音多频DToolStripMenuItem.Visible = true;
      }
      else
      {
        this.EditMenuListTreeView.Nodes[0].Nodes[4].Remove();
        this.双音多频DToolStripMenuItem.Visible = false;
        if (this.JudgeIsFormLoaded((Form) MyProject.Forms.DtmfForm))
          MyProject.Forms.DtmfForm.Close();
      }
      if (((int) publicva.EEPROM_Byte[index1] & (int) publicva.Bit5 | (int) publicva.EEPROM_Byte[index1] & (int) publicva.Bit4) != 0)
      {
        this.提示音AToolStripMenuItem.Visible = true;
      }
      else
      {
        this.EditMenuListTreeView.Nodes[0].Nodes[3].Remove();
        this.提示音AToolStripMenuItem.Visible = false;
        if (this.JudgeIsFormLoaded((Form) MyProject.Forms.BeepForm))
          MyProject.Forms.BeepForm.Close();
      }
      this.EditMenuListTreeView.Nodes[0].Expand();
    }

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

    public bool JudgeIsFormLoaded(Form rFrm)
    {
      Form[] mdiChildren = this.MdiChildren;
      int 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 (this.JudgeIsFormLoaded((Form) MyProject.Forms.BeepForm))
        MyProject.Forms.BeepForm.BeepForm_Load(RuntimeHelpers.GetObjectValue(sender), e);
      if (this.JudgeIsFormLoaded((Form) MyProject.Forms._2ToneForm))
        MyProject.Forms._2ToneForm._2ToneForm_Load(RuntimeHelpers.GetObjectValue(sender), e);
      if (this.JudgeIsFormLoaded((Form) MyProject.Forms._5ToneForm))
        MyProject.Forms._5ToneForm._5ToneForm_Load(RuntimeHelpers.GetObjectValue(sender), e);
      if (this.JudgeIsFormLoaded((Form) MyProject.Forms.DtmfForm))
        MyProject.Forms.DtmfForm.DtmfForm_Load(RuntimeHelpers.GetObjectValue(sender), e);
      if (this.JudgeIsFormLoaded((Form) MyProject.Forms.RadioMsgForm))
        MyProject.Forms.RadioMsgForm.RadioMsgForm_Load(RuntimeHelpers.GetObjectValue(sender), e);
      if (this.JudgeIsFormLoaded((Form) MyProject.Forms.ChannelMsg))
        MyProject.Forms.ChannelMsg.ChannelMsg_Load(RuntimeHelpers.GetObjectValue(sender), e);
      if (this.JudgeIsFormLoaded((Form) MyProject.Forms.ScanFuncMsgForm))
        MyProject.Forms.ScanFuncMsgForm.ScanFuncMsgForm_Load(RuntimeHelpers.GetObjectValue(sender), e);
      if (this.JudgeIsFormLoaded((Form) MyProject.Forms.SOSMsgForm))
        MyProject.Forms.SOSMsgForm.SOSMsgForm_Load(RuntimeHelpers.GetObjectValue(sender), e);
      if (this.JudgeIsFormLoaded((Form) MyProject.Forms.TypeFuncMsgForm))
        MyProject.Forms.TypeFuncMsgForm.TypeFuncMsgForm_Load(RuntimeHelpers.GetObjectValue(sender), e);
      if (this.JudgeIsFormLoaded((Form) MyProject.Forms.MsgForm))
        MyProject.Forms.MsgForm.MsgForm_Load(RuntimeHelpers.GetObjectValue(sender), e);
      if (!this.JudgeIsFormLoaded((Form) MyProject.Forms.SofeMsgForm))
        return;
      MyProject.Forms.SofeMsgForm.SofeMsgForm_Load(RuntimeHelpers.GetObjectValue(sender), e);
    }

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

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

    public void GetContol_Data(Control object_x, int address)
    {
      if (!(object_x is ComboBox))
        return;
      publicva.EEPROM_Byte[address] = !(((ComboBox) object_x).FindStringExact(((ComboBox) object_x).Text) == -1 | ((ComboBox) object_x).SelectedIndex == 0) ? Conversions.ToByte(((ComboBox) object_x).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] = (byte) 0;
      this.SetControl_U8_Data(object_x, address, AndBit, Right_No);
    }

    public void SetControl_U8_Data(Control object_x, int address, byte AndBit, int Right_No)
    {
      if (object_x is ComboBox)
      {
        try
        {
          ((ComboBox) object_x).SelectedIndex = (int) (byte) (((uint) publicva.EEPROM_Byte[address] & (uint) AndBit) >> (Right_No & 7));
        }
        catch (Exception ex)
        {
          ProjectData.SetProjectError(ex);
          int num = (int) Interaction.MsgBox((object) (object_x.Name.ToString() + " 溢出出错值: " + ((byte) (((uint) publicva.EEPROM_Byte[address] & (uint) AndBit) >> (Right_No & 7))).ToString()));
          ((ComboBox) object_x).SelectedIndex = 0;
          ProjectData.ClearProjectError();
        }
      }
      if (!(object_x is CheckBox))
        return;
      try
      {
        if (Right_No != 0)
          ((CheckBox) object_x).Checked = ((uint) (byte) ~((int) publicva.EEPROM_Byte[address] & (int) AndBit) & (uint) AndBit) > 0U;
        else
          ((CheckBox) object_x).Checked = ((uint) publicva.EEPROM_Byte[address] & (uint) AndBit) > 0U;
      }
      catch (Exception ex)
      {
        ProjectData.SetProjectError(ex);
        int num = (int) Interaction.MsgBox((object) (object_x.Name.ToString() + " 溢出出错值: " + ((byte) ((int) publicva.EEPROM_Byte[address] & (int) AndBit)).ToString()));
        ((CheckBox) object_x).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) ((int) publicva.EEPROM_Byte[address] & (int) ~AndBit);
        publicva.EEPROM_Byte[address] = checked ((byte) ((int) 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) ((int) publicva.EEPROM_Byte[address] & (int) ~AndBit) : (byte) ((int) publicva.EEPROM_Byte[address] | (int) AndBit)) : (Right_No == 0 ? (byte) ((int) publicva.EEPROM_Byte[address] | (int) AndBit) : (byte) ((int) publicva.EEPROM_Byte[address] & (int) ~AndBit));
    }

    public object Get_2ByteToU16_L_H(int address)
    {
      return (object) checked ((int) publicva.EEPROM_Byte[address + 1] * 256 + (int) 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 & (int) byte.MaxValue));
    }

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

    public 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 & (int) byte.MaxValue));
    }

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

    public void Set_FreqRang()
    {
      int num = 768;
      int index = 0;
      do
      {
        this.Set_U32To4Byte_L_H(checked ((int) publicva.RxFreqRang[index, 0]), checked (num + 0 + index * 16));
        this.Set_U32To4Byte_L_H(checked ((int) publicva.RxFreqRang[index, 1]), checked (num + 4 + index * 16));
        this.Set_U32To4Byte_L_H(checked ((int) publicva.TxFreqRang[index, 0]), checked (num + 8 + index * 16));
        this.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)
    {
      this.SaveAsToolStripMenuItem_Click(RuntimeHelpers.GetObjectValue(sender), e);
    }

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

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

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

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

    public void Tx_WriteDataCOM_Frame()
    {
      publicva.SendDataBuf[0] = (byte) 2;
      publicva.SendDataBuf[1] = (byte) 35;
      publicva.SendDataBuf[2] = (byte) 230;
      publicva.SendDataBuf[3] = (byte) 245;
      publicva.SendDataBuf[4] = checked ((byte) unchecked ((long) publicva.Rw_EEPROM_Add_Length_List[checked ((int) publicva.Rw_EEPROM_Add_Length_ListIndex), 0] / 256L));
      publicva.SendDataBuf[5] = checked ((byte) unchecked ((long) 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]);
      uint num1 = checked ((uint) ((int) publicva.SendDataBuf[6] - 1));
      uint num2 = 0;
      while (num2 <= num1)
      {
        publicva.SendDataBuf[checked ((int) (7L + (long) num2))] = publicva.EEPROM_Byte[checked ((int) (publicva.Rw_EEPROM_Add_Length_List[(int) publicva.Rw_EEPROM_Add_Length_ListIndex, 0] + num2))];
        checked { ++num2; }
      }
      int index = checked (7 + (int) publicva.SendDataBuf[6]);
      publicva.SendDataBuf[index] = Conversions.ToByte(this.Get_CRC_Data(publicva.SendDataBuf));
      publicva.SendDataBuf[checked (index + 1)] = (byte) 3;
      publicva.ReceivedCount = 5U;
      this.SerialPort1.Write(publicva.SendDataBuf, 0, checked (7 + (int) publicva.SendDataBuf[6] + 1 + 1));
    }

    public void WriteDataToPC_EEPROM_Byte()
    {
      uint num1 = checked ((uint) ((int) 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 + (long) num2))];
        checked { ++num2; }
      }
    }

    public void Tx_ReadDataCOM_Frame()
    {
      publicva.SendDataBuf[0] = (byte) 2;
      publicva.SendDataBuf[1] = (byte) 35;
      publicva.SendDataBuf[2] = (byte) 229;
      publicva.SendDataBuf[3] = (byte) 246;
      publicva.SendDataBuf[4] = checked ((byte) unchecked ((long) publicva.Rw_EEPROM_Add_Length_List[checked ((int) publicva.Rw_EEPROM_Add_Length_ListIndex), 0] / 256L));
      publicva.SendDataBuf[5] = checked ((byte) unchecked ((long) 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] = (byte) 3;
      publicva.ReceivedCount = checked ((uint) (7 + (int) publicva.SendDataBuf[6] + 1 + 1));
      this.SerialPort1.Write(publicva.SendDataBuf, 0, 8);
    }

    public bool MSCcomm_StartInit(string MscommComStr, uint[,] AddressList)
    {
      bool flag;
      try
      {
        if (!this.SerialPort1.IsOpen)
        {
          this.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;
      }
      this.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((Array) AddressList) + 1));
      uint num = checked ((uint) Information.UBound((Array) 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; }
      }
      this.SerialPort1.Write(publicva.Tx_Connect, 0, publicva.Tx_Connect.Length);
      this.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()
    {
      this.Timer1.Enabled = false;
      publicva.MSCommTimeOut = 0U;
      publicva.ChangeCOM_CNT = 0U;
      publicva.F_MSCommStop = true;
      publicva.ReceivedCount = 5U;
      this.SerialPort1.DiscardNull = true;
      if (!this.SerialPort1.IsOpen)
        return;
      Thread.Sleep(500);
      Application.DoEvents();
      this.SerialPort1.Close();
    }

    private void SerialPort1_DataReceived(object sender, SerialDataReceivedEventArgs e)
    {
      if ((long) this.SerialPort1.BytesToRead < (long) publicva.ReceivedCount)
        return;
      this.SerialPort1.Read(publicva.ReceivedDataBuf, 0, checked ((int) publicva.ReceivedCount));
      switch (publicva.MSCommStatus)
      {
        case 0:
          if (this.JudgeArrayDataIsSame(publicva.Rx_Connect_OK, publicva.ReceivedDataBuf))
          {
            publicva.MSCommTimeOut = 40U;
            publicva.ChangeCOM_CNT = 0U;
            publicva.MSCommStatus = 1U;
            publicva.ReceivedCount = 21U;
            this.SerialPort1.DiscardNull = false;
            this.SerialPort1.Write(publicva.Tx_GetBandMsg, 0, publicva.Tx_GetBandMsg.Length);
            break;
          }
          publicva.ChangeCOM_CNT = 0U;
          this.SerialPort1.Write(publicva.Tx_Connect, 0, publicva.Tx_Connect.Length);
          break;
        case 1:
          bool flag = false;
          if (this.JudgeArrayDataIsSame(publicva.Rx_GetBandMsg, publicva.ReceivedDataBuf))
          {
            publicva.MSCommTimeOut = 40U;
            string mscommCom1 = publicva.MscommCom;
            if (Operators.CompareString(mscommCom1, "Write", false) == 0)
            {
              if (((uint) publicva.ReceivedDataBuf[15] & (uint) publicva.Bit6) > 0U)
                flag = true;
            }
            else if (Operators.CompareString(mscommCom1, "Read", false) == 0)
            {
              if (((uint) 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;
              string mscommCom2 = publicva.MscommCom;
              if (Operators.CompareString(mscommCom2, "Write", false) == 0 || Operators.CompareString(mscommCom2, "Write_Password", false) == 0)
                this.Tx_WriteDataCOM_Frame();
              else if (Operators.CompareString(mscommCom2, "Read", false) == 0 || Operators.CompareString(mscommCom2, "Read_Password", false) == 0)
                this.Tx_ReadDataCOM_Frame();
            }
            break;
          }
          break;
        case 2:
          if (this.JudgeArrayDataIsSame(publicva.Rx_Password_OK, publicva.ReceivedDataBuf))
          {
            publicva.MSCommTimeOut = 40U;
            publicva.MSCommStatus = 3U;
            string mscommCom = publicva.MscommCom;
            if (Operators.CompareString(mscommCom, "Write", false) == 0)
            {
              this.Tx_WriteDataCOM_Frame();
              break;
            }
            if (Operators.CompareString(mscommCom, "Read", false) == 0)
            {
              this.Tx_ReadDataCOM_Frame();
              break;
            }
            break;
          }
          if (this.JudgeArrayDataIsSame(publicva.Rx_Password_Error, publicva.ReceivedDataBuf))
          {
            MyProject.Forms.ChannelMsg.Msgbox_Msg("密码错误", "Parrword Error");
            publicva.MSCommStatus = 6U;
            break;
          }
          break;
        case 3:
          string mscommCom3 = publicva.MscommCom;
          if (Operators.CompareString(mscommCom3, "Write", false) == 0 || Operators.CompareString(mscommCom3, "Write_Password", false) == 0)
          {
            if (this.JudgeArrayDataIsSame(publicva.Rx_CRC_DATA_OK, publicva.ReceivedDataBuf))
            {
              publicva.MSCommTimeOut = 40U;
              publicva.Rw_EEPROM_Add_Length_ListIndex = checked ((uint) ((long) 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;
                this.SerialPort1.Write(publicva.Tx_MSCommFinish, 0, publicva.Tx_MSCommFinish.Length);
                break;
              }
              this.Tx_WriteDataCOM_Frame();
              break;
            }
            if (this.JudgeArrayDataIsSame(publicva.Rx_CRC_DATA_Error, publicva.ReceivedDataBuf))
            {
              this.SerialPort1.Write(publicva.SendDataBuf, 0, checked (7 + (int) publicva.SendDataBuf[6] + 1 + 1));
              break;
            }
            break;
          }
          if (Operators.CompareString(mscommCom3, "Read", false) == 0 || Operators.CompareString(mscommCom3, "Read_Password", false) == 0)
          {
            int index = checked (7 + (int) publicva.ReceivedDataBuf[6]);
            if (Operators.ConditionalCompareObjectEqual(this.Get_CRC_Data(publicva.ReceivedDataBuf), (object) publicva.ReceivedDataBuf[index], false))
            {
              publicva.MSCommTimeOut = 40U;
              this.WriteDataToPC_EEPROM_Byte();
              publicva.Rw_EEPROM_Add_Length_ListIndex = checked ((uint) ((long) 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;
                this.SerialPort1.Write(publicva.Tx_MSCommFinish, 0, publicva.Tx_MSCommFinish.Length);
              }
              else
                this.Tx_ReadDataCOM_Frame();
            }
            else
              this.SerialPort1.Write(publicva.SendDataBuf, 0, 8);
            break;
          }
          break;
        case 4:
          if (this.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:
          string mscommCom = publicva.MscommCom;
          if (Operators.CompareString(mscommCom, "Write", false) == 0)
          {
            this.MSComm_Stop();
            break;
          }
          if (Operators.CompareString(mscommCom, "Read", false) == 0)
          {
            this.AllForm_LoadData(RuntimeHelpers.GetObjectValue(sender), e);
            this.FormTreeViewHide();
            this.MSComm_Stop();
            byte[] numArray = new byte[32769];
            StreamReader streamReader = File.OpenText(Application.StartupPath + "\\default_data.hpg");
            int index1 = 0;
            do
            {
              numArray[index1] = Conversions.ToByte("&h" + streamReader.ReadLine());
              checked { ++index1; }
            }
            while (index1 <= (int) short.MaxValue);
            streamReader.Close();
            int index2 = 0;
            do
            {
              numArray[index2] = publicva.EEPROM_Byte[index2];
              checked { ++index2; }
            }
            while (index2 <= 895);
            StreamWriter text = File.CreateText(Application.StartupPath + "\\default_data.hpg");
            int startIndex = 0;
            do
            {
              text.WriteLine(BitConverter.ToString(numArray, startIndex, 1));
              checked { ++startIndex; }
            }
            while (startIndex <= (int) short.MaxValue);
            text.Close();
            break;
          }
          if (Operators.CompareString(mscommCom, "Write_Password", false) == 0)
          {
            this.MSComm_Stop();
            MyProject.Forms.ChannelMsg.Msgbox_Msg("密码更改成功!", "Password change is successful!");
            break;
          }
          if (Operators.CompareString(mscommCom, "Read_Password", false) == 0)
          {
            this.MSComm_Stop();
            int num = (int) MyProject.Forms.PasswordForm.ShowDialog();
            break;
          }
          break;
        case 6:
          this.MSComm_Stop();
          break;
        case 7:
          this.Timer1.Enabled = false;
          int num1 = (int) MyProject.Forms.InputPasswordForm.ShowDialog();
          break;
      }
      if (publicva.MSCommTimeOut > 0U)
      {
        publicva.MSCommTimeOut = checked ((uint) ((long) publicva.MSCommTimeOut - 1L));
        if (publicva.MSCommTimeOut == 0U)
        {
          if (publicva.MSCommStatus == 0U)
          {
            publicva.MSCommReconnectionCount = checked ((uint) ((long) publicva.MSCommReconnectionCount + 1L));
            if (publicva.MSCommReconnectionCount >= 5U)
            {
              this.MSComm_Stop();
              MyProject.Forms.ChannelMsg.Msgbox_Msg("连接对讲机失败!", "Connection radios failed!");
            }
            else
            {
              publicva.MSCommTimeOut = 60U;
              this.SerialPort1.Write(publicva.Tx_Connect, 0, publicva.Tx_Connect.Length);
            }
          }
          else
          {
            this.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) ((long) publicva.ChangeCOM_CNT - 1L));
      if (publicva.ChangeCOM_CNT == 0U)
      {
        publicva.ChangeCOM_Count = checked ((uint) ((long) publicva.ChangeCOM_Count + 1L));
        if ((long) publicva.ChangeCOM_Count > (long) MyProject.Forms.ComForm.ComboBox1.Items.Count)
        {
          this.MSComm_Stop();
          MyProject.Forms.ChannelMsg.Msgbox_Msg("连接对讲机失败!", "Connection radios failed!");
        }
        else
        {
          try
          {
            if (this.SerialPort1.IsOpen)
            {
              Thread.Sleep(500);
              Application.DoEvents();
              this.SerialPort1.Close();
            }
            publicva.COM_SelectIndex = checked ((uint) ((long) publicva.COM_SelectIndex + 1L));
            if ((long) publicva.COM_SelectIndex >= (long) MyProject.Forms.ComForm.ComboBox1.Items.Count)
              publicva.COM_SelectIndex = 0U;
            MyProject.Forms.ComForm.ComboBox1.SelectedIndex = checked ((int) publicva.COM_SelectIndex);
            this.SerialPort1.PortName = MyProject.Forms.ComForm.ComboBox1.Text;
            this.SerialPort1.Open();
            publicva.MSCommTimeOut = 60U;
            publicva.MSCommReconnectionCount = 0U;
            this.SerialPort1.Write(publicva.Tx_Connect, 0, publicva.Tx_Connect.Length);
          }
          catch (Exception ex)
          {
            ProjectData.SetProjectError(ex);
            this.MSComm_Stop();
            MyProject.Forms.ChannelMsg.Msgbox_Msg("连接对讲机失败!", "Connection radios failed!");
            ProjectData.ClearProjectError();
          }
        }
      }
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    private void changeLanguage(string languageName)
    {
      try
      {
        LanguageHelper.SetLanguage(languageName, (Form) this);
        LanguageHelper.SetLanguage(languageName, (Form) MyProject.Forms._2ToneForm);
        LanguageHelper.SetLanguage(languageName, (Form) MyProject.Forms._5ToneForm);
        LanguageHelper.SetLanguage(languageName, (Form) MyProject.Forms.AboutForm);
        LanguageHelper.SetLanguage(languageName, (Form) MyProject.Forms.BeepForm);
        LanguageHelper.SetLanguage(languageName, (Form) MyProject.Forms.ChannelEditForm);
        LanguageHelper.SetLanguage(languageName, (Form) MyProject.Forms.ChannelMsg);
        LanguageHelper.SetLanguage(languageName, (Form) MyProject.Forms.ComForm);
        LanguageHelper.SetLanguage(languageName, (Form) MyProject.Forms.DtmfForm);
        LanguageHelper.SetLanguage(languageName, (Form) MyProject.Forms.InputPasswordForm);
        LanguageHelper.SetLanguage(languageName, (Form) MyProject.Forms.MSCommReadForm);
        LanguageHelper.SetLanguage(languageName, (Form) MyProject.Forms.MSCommWriteForm);
        LanguageHelper.SetLanguage(languageName, (Form) MyProject.Forms.MsgForm);
        LanguageHelper.SetLanguage(languageName, (Form) MyProject.Forms.PasswordForm);
        LanguageHelper.SetLanguage(languageName, (Form) MyProject.Forms.RadioMsgForm);
        LanguageHelper.SetLanguage(languageName, (Form) MyProject.Forms.ScanFuncMsgForm);
        LanguageHelper.SetLanguage(languageName, (Form) MyProject.Forms.SofeMsgForm);
        LanguageHelper.SetLanguage(languageName, (Form) MyProject.Forms.SOSMsgForm);
        LanguageHelper.SetLanguage(languageName, (Form) MyProject.Forms.TypeFuncMsgForm);
        LanguageHelper.SetLanguage(languageName, (Form) 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;
      this.CloseAllToolStripMenuItem_Click(RuntimeHelpers.GetObjectValue(sender), e);
      publicva.Language = "zh-CN";
      this.中文ToolStripMenuItem.Checked = true;
      this.英文ToolStripMenuItem.Checked = false;
      this.AllForm_SaveData(RuntimeHelpers.GetObjectValue(sender), e);
      this.changeLanguage(publicva.Language);
      this.AllForm_LoadData(RuntimeHelpers.GetObjectValue(sender), e);
      this.FormTreeViewHide();
      this.SafeLoadWindowByName((Form) MyProject.Forms.ChannelMsg);
      this.CascadeToolStripMenuItem_Click(RuntimeHelpers.GetObjectValue(sender), e);
      try
      {
        StreamWriter 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;
      this.CloseAllToolStripMenuItem_Click(RuntimeHelpers.GetObjectValue(sender), e);
      publicva.Language = "en-US";
      this.中文ToolStripMenuItem.Checked = false;
      this.英文ToolStripMenuItem.Checked = true;
      this.AllForm_SaveData(RuntimeHelpers.GetObjectValue(sender), e);
      this.changeLanguage(publicva.Language);
      this.AllForm_LoadData(RuntimeHelpers.GetObjectValue(sender), e);
      this.FormTreeViewHide();
      this.SafeLoadWindowByName((Form) MyProject.Forms.ChannelMsg);
      this.CascadeToolStripMenuItem_Click(RuntimeHelpers.GetObjectValue(sender), e);
      try
      {
        StreamWriter text = File.CreateText(Application.StartupPath + "\\Config.hpg");
        text.WriteLine(publicva.Language);
        text.Close();
      }
      catch (Exception ex)
      {
        ProjectData.SetProjectError(ex);
        ProjectData.ClearProjectError();
      }
    }
  }
}
