// Decompiled with JetBrains decompiler // Type: HPG_68D.RadioMsgForm // 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.Runtime.CompilerServices; using System.Windows.Forms; namespace HPG_68D { [DesignerGenerated] public class RadioMsgForm : Form { private static ArrayList __ENCList = new ArrayList(); private IContainer components; [AccessedThroughProperty("TabControl1")] private TabControl _TabControl1; [AccessedThroughProperty("TabPage1")] private TabPage _TabPage1; [AccessedThroughProperty("TabPage2")] private TabPage _TabPage2; [AccessedThroughProperty("TabPage3")] private TabPage _TabPage3; [AccessedThroughProperty("GroupBox1")] private GroupBox _GroupBox1; [AccessedThroughProperty("DataGridView1")] private DataGridView _DataGridView1; [AccessedThroughProperty("ComboBoxFM工作模式")] private ComboBox _ComboBoxFM工作模式; [AccessedThroughProperty("Label1")] private Label _Label1; [AccessedThroughProperty("ComboBoxFM信道号")] private ComboBox _ComboBoxFM信道号; [AccessedThroughProperty("Label2")] private Label _Label2; [AccessedThroughProperty("ComboBoxAM信道号")] private ComboBox _ComboBoxAM信道号; [AccessedThroughProperty("Label3")] private Label _Label3; [AccessedThroughProperty("ComboBoxAM工作模式")] private ComboBox _ComboBoxAM工作模式; [AccessedThroughProperty("Label4")] private Label _Label4; [AccessedThroughProperty("GroupBox2")] private GroupBox _GroupBox2; [AccessedThroughProperty("DataGridView2")] private DataGridView _DataGridView2; [AccessedThroughProperty("ComboBoxAIR信道号")] private ComboBox _ComboBoxAIR信道号; [AccessedThroughProperty("Label5")] private Label _Label5; [AccessedThroughProperty("ComboBoxAIR工作模式")] private ComboBox _ComboBoxAIR工作模式; [AccessedThroughProperty("Label6")] private Label _Label6; [AccessedThroughProperty("GroupBox3")] private GroupBox _GroupBox3; [AccessedThroughProperty("DataGridView3")] private DataGridView _DataGridView3; [AccessedThroughProperty("Button3")] private Button _Button3; [AccessedThroughProperty("Button2")] private Button _Button2; [AccessedThroughProperty("Button1")] private Button _Button1; [AccessedThroughProperty("ColumnFMFreq")] private DataGridViewTextBoxColumn _ColumnFMFreq; [AccessedThroughProperty("ColumnAMFreq")] private DataGridViewTextBoxColumn _ColumnAMFreq; [AccessedThroughProperty("ColumnAIRFreq")] private DataGridViewTextBoxColumn _ColumnAIRFreq; [DebuggerNonUserCode] static RadioMsgForm() { } [DebuggerNonUserCode] public RadioMsgForm() { Load += RadioMsgForm_Load; Deactivate += RadioMsgForm_Deactivate; FormClosing += RadioMsgForm_FormClosing; __ENCList.Add((object) new WeakReference((object) this)); InitializeComponent(); } [DebuggerNonUserCode] protected override void Dispose(bool disposing) { if (disposing && components != null) components.Dispose(); base.Dispose(disposing); } [DebuggerStepThrough] private void InitializeComponent() { ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (RadioMsgForm)); DataGridViewCellStyle gridViewCellStyle1 = new DataGridViewCellStyle(); DataGridViewCellStyle gridViewCellStyle2 = new DataGridViewCellStyle(); DataGridViewCellStyle gridViewCellStyle3 = new DataGridViewCellStyle(); DataGridViewCellStyle gridViewCellStyle4 = new DataGridViewCellStyle(); DataGridViewCellStyle gridViewCellStyle5 = new DataGridViewCellStyle(); DataGridViewCellStyle gridViewCellStyle6 = new DataGridViewCellStyle(); DataGridViewCellStyle gridViewCellStyle7 = new DataGridViewCellStyle(); DataGridViewCellStyle gridViewCellStyle8 = new DataGridViewCellStyle(); DataGridViewCellStyle gridViewCellStyle9 = new DataGridViewCellStyle(); DataGridViewCellStyle gridViewCellStyle10 = new DataGridViewCellStyle(); DataGridViewCellStyle gridViewCellStyle11 = new DataGridViewCellStyle(); DataGridViewCellStyle gridViewCellStyle12 = new DataGridViewCellStyle(); TabControl1 = new TabControl(); TabPage1 = new TabPage(); ComboBoxFM信道号 = new ComboBox(); Label2 = new Label(); ComboBoxFM工作模式 = new ComboBox(); Label1 = new Label(); GroupBox1 = new GroupBox(); DataGridView1 = new DataGridView(); TabPage2 = new TabPage(); ComboBoxAM信道号 = new ComboBox(); Label3 = new Label(); ComboBoxAM工作模式 = new ComboBox(); Label4 = new Label(); GroupBox2 = new GroupBox(); DataGridView2 = new DataGridView(); TabPage3 = new TabPage(); ComboBoxAIR信道号 = new ComboBox(); Label5 = new Label(); ComboBoxAIR工作模式 = new ComboBox(); Label6 = new Label(); GroupBox3 = new GroupBox(); DataGridView3 = new DataGridView(); Button3 = new Button(); Button2 = new Button(); Button1 = new Button(); ColumnFMFreq = new DataGridViewTextBoxColumn(); ColumnAMFreq = new DataGridViewTextBoxColumn(); ColumnAIRFreq = new DataGridViewTextBoxColumn(); TabControl1.SuspendLayout(); TabPage1.SuspendLayout(); GroupBox1.SuspendLayout(); ((ISupportInitialize) DataGridView1).BeginInit(); TabPage2.SuspendLayout(); GroupBox2.SuspendLayout(); ((ISupportInitialize) DataGridView2).BeginInit(); TabPage3.SuspendLayout(); GroupBox3.SuspendLayout(); ((ISupportInitialize) DataGridView3).BeginInit(); SuspendLayout(); TabControl1.AccessibleDescription = (string) null; TabControl1.AccessibleName = (string) null; componentResourceManager.ApplyResources((object) TabControl1, "TabControl1"); TabControl1.BackgroundImage = (Image) null; TabControl1.Controls.Add((Control) TabPage1); TabControl1.Controls.Add((Control) TabPage2); TabControl1.Controls.Add((Control) TabPage3); TabControl1.Font = (Font) null; TabControl1.Name = "TabControl1"; TabControl1.SelectedIndex = 0; TabPage1.AccessibleDescription = (string) null; TabPage1.AccessibleName = (string) null; componentResourceManager.ApplyResources((object) TabPage1, "TabPage1"); TabPage1.BackgroundImage = (Image) null; TabPage1.Controls.Add((Control) ComboBoxFM信道号); TabPage1.Controls.Add((Control) Label2); TabPage1.Controls.Add((Control) ComboBoxFM工作模式); TabPage1.Controls.Add((Control) Label1); TabPage1.Controls.Add((Control) GroupBox1); TabPage1.Font = (Font) null; TabPage1.Name = "TabPage1"; TabPage1.UseVisualStyleBackColor = true; ComboBoxFM信道号.AccessibleDescription = (string) null; ComboBoxFM信道号.AccessibleName = (string) null; componentResourceManager.ApplyResources((object) ComboBoxFM信道号, "ComboBoxFM信道号"); ComboBoxFM信道号.BackgroundImage = (Image) null; ComboBoxFM信道号.DropDownStyle = ComboBoxStyle.DropDownList; ComboBoxFM信道号.Font = (Font) null; ComboBoxFM信道号.FormattingEnabled = true; ComboBoxFM信道号.Items.AddRange(new object[32] { (object) componentResourceManager.GetString("ComboBoxFM信道号.Items"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items1"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items2"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items3"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items4"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items5"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items6"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items7"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items8"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items9"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items10"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items11"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items12"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items13"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items14"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items15"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items16"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items17"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items18"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items19"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items20"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items21"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items22"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items23"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items24"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items25"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items26"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items27"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items28"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items29"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items30"), (object) componentResourceManager.GetString("ComboBoxFM信道号.Items31") }); ComboBoxFM信道号.Name = "ComboBoxFM信道号"; Label2.AccessibleDescription = (string) null; Label2.AccessibleName = (string) null; componentResourceManager.ApplyResources((object) Label2, "Label2"); Label2.Font = (Font) null; Label2.Name = "Label2"; ComboBoxFM工作模式.AccessibleDescription = (string) null; ComboBoxFM工作模式.AccessibleName = (string) null; componentResourceManager.ApplyResources((object) ComboBoxFM工作模式, "ComboBoxFM工作模式"); ComboBoxFM工作模式.BackgroundImage = (Image) null; ComboBoxFM工作模式.DropDownStyle = ComboBoxStyle.DropDownList; ComboBoxFM工作模式.Font = (Font) null; ComboBoxFM工作模式.FormattingEnabled = true; ComboBoxFM工作模式.Items.AddRange(new object[2] { (object) componentResourceManager.GetString("ComboBoxFM工作模式.Items"), (object) componentResourceManager.GetString("ComboBoxFM工作模式.Items1") }); ComboBoxFM工作模式.Name = "ComboBoxFM工作模式"; Label1.AccessibleDescription = (string) null; Label1.AccessibleName = (string) null; componentResourceManager.ApplyResources((object) Label1, "Label1"); Label1.Font = (Font) null; Label1.Name = "Label1"; GroupBox1.AccessibleDescription = (string) null; GroupBox1.AccessibleName = (string) null; componentResourceManager.ApplyResources((object) GroupBox1, "GroupBox1"); GroupBox1.BackgroundImage = (Image) null; GroupBox1.Controls.Add((Control) DataGridView1); GroupBox1.Font = (Font) null; GroupBox1.Name = "GroupBox1"; GroupBox1.TabStop = false; DataGridView1.AccessibleDescription = (string) null; DataGridView1.AccessibleName = (string) null; DataGridView1.AllowUserToAddRows = false; DataGridView1.AllowUserToDeleteRows = false; DataGridView1.AllowUserToResizeColumns = false; DataGridView1.AllowUserToResizeRows = false; gridViewCellStyle1.Alignment = DataGridViewContentAlignment.MiddleCenter; DataGridView1.AlternatingRowsDefaultCellStyle = gridViewCellStyle1; componentResourceManager.ApplyResources((object) DataGridView1, "DataGridView1"); DataGridView1.BackgroundImage = (Image) null; gridViewCellStyle2.Alignment = DataGridViewContentAlignment.MiddleCenter; gridViewCellStyle2.BackColor = SystemColors.Control; gridViewCellStyle2.Font = new Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 134); gridViewCellStyle2.ForeColor = SystemColors.WindowText; gridViewCellStyle2.SelectionBackColor = SystemColors.Highlight; gridViewCellStyle2.SelectionForeColor = SystemColors.HighlightText; gridViewCellStyle2.WrapMode = DataGridViewTriState.True; DataGridView1.ColumnHeadersDefaultCellStyle = gridViewCellStyle2; DataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; DataGridView1.Columns.AddRange((DataGridViewColumn) ColumnFMFreq); DataGridView1.Font = (Font) null; DataGridView1.Name = "DataGridView1"; gridViewCellStyle3.Alignment = DataGridViewContentAlignment.MiddleCenter; gridViewCellStyle3.BackColor = SystemColors.Control; gridViewCellStyle3.Font = new Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 134); gridViewCellStyle3.ForeColor = SystemColors.WindowText; gridViewCellStyle3.SelectionBackColor = SystemColors.Highlight; gridViewCellStyle3.SelectionForeColor = SystemColors.HighlightText; gridViewCellStyle3.WrapMode = DataGridViewTriState.True; DataGridView1.RowHeadersDefaultCellStyle = gridViewCellStyle3; DataGridView1.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.DisableResizing; gridViewCellStyle4.Alignment = DataGridViewContentAlignment.MiddleCenter; DataGridView1.RowsDefaultCellStyle = gridViewCellStyle4; DataGridView1.RowTemplate.Height = 23; TabPage2.AccessibleDescription = (string) null; TabPage2.AccessibleName = (string) null; componentResourceManager.ApplyResources((object) TabPage2, "TabPage2"); TabPage2.BackgroundImage = (Image) null; TabPage2.Controls.Add((Control) ComboBoxAM信道号); TabPage2.Controls.Add((Control) Label3); TabPage2.Controls.Add((Control) ComboBoxAM工作模式); TabPage2.Controls.Add((Control) Label4); TabPage2.Controls.Add((Control) GroupBox2); TabPage2.Font = (Font) null; TabPage2.Name = "TabPage2"; TabPage2.UseVisualStyleBackColor = true; ComboBoxAM信道号.AccessibleDescription = (string) null; ComboBoxAM信道号.AccessibleName = (string) null; componentResourceManager.ApplyResources((object) ComboBoxAM信道号, "ComboBoxAM信道号"); ComboBoxAM信道号.BackgroundImage = (Image) null; ComboBoxAM信道号.DropDownStyle = ComboBoxStyle.DropDownList; ComboBoxAM信道号.Font = (Font) null; ComboBoxAM信道号.FormattingEnabled = true; ComboBoxAM信道号.Items.AddRange(new object[64] { (object) componentResourceManager.GetString("ComboBoxAM信道号.Items"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items1"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items2"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items3"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items4"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items5"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items6"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items7"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items8"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items9"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items10"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items11"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items12"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items13"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items14"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items15"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items16"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items17"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items18"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items19"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items20"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items21"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items22"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items23"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items24"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items25"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items26"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items27"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items28"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items29"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items30"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items31"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items32"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items33"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items34"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items35"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items36"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items37"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items38"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items39"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items40"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items41"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items42"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items43"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items44"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items45"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items46"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items47"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items48"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items49"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items50"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items51"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items52"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items53"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items54"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items55"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items56"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items57"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items58"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items59"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items60"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items61"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items62"), (object) componentResourceManager.GetString("ComboBoxAM信道号.Items63") }); ComboBoxAM信道号.Name = "ComboBoxAM信道号"; Label3.AccessibleDescription = (string) null; Label3.AccessibleName = (string) null; componentResourceManager.ApplyResources((object) Label3, "Label3"); Label3.Font = (Font) null; Label3.Name = "Label3"; ComboBoxAM工作模式.AccessibleDescription = (string) null; ComboBoxAM工作模式.AccessibleName = (string) null; componentResourceManager.ApplyResources((object) ComboBoxAM工作模式, "ComboBoxAM工作模式"); ComboBoxAM工作模式.BackgroundImage = (Image) null; ComboBoxAM工作模式.DropDownStyle = ComboBoxStyle.DropDownList; ComboBoxAM工作模式.Font = (Font) null; ComboBoxAM工作模式.FormattingEnabled = true; ComboBoxAM工作模式.Items.AddRange(new object[2] { (object) componentResourceManager.GetString("ComboBoxAM工作模式.Items"), (object) componentResourceManager.GetString("ComboBoxAM工作模式.Items1") }); ComboBoxAM工作模式.Name = "ComboBoxAM工作模式"; Label4.AccessibleDescription = (string) null; Label4.AccessibleName = (string) null; componentResourceManager.ApplyResources((object) Label4, "Label4"); Label4.Font = (Font) null; Label4.Name = "Label4"; GroupBox2.AccessibleDescription = (string) null; GroupBox2.AccessibleName = (string) null; componentResourceManager.ApplyResources((object) GroupBox2, "GroupBox2"); GroupBox2.BackgroundImage = (Image) null; GroupBox2.Controls.Add((Control) DataGridView2); GroupBox2.Font = (Font) null; GroupBox2.Name = "GroupBox2"; GroupBox2.TabStop = false; DataGridView2.AccessibleDescription = (string) null; DataGridView2.AccessibleName = (string) null; DataGridView2.AllowUserToAddRows = false; DataGridView2.AllowUserToDeleteRows = false; DataGridView2.AllowUserToResizeColumns = false; DataGridView2.AllowUserToResizeRows = false; gridViewCellStyle5.Alignment = DataGridViewContentAlignment.MiddleCenter; DataGridView2.AlternatingRowsDefaultCellStyle = gridViewCellStyle5; componentResourceManager.ApplyResources((object) DataGridView2, "DataGridView2"); DataGridView2.BackgroundImage = (Image) null; gridViewCellStyle6.Alignment = DataGridViewContentAlignment.MiddleCenter; gridViewCellStyle6.BackColor = SystemColors.Control; gridViewCellStyle6.Font = new Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 134); gridViewCellStyle6.ForeColor = SystemColors.WindowText; gridViewCellStyle6.SelectionBackColor = SystemColors.Highlight; gridViewCellStyle6.SelectionForeColor = SystemColors.HighlightText; gridViewCellStyle6.WrapMode = DataGridViewTriState.True; DataGridView2.ColumnHeadersDefaultCellStyle = gridViewCellStyle6; DataGridView2.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; DataGridView2.Columns.AddRange((DataGridViewColumn) ColumnAMFreq); DataGridView2.Font = (Font) null; DataGridView2.Name = "DataGridView2"; gridViewCellStyle7.Alignment = DataGridViewContentAlignment.MiddleCenter; gridViewCellStyle7.BackColor = SystemColors.Control; gridViewCellStyle7.Font = new Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 134); gridViewCellStyle7.ForeColor = SystemColors.WindowText; gridViewCellStyle7.SelectionBackColor = SystemColors.Highlight; gridViewCellStyle7.SelectionForeColor = SystemColors.HighlightText; gridViewCellStyle7.WrapMode = DataGridViewTriState.True; DataGridView2.RowHeadersDefaultCellStyle = gridViewCellStyle7; DataGridView2.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.DisableResizing; gridViewCellStyle8.Alignment = DataGridViewContentAlignment.MiddleCenter; DataGridView2.RowsDefaultCellStyle = gridViewCellStyle8; DataGridView2.RowTemplate.Height = 23; TabPage3.AccessibleDescription = (string) null; TabPage3.AccessibleName = (string) null; componentResourceManager.ApplyResources((object) TabPage3, "TabPage3"); TabPage3.BackgroundImage = (Image) null; TabPage3.Controls.Add((Control) ComboBoxAIR信道号); TabPage3.Controls.Add((Control) Label5); TabPage3.Controls.Add((Control) ComboBoxAIR工作模式); TabPage3.Controls.Add((Control) Label6); TabPage3.Controls.Add((Control) GroupBox3); TabPage3.Font = (Font) null; TabPage3.Name = "TabPage3"; TabPage3.UseVisualStyleBackColor = true; ComboBoxAIR信道号.AccessibleDescription = (string) null; ComboBoxAIR信道号.AccessibleName = (string) null; componentResourceManager.ApplyResources((object) ComboBoxAIR信道号, "ComboBoxAIR信道号"); ComboBoxAIR信道号.BackgroundImage = (Image) null; ComboBoxAIR信道号.DropDownStyle = ComboBoxStyle.DropDownList; ComboBoxAIR信道号.Font = (Font) null; ComboBoxAIR信道号.FormattingEnabled = true; ComboBoxAIR信道号.Items.AddRange(new object[64] { (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items1"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items2"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items3"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items4"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items5"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items6"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items7"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items8"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items9"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items10"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items11"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items12"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items13"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items14"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items15"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items16"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items17"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items18"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items19"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items20"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items21"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items22"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items23"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items24"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items25"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items26"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items27"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items28"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items29"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items30"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items31"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items32"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items33"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items34"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items35"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items36"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items37"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items38"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items39"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items40"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items41"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items42"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items43"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items44"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items45"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items46"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items47"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items48"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items49"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items50"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items51"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items52"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items53"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items54"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items55"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items56"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items57"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items58"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items59"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items60"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items61"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items62"), (object) componentResourceManager.GetString("ComboBoxAIR信道号.Items63") }); ComboBoxAIR信道号.Name = "ComboBoxAIR信道号"; Label5.AccessibleDescription = (string) null; Label5.AccessibleName = (string) null; componentResourceManager.ApplyResources((object) Label5, "Label5"); Label5.Font = (Font) null; Label5.Name = "Label5"; ComboBoxAIR工作模式.AccessibleDescription = (string) null; ComboBoxAIR工作模式.AccessibleName = (string) null; componentResourceManager.ApplyResources((object) ComboBoxAIR工作模式, "ComboBoxAIR工作模式"); ComboBoxAIR工作模式.BackgroundImage = (Image) null; ComboBoxAIR工作模式.DropDownStyle = ComboBoxStyle.DropDownList; ComboBoxAIR工作模式.Font = (Font) null; ComboBoxAIR工作模式.FormattingEnabled = true; ComboBoxAIR工作模式.Items.AddRange(new object[2] { (object) componentResourceManager.GetString("ComboBoxAIR工作模式.Items"), (object) componentResourceManager.GetString("ComboBoxAIR工作模式.Items1") }); ComboBoxAIR工作模式.Name = "ComboBoxAIR工作模式"; Label6.AccessibleDescription = (string) null; Label6.AccessibleName = (string) null; componentResourceManager.ApplyResources((object) Label6, "Label6"); Label6.Font = (Font) null; Label6.Name = "Label6"; GroupBox3.AccessibleDescription = (string) null; GroupBox3.AccessibleName = (string) null; componentResourceManager.ApplyResources((object) GroupBox3, "GroupBox3"); GroupBox3.BackgroundImage = (Image) null; GroupBox3.Controls.Add((Control) DataGridView3); GroupBox3.Font = (Font) null; GroupBox3.Name = "GroupBox3"; GroupBox3.TabStop = false; DataGridView3.AccessibleDescription = (string) null; DataGridView3.AccessibleName = (string) null; DataGridView3.AllowUserToAddRows = false; DataGridView3.AllowUserToDeleteRows = false; DataGridView3.AllowUserToResizeColumns = false; DataGridView3.AllowUserToResizeRows = false; gridViewCellStyle9.Alignment = DataGridViewContentAlignment.MiddleCenter; DataGridView3.AlternatingRowsDefaultCellStyle = gridViewCellStyle9; componentResourceManager.ApplyResources((object) DataGridView3, "DataGridView3"); DataGridView3.BackgroundImage = (Image) null; gridViewCellStyle10.Alignment = DataGridViewContentAlignment.MiddleCenter; gridViewCellStyle10.BackColor = SystemColors.Control; gridViewCellStyle10.Font = new Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 134); gridViewCellStyle10.ForeColor = SystemColors.WindowText; gridViewCellStyle10.SelectionBackColor = SystemColors.Highlight; gridViewCellStyle10.SelectionForeColor = SystemColors.HighlightText; gridViewCellStyle10.WrapMode = DataGridViewTriState.True; DataGridView3.ColumnHeadersDefaultCellStyle = gridViewCellStyle10; DataGridView3.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; DataGridView3.Columns.AddRange((DataGridViewColumn) ColumnAIRFreq); DataGridView3.Font = (Font) null; DataGridView3.Name = "DataGridView3"; gridViewCellStyle11.Alignment = DataGridViewContentAlignment.MiddleCenter; gridViewCellStyle11.BackColor = SystemColors.Control; gridViewCellStyle11.Font = new Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, (byte) 134); gridViewCellStyle11.ForeColor = SystemColors.WindowText; gridViewCellStyle11.SelectionBackColor = SystemColors.Highlight; gridViewCellStyle11.SelectionForeColor = SystemColors.HighlightText; gridViewCellStyle11.WrapMode = DataGridViewTriState.True; DataGridView3.RowHeadersDefaultCellStyle = gridViewCellStyle11; DataGridView3.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.DisableResizing; gridViewCellStyle12.Alignment = DataGridViewContentAlignment.MiddleCenter; DataGridView3.RowsDefaultCellStyle = gridViewCellStyle12; DataGridView3.RowTemplate.Height = 23; Button3.AccessibleDescription = (string) null; Button3.AccessibleName = (string) null; componentResourceManager.ApplyResources((object) Button3, "Button3"); Button3.BackgroundImage = (Image) null; Button3.Font = (Font) null; Button3.Name = "Button3"; Button3.UseVisualStyleBackColor = true; Button2.AccessibleDescription = (string) null; Button2.AccessibleName = (string) null; componentResourceManager.ApplyResources((object) Button2, "Button2"); Button2.BackgroundImage = (Image) null; Button2.Font = (Font) null; Button2.Name = "Button2"; Button2.UseVisualStyleBackColor = true; Button1.AccessibleDescription = (string) null; Button1.AccessibleName = (string) null; componentResourceManager.ApplyResources((object) Button1, "Button1"); Button1.BackgroundImage = (Image) null; Button1.Font = (Font) null; Button1.Name = "Button1"; Button1.UseVisualStyleBackColor = true; componentResourceManager.ApplyResources((object) ColumnFMFreq, "ColumnFMFreq"); ColumnFMFreq.MaxInputLength = 9; ColumnFMFreq.Name = "ColumnFMFreq"; ColumnFMFreq.Resizable = DataGridViewTriState.False; ColumnFMFreq.SortMode = DataGridViewColumnSortMode.NotSortable; componentResourceManager.ApplyResources((object) ColumnAMFreq, "ColumnAMFreq"); ColumnAMFreq.MaxInputLength = 9; ColumnAMFreq.Name = "ColumnAMFreq"; ColumnAMFreq.Resizable = DataGridViewTriState.False; ColumnAMFreq.SortMode = DataGridViewColumnSortMode.NotSortable; componentResourceManager.ApplyResources((object) ColumnAIRFreq, "ColumnAIRFreq"); ColumnAIRFreq.MaxInputLength = 9; ColumnAIRFreq.Name = "ColumnAIRFreq"; ColumnAIRFreq.Resizable = DataGridViewTriState.False; ColumnAIRFreq.SortMode = DataGridViewColumnSortMode.NotSortable; AccessibleDescription = (string) null; AccessibleName = (string) null; componentResourceManager.ApplyResources((object) this, "$this"); AutoScaleMode = AutoScaleMode.Font; BackgroundImage = (Image) null; Controls.Add((Control) Button3); Controls.Add((Control) Button2); Controls.Add((Control) Button1); Controls.Add((Control) TabControl1); Font = (Font) null; Name = nameof (RadioMsgForm); TabControl1.ResumeLayout(false); TabPage1.ResumeLayout(false); TabPage1.PerformLayout(); GroupBox1.ResumeLayout(false); ((ISupportInitialize) DataGridView1).EndInit(); TabPage2.ResumeLayout(false); TabPage2.PerformLayout(); GroupBox2.ResumeLayout(false); ((ISupportInitialize) DataGridView2).EndInit(); TabPage3.ResumeLayout(false); TabPage3.PerformLayout(); GroupBox3.ResumeLayout(false); ((ISupportInitialize) DataGridView3).EndInit(); ResumeLayout(false); } internal virtual TabControl TabControl1 { [DebuggerNonUserCode] get => _TabControl1; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set { _TabControl1 = value; } } internal virtual TabPage TabPage1 { [DebuggerNonUserCode] get => _TabPage1; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set { _TabPage1 = value; } } internal virtual TabPage TabPage2 { [DebuggerNonUserCode] get => _TabPage2; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set { _TabPage2 = value; } } internal virtual TabPage TabPage3 { [DebuggerNonUserCode] get => _TabPage3; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set { _TabPage3 = value; } } internal virtual GroupBox GroupBox1 { [DebuggerNonUserCode] get => _GroupBox1; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set { _GroupBox1 = value; } } internal virtual DataGridView DataGridView1 { [DebuggerNonUserCode] get => _DataGridView1; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set { if (_DataGridView1 != null) { _DataGridView1.EditingControlShowing -= DataGridView1_EditingControlShowing; _DataGridView1.CellEndEdit -= DataGridView1_CellEndEdit; _DataGridView1.RowPostPaint -= DataGridView1_RowPostPaint; } _DataGridView1 = value; if (_DataGridView1 == null) return; _DataGridView1.EditingControlShowing += DataGridView1_EditingControlShowing; _DataGridView1.CellEndEdit += DataGridView1_CellEndEdit; _DataGridView1.RowPostPaint += DataGridView1_RowPostPaint; } } internal virtual ComboBox ComboBoxFM工作模式 { [DebuggerNonUserCode] get => _ComboBoxFM工作模式; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set { _ComboBoxFM工作模式 = value; } } internal virtual Label Label1 { [DebuggerNonUserCode] get => _Label1; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set => _Label1 = value; } internal virtual ComboBox ComboBoxFM信道号 { [DebuggerNonUserCode] get => _ComboBoxFM信道号; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set { if (_ComboBoxFM信道号 != null) _ComboBoxFM信道号.SelectionChangeCommitted -= ComboBoxFM信道号_SelectionChangeCommitted; _ComboBoxFM信道号 = value; if (_ComboBoxFM信道号 == null) return; _ComboBoxFM信道号.SelectionChangeCommitted += ComboBoxFM信道号_SelectionChangeCommitted; } } internal virtual Label Label2 { [DebuggerNonUserCode] get => _Label2; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set => _Label2 = value; } internal virtual ComboBox ComboBoxAM信道号 { [DebuggerNonUserCode] get => _ComboBoxAM信道号; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set { if (_ComboBoxAM信道号 != null) _ComboBoxAM信道号.SelectionChangeCommitted -= ComboBoxAM信道号_SelectionChangeCommitted; _ComboBoxAM信道号 = value; if (_ComboBoxAM信道号 == null) return; _ComboBoxAM信道号.SelectionChangeCommitted += ComboBoxAM信道号_SelectionChangeCommitted; } } internal virtual Label Label3 { [DebuggerNonUserCode] get => _Label3; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set => _Label3 = value; } internal virtual ComboBox ComboBoxAM工作模式 { [DebuggerNonUserCode] get => _ComboBoxAM工作模式; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set { _ComboBoxAM工作模式 = value; } } internal virtual Label Label4 { [DebuggerNonUserCode] get => _Label4; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set => _Label4 = value; } internal virtual GroupBox GroupBox2 { [DebuggerNonUserCode] get => _GroupBox2; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set { _GroupBox2 = value; } } internal virtual DataGridView DataGridView2 { [DebuggerNonUserCode] get => _DataGridView2; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set { if (_DataGridView2 != null) { _DataGridView2.CellEndEdit -= DataGridView2_CellEndEdit; _DataGridView2.RowPostPaint -= DataGridView2_RowPostPaint; _DataGridView2.EditingControlShowing -= DataGridView2_EditingControlShowing; } _DataGridView2 = value; if (_DataGridView2 == null) return; _DataGridView2.CellEndEdit += DataGridView2_CellEndEdit; _DataGridView2.RowPostPaint += DataGridView2_RowPostPaint; _DataGridView2.EditingControlShowing += DataGridView2_EditingControlShowing; } } internal virtual ComboBox ComboBoxAIR信道号 { [DebuggerNonUserCode] get => _ComboBoxAIR信道号; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set { if (_ComboBoxAIR信道号 != null) _ComboBoxAIR信道号.SelectionChangeCommitted -= ComboBoxAIR信道号_SelectionChangeCommitted; _ComboBoxAIR信道号 = value; if (_ComboBoxAIR信道号 == null) return; _ComboBoxAIR信道号.SelectionChangeCommitted += ComboBoxAIR信道号_SelectionChangeCommitted; } } internal virtual Label Label5 { [DebuggerNonUserCode] get => _Label5; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set => _Label5 = value; } internal virtual ComboBox ComboBoxAIR工作模式 { [DebuggerNonUserCode] get => _ComboBoxAIR工作模式; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set { _ComboBoxAIR工作模式 = value; } } internal virtual Label Label6 { [DebuggerNonUserCode] get => _Label6; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set => _Label6 = value; } internal virtual GroupBox GroupBox3 { [DebuggerNonUserCode] get => _GroupBox3; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set { _GroupBox3 = value; } } internal virtual DataGridView DataGridView3 { [DebuggerNonUserCode] get => _DataGridView3; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set { if (_DataGridView3 != null) { _DataGridView3.EditingControlShowing -= DataGridView3_EditingControlShowing; _DataGridView3.CellEndEdit -= DataGridView3_CellEndEdit; _DataGridView3.RowPostPaint -= DataGridView3_RowPostPaint; } _DataGridView3 = value; if (_DataGridView3 == null) return; _DataGridView3.EditingControlShowing += DataGridView3_EditingControlShowing; _DataGridView3.CellEndEdit += DataGridView3_CellEndEdit; _DataGridView3.RowPostPaint += DataGridView3_RowPostPaint; } } internal virtual Button Button3 { [DebuggerNonUserCode] get => _Button3; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set { _Button3 = value; } } internal virtual Button Button2 { [DebuggerNonUserCode] get => _Button2; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set { _Button2 = value; } } internal virtual Button Button1 { [DebuggerNonUserCode] get => _Button1; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set { if (_Button1 != null) _Button1.Click -= Button1_Click; _Button1 = value; if (_Button1 == null) return; _Button1.Click += Button1_Click; } } internal virtual DataGridViewTextBoxColumn ColumnFMFreq { [DebuggerNonUserCode] get => _ColumnFMFreq; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set { _ColumnFMFreq = value; } } internal virtual DataGridViewTextBoxColumn ColumnAMFreq { [DebuggerNonUserCode] get => _ColumnAMFreq; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set { _ColumnAMFreq = value; } } internal virtual DataGridViewTextBoxColumn ColumnAIRFreq { [DebuggerNonUserCode] get => _ColumnAIRFreq; [DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set { _ColumnAIRFreq = value; } } public void RadioMsgForm_Deactivate(object sender, EventArgs e) { DataGridView1.EndEdit(); DataGridView2.EndEdit(); DataGridView3.EndEdit(); MyProject.Forms.MDIParent1.GetControl_U8_Data((Control) ComboBoxAIR工作模式, checked (3840 + 29), publicva.Bit5, 5); MyProject.Forms.MDIParent1.GetControl_U8_Data((Control) ComboBoxAIR信道号, checked (3952 + 6), publicva.AllBit, 0); int num1 = 7168; int rowIndex1 = 1; do { if (Operators.ConditionalCompareObjectEqual(DataGridView3["ColumnAIRFreq", rowIndex1].Value, (object) "", false)) { MyProject.Forms.ChannelMsg.CHStatusList_Write(checked (rowIndex1 - 1), "删除", 7856); } else { MyProject.Forms.ChannelMsg.CHStatusList_Write(checked (rowIndex1 - 1), "添加", 7856); Set_Freq(checked (rowIndex1 * 4 + num1), Conversions.ToString(DataGridView3["ColumnAIRFreq", rowIndex1].Value)); } checked { ++rowIndex1; } } while (rowIndex1 <= 64); Set_Freq(checked (0 + 7816), Conversions.ToString(DataGridView3["ColumnAIRFreq", 0].Value)); MyProject.Forms.MDIParent1.GetControl_U8_Data((Control) ComboBoxAM工作模式, checked (3840 + 29), publicva.Bit4, 4); MyProject.Forms.MDIParent1.GetControl_U8_Data((Control) ComboBoxAM信道号, checked (3952 + 8), publicva.AllBit, 0); int num2 = 7424; int rowIndex2 = 1; do { if (Operators.ConditionalCompareObjectEqual(DataGridView2["ColumnAMFreq", rowIndex2].Value, (object) "", false)) { MyProject.Forms.ChannelMsg.CHStatusList_Write(checked (rowIndex2 - 1), "删除", 7824); } else { MyProject.Forms.ChannelMsg.CHStatusList_Write(checked (rowIndex2 - 1), "添加", 7824); Set_Freq(checked (rowIndex2 * 4 + num2), Conversions.ToString(DataGridView2["ColumnAMFreq", rowIndex2].Value)); publicva.EEPROM_Byte[checked (rowIndex2 * 4 + num2 + 3)] = Conversions.ToByte(Get_AMFreqRangID(Conversions.ToDouble(DataGridView2["ColumnAMFreq", rowIndex2].Value))); } checked { ++rowIndex2; } } while (rowIndex2 <= 64); int num3 = 7808; Set_Freq(checked (0 + num3), Conversions.ToString(DataGridView2["ColumnAMFreq", 0].Value)); publicva.EEPROM_Byte[checked (0 + num3 + 3)] = Conversions.ToByte(Get_AMFreqRangID(Conversions.ToDouble(DataGridView2["ColumnAMFreq", 0].Value))); MyProject.Forms.MDIParent1.GetControl_U8_Data((Control) ComboBoxFM工作模式, checked (3840 + 15), publicva.Bit6, 6); MyProject.Forms.MDIParent1.GetControl_U8_Data((Control) ComboBoxFM信道号, checked (3952 + 7), publicva.AllBit, 0); int num4 = 7680; int rowIndex3 = 1; do { if (Operators.ConditionalCompareObjectEqual(DataGridView1["ColumnFMFreq", rowIndex3].Value, (object) "", false)) { MyProject.Forms.ChannelMsg.CHStatusList_Write(checked (rowIndex3 - 1), "删除", 7840); } else { MyProject.Forms.ChannelMsg.CHStatusList_Write(checked (rowIndex3 - 1), "添加", 7840); Set_Freq(checked (rowIndex3 * 4 + num4), Conversions.ToString(DataGridView1["ColumnFMFreq", rowIndex3].Value)); } checked { ++rowIndex3; } } while (rowIndex3 <= 32); Set_Freq(checked (0 + 7812), Conversions.ToString(DataGridView1["ColumnFMFreq", 0].Value)); } private void RadioMsgForm_FormClosing(object sender, FormClosingEventArgs e) { MyProject.Forms.MDIParent1.收音机存储信道JToolStripMenuItem.Checked = false; } public void RadioMsgForm_Load(object sender, EventArgs e) { MyProject.Forms.MDIParent1.收音机存储信道JToolStripMenuItem.Checked = true; DataGridView1.RowCount = 33; DataGridView2.RowCount = 65; DataGridView3.RowCount = 65; if (Operators.CompareString(publicva.Language, "zh-CN", false) == 0) { DataGridView1.TopLeftHeaderCell.Value = (object) "信道"; DataGridView2.TopLeftHeaderCell.Value = (object) "信道"; DataGridView3.TopLeftHeaderCell.Value = (object) "信道"; } else { DataGridView1.TopLeftHeaderCell.Value = (object) "CH"; DataGridView2.TopLeftHeaderCell.Value = (object) "CH"; DataGridView3.TopLeftHeaderCell.Value = (object) "CH"; } MyProject.Forms.MDIParent1.SetControl_U8_Data((Control) ComboBoxAIR工作模式, checked (3840 + 29), publicva.Bit5, 5); MyProject.Forms.MDIParent1.SetControl_U8_Data((Control) ComboBoxAIR信道号, checked (3952 + 6), publicva.AllBit, 0); if (!MyProject.Forms.ChannelMsg.CHStatus_Read(ComboBoxAIR信道号.SelectedIndex, 7856)) ComboBoxAIR信道号.SelectedIndex = 0; int num1 = 7168; int rowIndex1 = 1; do { DataGridView3["ColumnAIRFreq", rowIndex1].Value = !MyProject.Forms.ChannelMsg.CHStatus_Read(checked (rowIndex1 - 1), 7856) ? (object) "" : RuntimeHelpers.GetObjectValue(Get_Freq(checked (rowIndex1 * 4 + num1), 11850000, 13400000)); checked { ++rowIndex1; } } while (rowIndex1 <= 64); DataGridView3["ColumnAIRFreq", 0].Value = RuntimeHelpers.GetObjectValue(Get_Freq(checked (0 + 7816), 11850000, 13400000)); MyProject.Forms.MDIParent1.SetControl_U8_Data((Control) ComboBoxAM工作模式, checked (3840 + 29), publicva.Bit4, 4); MyProject.Forms.MDIParent1.SetControl_U8_Data((Control) ComboBoxAM信道号, checked (3952 + 8), publicva.AllBit, 0); if (!MyProject.Forms.ChannelMsg.CHStatus_Read(ComboBoxAM信道号.SelectedIndex, 7824)) ComboBoxAM信道号.SelectedIndex = 0; int num2 = 7424; int rowIndex2 = 1; do { DataGridView2["ColumnAMFreq", rowIndex2].Value = !MyProject.Forms.ChannelMsg.CHStatus_Read(checked (rowIndex2 - 1), 7824) ? (object) "" : RuntimeHelpers.GetObjectValue(Get_AMFreq(checked (rowIndex2 * 4 + num2))); checked { ++rowIndex2; } } while (rowIndex2 <= 64); DataGridView2["ColumnAMFreq", 0].Value = RuntimeHelpers.GetObjectValue(Get_AMFreq(checked (0 + 7808))); MyProject.Forms.MDIParent1.SetControl_U8_Data((Control) ComboBoxFM工作模式, checked (3840 + 15), publicva.Bit6, 6); MyProject.Forms.MDIParent1.SetControl_U8_Data((Control) ComboBoxFM信道号, checked (3952 + 7), publicva.AllBit, 0); if (!MyProject.Forms.ChannelMsg.CHStatus_Read(ComboBoxFM信道号.SelectedIndex, 7840)) ComboBoxFM信道号.SelectedIndex = 0; int num3 = 7680; int rowIndex3 = 1; do { DataGridView1["ColumnFMFreq", rowIndex3].Value = !MyProject.Forms.ChannelMsg.CHStatus_Read(checked (rowIndex3 - 1), 7840) ? (object) "" : RuntimeHelpers.GetObjectValue(Get_Freq(checked (rowIndex3 * 4 + num3), 6400000, 10800000)); checked { ++rowIndex3; } } while (rowIndex3 <= 32); DataGridView1["ColumnFMFreq", 0].Value = RuntimeHelpers.GetObjectValue(Get_Freq(checked (0 + 7812), 6400000, 10800000)); } private void DataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e) { int rowIndex = DataGridView1.CurrentCell.RowIndex; if (Operators.ConditionalCompareObjectNotEqual(DataGridView1["ColumnFMFreq", rowIndex].Value, (object) "", false)) DataGridView1["ColumnFMFreq", rowIndex].Value = RuntimeHelpers.GetObjectValue(JudgeInputFMFreq(Conversions.ToString(DataGridView1["ColumnFMFreq", rowIndex].Value), 6400000, 10800000)); if (Conversions.ToBoolean(Operators.AndObject(Operators.CompareObjectEqual(DataGridView1["ColumnFMFreq", rowIndex].Value, (object) "", false), (object) (rowIndex == 0)))) DataGridView1["ColumnFMFreq", rowIndex].Value = (object) "100.70000"; RadioMsgForm_Deactivate(RuntimeHelpers.GetObjectValue(sender), (EventArgs) e); ComboBoxFM信道号_SelectionChangeCommitted(RuntimeHelpers.GetObjectValue(sender), (EventArgs) e); } private void DataGridView2_CellEndEdit(object sender, DataGridViewCellEventArgs e) { int rowIndex = DataGridView2.CurrentCell.RowIndex; if (Operators.ConditionalCompareObjectNotEqual(DataGridView2["ColumnAMFreq", rowIndex].Value, (object) "", false)) DataGridView2["ColumnAMFreq", rowIndex].Value = RuntimeHelpers.GetObjectValue(JudgeInputAMFreq(Conversions.ToString(DataGridView2["ColumnAMFreq", rowIndex].Value))); if (Conversions.ToBoolean(Operators.AndObject(Operators.CompareObjectEqual(DataGridView2["ColumnAMFreq", rowIndex].Value, (object) "", false), (object) (rowIndex == 0)))) DataGridView2["ColumnAMFreq", rowIndex].Value = (object) "21.70000"; RadioMsgForm_Deactivate(RuntimeHelpers.GetObjectValue(sender), (EventArgs) e); ComboBoxAM信道号_SelectionChangeCommitted(RuntimeHelpers.GetObjectValue(sender), (EventArgs) e); } private void DataGridView3_CellEndEdit(object sender, DataGridViewCellEventArgs e) { int rowIndex = DataGridView3.CurrentCell.RowIndex; if (Operators.ConditionalCompareObjectNotEqual(DataGridView3["ColumnAIRFreq", rowIndex].Value, (object) "", false)) DataGridView3["ColumnAIRFreq", rowIndex].Value = RuntimeHelpers.GetObjectValue(JudgeInputAIRFreq(Conversions.ToString(DataGridView3["ColumnAIRFreq", rowIndex].Value), 11850000, 13400000)); if (Conversions.ToBoolean(Operators.AndObject(Operators.CompareObjectEqual(DataGridView3["ColumnAIRFreq", rowIndex].Value, (object) "", false), (object) (rowIndex == 0)))) DataGridView3["ColumnAIRFreq", rowIndex].Value = (object) "118.50000"; RadioMsgForm_Deactivate(RuntimeHelpers.GetObjectValue(sender), (EventArgs) e); ComboBoxAIR信道号_SelectionChangeCommitted(RuntimeHelpers.GetObjectValue(sender), (EventArgs) e); } private void DataGridView1_EditingControlShowing( object sender, DataGridViewEditingControlShowingEventArgs e) { if (DataGridView1.CurrentCell.ColumnIndex != DataGridView1["ColumnFMFreq", 0].ColumnIndex) return; DataGridViewTextBoxEditingControl boxEditingControl = new DataGridViewTextBoxEditingControl(); boxEditingControl = (DataGridViewTextBoxEditingControl) e.Control; e.Control.KeyPress += Cells_KeyPress; } private void DataGridView2_EditingControlShowing( object sender, DataGridViewEditingControlShowingEventArgs e) { if (DataGridView2.CurrentCell.ColumnIndex != DataGridView2["ColumnAMFreq", 0].ColumnIndex) return; DataGridViewTextBoxEditingControl boxEditingControl = new DataGridViewTextBoxEditingControl(); boxEditingControl = (DataGridViewTextBoxEditingControl) e.Control; e.Control.KeyPress += Cells_KeyPress; } private void DataGridView3_EditingControlShowing( object sender, DataGridViewEditingControlShowingEventArgs e) { if (DataGridView3.CurrentCell.ColumnIndex != DataGridView3["ColumnAIRFreq", 0].ColumnIndex) return; DataGridViewTextBoxEditingControl boxEditingControl = new DataGridViewTextBoxEditingControl(); boxEditingControl = (DataGridViewTextBoxEditingControl) e.Control; e.Control.KeyPress += Cells_KeyPress; } private void Cells_KeyPress(object sender, KeyPressEventArgs e) { if (char.IsDigit(e.KeyChar) | e.KeyChar == '\b' | Operators.CompareString(Conversions.ToString(e.KeyChar), ".", false) == 0) e.Handled = false; else e.Handled = true; } private void DataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) { string[] strArray = new string[1]{ "搜台" }; Brush brush = (Brush) new SolidBrush(DataGridView1.RowHeadersDefaultCellStyle.ForeColor); int num = 11; if (Operators.CompareString(publicva.Language, "zh-CN", false) != 0) { strArray[0] = "VFO"; num = 7; } if (e.RowIndex == 0) e.Graphics.DrawString(strArray[0].ToString(), DataGridView1.DefaultCellStyle.Font, brush, (float) e.RowBounds.Location.X + (float) checked (DataGridView1.RowHeadersWidth - strArray[0].ToString().Length * num) / 2f, (float) checked (e.RowBounds.Location.Y + 5)); else e.Graphics.DrawString(checked (e.RowIndex - 1).ToString(), DataGridView1.DefaultCellStyle.Font, brush, (float) e.RowBounds.Location.X + (float) checked (DataGridView1.RowHeadersWidth - (e.RowIndex - 1).ToString().Length * 8) / 2f, (float) checked (e.RowBounds.Location.Y + 5)); } private void DataGridView2_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) { string[] strArray = new string[1]{ "搜台" }; Brush brush = (Brush) new SolidBrush(DataGridView2.RowHeadersDefaultCellStyle.ForeColor); int num = 11; if (Operators.CompareString(publicva.Language, "zh-CN", false) != 0) { strArray[0] = "VFO"; num = 7; } if (e.RowIndex == 0) e.Graphics.DrawString(strArray[0].ToString(), DataGridView2.DefaultCellStyle.Font, brush, (float) e.RowBounds.Location.X + (float) checked (DataGridView2.RowHeadersWidth - strArray[0].ToString().Length * num) / 2f, (float) checked (e.RowBounds.Location.Y + 5)); else e.Graphics.DrawString(checked (e.RowIndex - 1).ToString(), DataGridView2.DefaultCellStyle.Font, brush, (float) e.RowBounds.Location.X + (float) checked (DataGridView2.RowHeadersWidth - (e.RowIndex - 1).ToString().Length * 8) / 2f, (float) checked (e.RowBounds.Location.Y + 5)); } private void DataGridView3_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) { string[] strArray = new string[1]{ "搜台" }; Brush brush = (Brush) new SolidBrush(DataGridView3.RowHeadersDefaultCellStyle.ForeColor); int num = 11; if (Operators.CompareString(publicva.Language, "zh-CN", false) != 0) { strArray[0] = "VFO"; num = 7; } if (e.RowIndex == 0) e.Graphics.DrawString(strArray[0].ToString(), DataGridView3.DefaultCellStyle.Font, brush, (float) e.RowBounds.Location.X + (float) checked (DataGridView3.RowHeadersWidth - strArray[0].ToString().Length * num) / 2f, (float) checked (e.RowBounds.Location.Y + 5)); else e.Graphics.DrawString(checked (e.RowIndex - 1).ToString(), DataGridView3.DefaultCellStyle.Font, brush, (float) e.RowBounds.Location.X + (float) checked (DataGridView3.RowHeadersWidth - (e.RowIndex - 1).ToString().Length * 8) / 2f, (float) checked (e.RowBounds.Location.Y + 5)); } public object JudgeInputFMFreq(string StrFreq, int Min, int Max) { string str; try { uint num1 = checked ((uint) Math.Round(unchecked (Conversions.ToDouble(StrFreq) * 100000.0))); if ((long) Max >= (long) num1 & (long) num1 >= (long) Min) { if ((long) num1 % 5000L != 0L) { int num2 = checked ((int) unchecked ((long) num1 / 5000L)); if ((long) num1 % 5000L > 10000L) checked { ++num2; } num1 = checked ((uint) (num2 * 5000)); } str = string.Format("{0:##0.00000}", (object) ((double) num1 / 100000.0)); } else { MyProject.Forms.ChannelMsg.Msgbox_Msg("频率超出范围", "frequency out of range,out of range"); str = ""; } } catch (Exception ex) { ProjectData.SetProjectError(ex); MyProject.Forms.ChannelMsg.Msgbox_Msg("频率超出范围", "frequency out of range,out of range"); str = ""; ProjectData.ClearProjectError(); } return (object) str; } public object JudgeInputAIRFreq(string StrFreq, int Min, int Max) { string str; try { int num1 = checked ((int) Math.Round(unchecked (Conversions.ToDouble(StrFreq) * 100000.0))); if (Max >= num1 & num1 >= Min) { if (num1 % 500 != 0 && num1 % 625 != 0) { int num2 = num1; int num3 = num2 / 625; if (num2 % 625 > 1250) checked { ++num3; } int num4 = checked (num3 * 625); int num5 = num1; int num6 = num5 / 500; if (num5 % 500 > 1000) checked { ++num6; } int num7 = checked (num6 * 500); num1 = Math.Abs(checked (num4 - num1)) <= Math.Abs(checked (num7 - num1)) ? num4 : num7; } str = string.Format("{0:##0.00000}", (object) ((double) num1 / 100000.0)); } else { MyProject.Forms.ChannelMsg.Msgbox_Msg("频率超出范围", "frequency out of range,out of range"); str = ""; } } catch (Exception ex) { ProjectData.SetProjectError(ex); MyProject.Forms.ChannelMsg.Msgbox_Msg("频率超出范围", "frequency out of range,out of range"); str = ""; ProjectData.ClearProjectError(); } return (object) str; } public object Get_AMFreqRangID(double Freq) { uint num1 = checked ((uint) Math.Round(unchecked (Freq * 100000.0))); uint num2 = checked ((uint) Information.UBound((Array) publicva.AMFreqRang)); uint amFreqRangId = 0; while (amFreqRangId <= num2) { if (publicva.AMFreqRang[checked ((int) amFreqRangId), 1] >= num1 & num1 >= publicva.AMFreqRang[checked ((int) amFreqRangId), 0]) return (object) amFreqRangId; checked { ++amFreqRangId; } } return (object) -1; } public object JudgeInputAMFreq(string StrFreq) { string str; try { double Freq = Conversions.ToDouble(StrFreq); if (Conversions.ToInteger(Get_AMFreqRangID(Freq)) != -1) { uint num1 = checked ((uint) Math.Round(unchecked (Freq * 100000.0))); if ((long) num1 % 100L != 0L) { int num2 = checked ((int) unchecked ((long) num1 / 100L)); if ((long) num1 % 100L > 200L) checked { ++num2; } num1 = checked ((uint) (num2 * 100)); } str = string.Format("{0:##0.00000}", (object) ((double) num1 / 100000.0)); } else { MyProject.Forms.ChannelMsg.Msgbox_Msg("频率超出范围", "frequency out of range,out of range"); str = ""; } } catch (Exception ex) { ProjectData.SetProjectError(ex); MyProject.Forms.ChannelMsg.Msgbox_Msg("频率超出范围", "frequency out of range,out of range"); str = ""; ProjectData.ClearProjectError(); } return (object) str; } public object Get_Freq(int Address, int Min, int Max) { double num = (double) checked (((int) publicva.EEPROM_Byte[Address + 0] & 240) >> 4 * 10000000) + (double) checked ((int) publicva.EEPROM_Byte[Address + 0] & 15 * 1000000) + (double) checked (((int) publicva.EEPROM_Byte[Address + 1] & 240) >> 4 * 100000) + (double) checked ((int) publicva.EEPROM_Byte[Address + 1] & 15 * 10000) + (double) checked (((int) publicva.EEPROM_Byte[Address + 2] & 240) >> 4 * 1000) + (double) checked ((int) publicva.EEPROM_Byte[Address + 2] & 15 * 100) + (double) checked (((int) publicva.EEPROM_Byte[Address + 3] & 240) >> 4 * 10) + (double) checked ((int) publicva.EEPROM_Byte[Address + 3] & 15 * 1); return !((double) Max >= num & num >= (double) Min) ? (object) "" : (object) string.Format("{0:##0.00000}", (object) (num / 100000.0)); } public object Get_AMFreq(int Address) { double num = (double) checked (((int) publicva.EEPROM_Byte[Address + 0] & 240) >> 4 * 10000000) + (double) checked ((int) publicva.EEPROM_Byte[Address + 0] & 15 * 1000000) + (double) checked (((int) publicva.EEPROM_Byte[Address + 1] & 240) >> 4 * 100000) + (double) checked ((int) publicva.EEPROM_Byte[Address + 1] & 15 * 10000) + (double) checked (((int) publicva.EEPROM_Byte[Address + 2] & 240) >> 4 * 1000) + (double) checked ((int) publicva.EEPROM_Byte[Address + 2] & 15 * 100) + 0.0 + 0.0; return !((double) publicva.AMFreqRang[(int) publicva.EEPROM_Byte[checked (Address + 3)], 1] >= num & num >= (double) publicva.AMFreqRang[(int) publicva.EEPROM_Byte[checked (Address + 3)], 0]) ? (object) "" : (object) string.Format("{0:##0.00000}", (object) (num / 100000.0)); } public void Set_Freq(int Address, string Temp_Value) { uint num; try { num = checked ((uint) Math.Round(unchecked (Convert.ToDouble(Temp_Value) * 1000000.0))); } catch (Exception ex) { ProjectData.SetProjectError(ex); num = 0U; ProjectData.ClearProjectError(); } publicva.EEPROM_Byte[checked (Address + 0)] = Conversions.ToByte("&h" + Conversions.ToString((long) num / 10000000L)); publicva.EEPROM_Byte[checked (Address + 1)] = Conversions.ToByte("&h" + Conversions.ToString((long) num / 100000L % 100L)); publicva.EEPROM_Byte[checked (Address + 2)] = Conversions.ToByte("&h" + Conversions.ToString((long) num / 1000L % 100L)); publicva.EEPROM_Byte[checked (Address + 3)] = Conversions.ToByte("&h" + Conversions.ToString((long) num % 1000L / 10L)); } private void Button1_Click(object sender, EventArgs e) => Close(); private void ComboBoxAM信道号_SelectionChangeCommitted(object sender, EventArgs e) { if (MyProject.Forms.ChannelMsg.CHStatus_Read(ComboBoxAM信道号.SelectedIndex, 7824)) return; MyProject.Forms.MDIParent1.SetControl_U8_Data((Control) ComboBoxAM信道号, checked (3952 + 8), publicva.AllBit, 0); if (!MyProject.Forms.ChannelMsg.CHStatus_Read(ComboBoxAM信道号.SelectedIndex, 7824)) ComboBoxAM信道号.SelectedIndex = 0; } private void ComboBoxFM信道号_SelectionChangeCommitted(object sender, EventArgs e) { if (MyProject.Forms.ChannelMsg.CHStatus_Read(ComboBoxFM信道号.SelectedIndex, 7840)) return; MyProject.Forms.MDIParent1.SetControl_U8_Data((Control) ComboBoxFM信道号, checked (3952 + 7), publicva.AllBit, 0); if (!MyProject.Forms.ChannelMsg.CHStatus_Read(ComboBoxFM信道号.SelectedIndex, 7840)) ComboBoxFM信道号.SelectedIndex = 0; } private void ComboBoxAIR信道号_SelectionChangeCommitted(object sender, EventArgs e) { if (MyProject.Forms.ChannelMsg.CHStatus_Read(ComboBoxAIR信道号.SelectedIndex, 7856)) return; MyProject.Forms.MDIParent1.SetControl_U8_Data((Control) ComboBoxAIR信道号, checked (3952 + 6), publicva.AllBit, 0); if (!MyProject.Forms.ChannelMsg.CHStatus_Read(ComboBoxAIR信道号.SelectedIndex, 7856)) ComboBoxAIR信道号.SelectedIndex = 0; } } }