Zastone/HPG-68D/Backup/MDIParent1.cs
2024-06-25 23:18:56 +02:00

3268 lines
148 KiB
C#

// 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();
}
}
}
}