Up to framework 4.8
This commit is contained in:
parent
0b0bdc9bf0
commit
7a21a10aa0
@ -7,7 +7,7 @@
|
||||
<ProjectGuid>{8C21DBEE-193D-45EA-8EAD-06C77A14BA4E}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AssemblyName>HPG-68D.resources</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<ApplicationVersion>1.0.0.0</ApplicationVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<FileUpgradeFlags>
|
||||
|
||||
@ -1,10 +1,4 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: HPG_68D.AboutForm
|
||||
// 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 HPG_68D.My;
|
||||
using Microsoft.VisualBasic.CompilerServices;
|
||||
using System;
|
||||
using System.Collections;
|
||||
@ -150,8 +144,10 @@ namespace HPG_68D
|
||||
|
||||
internal virtual Label Label发布时间
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Label发布时间;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
[DebuggerNonUserCode]
|
||||
get => _Label发布时间;
|
||||
[DebuggerNonUserCode][MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set
|
||||
{
|
||||
_Label发布时间 = value;
|
||||
}
|
||||
@ -167,8 +163,8 @@ namespace HPG_68D
|
||||
|
||||
private void AboutForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
Label版本.Text = Operators.CompareString(publicva.Language, "zh-CN", false) != 0 ? "Version " + MyProject.Application.Info.Version.ToString() : "版本 " + MyProject.Application.Info.Version.ToString();
|
||||
Label发布时间.Text = MyProject.Application.Info.Description.ToString();
|
||||
Label版本.Text = "Version " + MyProject.Application.Info.Version;
|
||||
Label发布时间.Text = MyProject.Application.Info.Description;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -4003,44 +4003,27 @@ namespace HPG_68D
|
||||
{
|
||||
MyProject.Forms.MDIParent1.提示音AToolStripMenuItem.Checked = true;
|
||||
DataGridView1.RowCount = 14;
|
||||
if (Operators.CompareString(publicva.Language, "zh-CN", false) == 0)
|
||||
DataGridView1.TopLeftHeaderCell.Value = "序号";
|
||||
else
|
||||
DataGridView1.TopLeftHeaderCell.Value = "NO.";
|
||||
DataGridView2.RowCount = 14;
|
||||
if (Operators.CompareString(publicva.Language, "zh-CN", false) == 0)
|
||||
DataGridView2.TopLeftHeaderCell.Value = "序号";
|
||||
else
|
||||
|
||||
DataGridView2.TopLeftHeaderCell.Value = "NO.";
|
||||
DataGridView3.RowCount = 14;
|
||||
if (Operators.CompareString(publicva.Language, "zh-CN", false) == 0)
|
||||
DataGridView3.TopLeftHeaderCell.Value = "序号";
|
||||
else
|
||||
|
||||
DataGridView3.TopLeftHeaderCell.Value = "NO.";
|
||||
DataGridView4.RowCount = 14;
|
||||
if (Operators.CompareString(publicva.Language, "zh-CN", false) == 0)
|
||||
DataGridView4.TopLeftHeaderCell.Value = "序号";
|
||||
else
|
||||
|
||||
DataGridView4.TopLeftHeaderCell.Value = "NO.";
|
||||
DataGridView5.RowCount = 14;
|
||||
if (Operators.CompareString(publicva.Language, "zh-CN", false) == 0)
|
||||
DataGridView5.TopLeftHeaderCell.Value = "序号";
|
||||
else
|
||||
|
||||
DataGridView5.TopLeftHeaderCell.Value = "NO.";
|
||||
DataGridView6.RowCount = 14;
|
||||
if (Operators.CompareString(publicva.Language, "zh-CN", false) == 0)
|
||||
DataGridView6.TopLeftHeaderCell.Value = "序号";
|
||||
else
|
||||
|
||||
DataGridView6.TopLeftHeaderCell.Value = "NO.";
|
||||
DataGridView7.RowCount = 14;
|
||||
if (Operators.CompareString(publicva.Language, "zh-CN", false) == 0)
|
||||
DataGridView7.TopLeftHeaderCell.Value = "序号";
|
||||
else
|
||||
|
||||
DataGridView7.TopLeftHeaderCell.Value = "NO.";
|
||||
DataGridView8.RowCount = 14;
|
||||
if (Operators.CompareString(publicva.Language, "zh-CN", false) == 0)
|
||||
DataGridView8.TopLeftHeaderCell.Value = "序号";
|
||||
else
|
||||
|
||||
DataGridView8.TopLeftHeaderCell.Value = "NO.";
|
||||
Column1_1.Items.RemoveAt(0);
|
||||
Column1_2.Items.RemoveAt(0);
|
||||
@ -4050,19 +4033,7 @@ namespace HPG_68D
|
||||
Column1_6.Items.RemoveAt(0);
|
||||
Column1_7.Items.RemoveAt(0);
|
||||
Column1_8.Items.RemoveAt(0);
|
||||
if (Operators.CompareString(publicva.Language, "zh-CN", false) == 0)
|
||||
{
|
||||
Column1_1.Items.Insert(0, "无");
|
||||
Column1_2.Items.Insert(0, "无");
|
||||
Column1_3.Items.Insert(0, "无");
|
||||
Column1_4.Items.Insert(0, "无");
|
||||
Column1_5.Items.Insert(0, "无");
|
||||
Column1_6.Items.Insert(0, "无");
|
||||
Column1_7.Items.Insert(0, "无");
|
||||
Column1_8.Items.Insert(0, "无");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Column1_1.Items.Insert(0, "None");
|
||||
Column1_2.Items.Insert(0, "None");
|
||||
Column1_3.Items.Insert(0, "None");
|
||||
@ -4071,7 +4042,7 @@ namespace HPG_68D
|
||||
Column1_6.Items.Insert(0, "None");
|
||||
Column1_7.Items.Insert(0, "None");
|
||||
Column1_8.Items.Insert(0, "None");
|
||||
}
|
||||
|
||||
var num1 = 4608;
|
||||
ComboBox1.SelectedIndex = publicva.EEPROM_Byte[checked (num1 + 0)];
|
||||
NumericUpDown1.Value = new Decimal(publicva.EEPROM_Byte[checked (num1 + 1)]);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -15,7 +15,6 @@ using System.Drawing;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
||||
namespace HPG_68D
|
||||
{
|
||||
[DesignerGenerated]
|
||||
@ -130,7 +129,8 @@ namespace HPG_68D
|
||||
ChannelMsgDataGridView.ColumnHeadersDefaultCellStyle = gridViewCellStyle2;
|
||||
componentResourceManager.ApplyResources(ChannelMsgDataGridView, "ChannelMsgDataGridView");
|
||||
ChannelMsgDataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
|
||||
ChannelMsgDataGridView.Columns.AddRange(ColumnRxFreq, Column差频方向, ColumnTxFreq, Column亚音解码类型, Column亚音解码, Column亚音编码类型, Column亚音编码, Column发射功率, Column扫描添加, Column带宽, Column可选信令, Column更多);
|
||||
ChannelMsgDataGridView.Columns.AddRange(ColumnRxFreq, Column差频方向, ColumnTxFreq, Column亚音解码类型, Column亚音解码, Column亚音编码类型, Column亚音编码,
|
||||
Column发射功率, Column扫描添加, Column带宽, Column可选信令, Column更多);
|
||||
ChannelMsgDataGridView.Name = "ChannelMsgDataGridView";
|
||||
gridViewCellStyle3.Alignment = DataGridViewContentAlignment.MiddleCenter;
|
||||
gridViewCellStyle3.BackColor = SystemColors.Control;
|
||||
@ -181,7 +181,24 @@ namespace HPG_68D
|
||||
Column亚音解码类型.Name = "Column亚音解码类型";
|
||||
Column亚音解码.DisplayStyle = DataGridViewComboBoxDisplayStyle.Nothing;
|
||||
componentResourceManager.ApplyResources(Column亚音解码, "Column亚音解码");
|
||||
Column亚音解码.Items.AddRange("OFF", "67.0", "69.3", "71.9", "74.4", "77.0", "79.7", "82.5", "85.4", "88.5", "91.5", "94.8", "97.4", "100.0", "103.5", "107.2", "110.9", "114.8", "118.8", "123.0", "127.3", "131.8", "136.5", "141.3", "146.2", "151.4", "156.7", "159.8", "162.2", "165.5", "167.9", "171.3", "173.8", "177.3", "179.9", "183.5", "186.2", "189.9", "192.8", "196.6", "199.5", "203.5", "206.5", "210.7", "218.1", "225.7", "229.1", "233.6", "241.8", "250.3", "254.1", "D017N", "D023N", "D025N", "D026N", "D031N", "D032N", "D036N", "D043N", "D047N", "D050N", "D051N", "D053N", "D054N", "D065N", "D071N", "D072N", "D073N", "D074N", "D114N", "D115N", "D116N", "D122N", "D125N", "D131N", "D132N", "D134N", "D143N", "D145N", "D152N", "D155N", "D156N", "D162N", "D165N", "D172N", "D174N", "D205N", "D212N", "D223N", "D225N", "D226N", "D243N", "D244N", "D245N", "D246N", "D251N", "D252N", "D255N", "D261N", "D263N", "D265N", "D266N", "D271N", "D274N", "D306N", "D311N", "D315N", "D325N", "D331N", "D332N", "D343N", "D346N", "D351N", "D356N", "D364N", "D365N", "D371N", "D411N", "D412N", "D413N", "D423N", "D431N", "D432N", "D445N", "D446N", "D452N", "D454N", "D455N", "D462N", "D464N", "D465N", "D466N", "D503N", "D506N", "D516N", "D523N", "D526N", "D532N", "D546N", "D565N", "D606N", "D612N", "D624N", "D627N", "D631N", "D632N", "D645N", "D654N", "D662N", "D664N", "D703N", "D712N", "D723N", "D731N", "D732N", "D734N", "D743N", "D754N", "D017I", "D023I", "D025I", "D026I", "D031I", "D032I", "D036I", "D043I", "D047I", "D050I", "D051I", "D053I", "D054I", "D065I", "D071I", "D072I", "D073I", "D074I", "D114I", "D115I", "D116I", "D122I", "D125I", "D131I", "D132I", "D134I", "D143I", "D145I", "D152I", "D155I", "D156I", "D162I", "D165I", "D172I", "D174I", "D205I", "D212I", "D223I", "D225I", "D226I", "D243I", "D244I", "D245I", "D246I", "D251I", "D252I", "D255I", "D261I", "D263I", "D265I", "D266I", "D271I", "D274I", "D306I", "D311I", "D315I", "D325I", "D331I", "D332I", "D343I", "D346I", "D351I", "D356I", "D364I", "D365I", "D371I", "D411I", "D412I", "D413I", "D423I", "D431I", "D432I", "D445I", "D446I", "D452I", "D454I", "D455I", "D462I", "D464I", "D465I", "D466I", "D503I", "D506I", "D516I", "D523I", "D526I", "D532I", "D546I", "D565I", "D606I", "D612I", "D624I", "D627I", "D631I", "D632I", "D645I", "D654I", "D662I", "D664I", "D703I", "D712I", "D723I", "D731I", "D732I", "D734I", "D743I", "D754I");
|
||||
Column亚音解码.Items.AddRange("OFF", "67.0", "69.3", "71.9", "74.4", "77.0", "79.7", "82.5", "85.4", "88.5", "91.5", "94.8", "97.4", "100.0",
|
||||
"103.5", "107.2", "110.9", "114.8", "118.8", "123.0", "127.3", "131.8", "136.5", "141.3", "146.2", "151.4", "156.7", "159.8", "162.2",
|
||||
"165.5", "167.9", "171.3", "173.8", "177.3", "179.9", "183.5", "186.2", "189.9", "192.8", "196.6", "199.5", "203.5", "206.5", "210.7",
|
||||
"218.1", "225.7", "229.1", "233.6", "241.8", "250.3", "254.1", "D017N", "D023N", "D025N", "D026N", "D031N", "D032N", "D036N", "D043N",
|
||||
"D047N", "D050N", "D051N", "D053N", "D054N", "D065N", "D071N", "D072N", "D073N", "D074N", "D114N", "D115N", "D116N", "D122N", "D125N",
|
||||
"D131N", "D132N", "D134N", "D143N", "D145N", "D152N", "D155N", "D156N", "D162N", "D165N", "D172N", "D174N", "D205N", "D212N", "D223N",
|
||||
"D225N", "D226N", "D243N", "D244N", "D245N", "D246N", "D251N", "D252N", "D255N", "D261N", "D263N", "D265N", "D266N", "D271N", "D274N",
|
||||
"D306N", "D311N", "D315N", "D325N", "D331N", "D332N", "D343N", "D346N", "D351N", "D356N", "D364N", "D365N", "D371N", "D411N", "D412N",
|
||||
"D413N", "D423N", "D431N", "D432N", "D445N", "D446N", "D452N", "D454N", "D455N", "D462N", "D464N", "D465N", "D466N", "D503N", "D506N",
|
||||
"D516N", "D523N", "D526N", "D532N", "D546N", "D565N", "D606N", "D612N", "D624N", "D627N", "D631N", "D632N", "D645N", "D654N", "D662N",
|
||||
"D664N", "D703N", "D712N", "D723N", "D731N", "D732N", "D734N", "D743N", "D754N", "D017I", "D023I", "D025I", "D026I", "D031I", "D032I",
|
||||
"D036I", "D043I", "D047I", "D050I", "D051I", "D053I", "D054I", "D065I", "D071I", "D072I", "D073I", "D074I", "D114I", "D115I", "D116I",
|
||||
"D122I", "D125I", "D131I", "D132I", "D134I", "D143I", "D145I", "D152I", "D155I", "D156I", "D162I", "D165I", "D172I", "D174I", "D205I",
|
||||
"D212I", "D223I", "D225I", "D226I", "D243I", "D244I", "D245I", "D246I", "D251I", "D252I", "D255I", "D261I", "D263I", "D265I", "D266I",
|
||||
"D271I", "D274I", "D306I", "D311I", "D315I", "D325I", "D331I", "D332I", "D343I", "D346I", "D351I", "D356I", "D364I", "D365I", "D371I",
|
||||
"D411I", "D412I", "D413I", "D423I", "D431I", "D432I", "D445I", "D446I", "D452I", "D454I", "D455I", "D462I", "D464I", "D465I", "D466I",
|
||||
"D503I", "D506I", "D516I", "D523I", "D526I", "D532I", "D546I", "D565I", "D606I", "D612I", "D624I", "D627I", "D631I", "D632I", "D645I",
|
||||
"D654I", "D662I", "D664I", "D703I", "D712I", "D723I", "D731I", "D732I", "D734I", "D743I", "D754I");
|
||||
Column亚音解码.Name = "Column亚音解码";
|
||||
Column亚音编码类型.DisplayStyle = DataGridViewComboBoxDisplayStyle.Nothing;
|
||||
componentResourceManager.ApplyResources(Column亚音编码类型, "Column亚音编码类型");
|
||||
@ -189,7 +206,24 @@ namespace HPG_68D
|
||||
Column亚音编码类型.Name = "Column亚音编码类型";
|
||||
Column亚音编码.DisplayStyle = DataGridViewComboBoxDisplayStyle.Nothing;
|
||||
componentResourceManager.ApplyResources(Column亚音编码, "Column亚音编码");
|
||||
Column亚音编码.Items.AddRange("OFF", "67.0", "69.3", "71.9", "74.4", "77.0", "79.7", "82.5", "85.4", "88.5", "91.5", "94.8", "97.4", "100.0", "103.5", "107.2", "110.9", "114.8", "118.8", "123.0", "127.3", "131.8", "136.5", "141.3", "146.2", "151.4", "156.7", "159.8", "162.2", "165.5", "167.9", "171.3", "173.8", "177.3", "179.9", "183.5", "186.2", "189.9", "192.8", "196.6", "199.5", "203.5", "206.5", "210.7", "218.1", "225.7", "229.1", "233.6", "241.8", "250.3", "254.1", "D017N", "D023N", "D025N", "D026N", "D031N", "D032N", "D036N", "D043N", "D047N", "D050N", "D051N", "D053N", "D054N", "D065N", "D071N", "D072N", "D073N", "D074N", "D114N", "D115N", "D116N", "D122N", "D125N", "D131N", "D132N", "D134N", "D143N", "D145N", "D152N", "D155N", "D156N", "D162N", "D165N", "D172N", "D174N", "D205N", "D212N", "D223N", "D225N", "D226N", "D243N", "D244N", "D245N", "D246N", "D251N", "D252N", "D255N", "D261N", "D263N", "D265N", "D266N", "D271N", "D274N", "D306N", "D311N", "D315N", "D325N", "D331N", "D332N", "D343N", "D346N", "D351N", "D356N", "D364N", "D365N", "D371N", "D411N", "D412N", "D413N", "D423N", "D431N", "D432N", "D445N", "D446N", "D452N", "D454N", "D455N", "D462N", "D464N", "D465N", "D466N", "D503N", "D506N", "D516N", "D523N", "D526N", "D532N", "D546N", "D565N", "D606N", "D612N", "D624N", "D627N", "D631N", "D632N", "D645N", "D654N", "D662N", "D664N", "D703N", "D712N", "D723N", "D731N", "D732N", "D734N", "D743N", "D754N", "D017I", "D023I", "D025I", "D026I", "D031I", "D032I", "D036I", "D043I", "D047I", "D050I", "D051I", "D053I", "D054I", "D065I", "D071I", "D072I", "D073I", "D074I", "D114I", "D115I", "D116I", "D122I", "D125I", "D131I", "D132I", "D134I", "D143I", "D145I", "D152I", "D155I", "D156I", "D162I", "D165I", "D172I", "D174I", "D205I", "D212I", "D223I", "D225I", "D226I", "D243I", "D244I", "D245I", "D246I", "D251I", "D252I", "D255I", "D261I", "D263I", "D265I", "D266I", "D271I", "D274I", "D306I", "D311I", "D315I", "D325I", "D331I", "D332I", "D343I", "D346I", "D351I", "D356I", "D364I", "D365I", "D371I", "D411I", "D412I", "D413I", "D423I", "D431I", "D432I", "D445I", "D446I", "D452I", "D454I", "D455I", "D462I", "D464I", "D465I", "D466I", "D503I", "D506I", "D516I", "D523I", "D526I", "D532I", "D546I", "D565I", "D606I", "D612I", "D624I", "D627I", "D631I", "D632I", "D645I", "D654I", "D662I", "D664I", "D703I", "D712I", "D723I", "D731I", "D732I", "D734I", "D743I", "D754I");
|
||||
Column亚音编码.Items.AddRange("OFF", "67.0", "69.3", "71.9", "74.4", "77.0", "79.7", "82.5", "85.4", "88.5", "91.5", "94.8", "97.4", "100.0",
|
||||
"103.5", "107.2", "110.9", "114.8", "118.8", "123.0", "127.3", "131.8", "136.5", "141.3", "146.2", "151.4", "156.7", "159.8", "162.2",
|
||||
"165.5", "167.9", "171.3", "173.8", "177.3", "179.9", "183.5", "186.2", "189.9", "192.8", "196.6", "199.5", "203.5", "206.5", "210.7",
|
||||
"218.1", "225.7", "229.1", "233.6", "241.8", "250.3", "254.1", "D017N", "D023N", "D025N", "D026N", "D031N", "D032N", "D036N", "D043N",
|
||||
"D047N", "D050N", "D051N", "D053N", "D054N", "D065N", "D071N", "D072N", "D073N", "D074N", "D114N", "D115N", "D116N", "D122N", "D125N",
|
||||
"D131N", "D132N", "D134N", "D143N", "D145N", "D152N", "D155N", "D156N", "D162N", "D165N", "D172N", "D174N", "D205N", "D212N", "D223N",
|
||||
"D225N", "D226N", "D243N", "D244N", "D245N", "D246N", "D251N", "D252N", "D255N", "D261N", "D263N", "D265N", "D266N", "D271N", "D274N",
|
||||
"D306N", "D311N", "D315N", "D325N", "D331N", "D332N", "D343N", "D346N", "D351N", "D356N", "D364N", "D365N", "D371N", "D411N", "D412N",
|
||||
"D413N", "D423N", "D431N", "D432N", "D445N", "D446N", "D452N", "D454N", "D455N", "D462N", "D464N", "D465N", "D466N", "D503N", "D506N",
|
||||
"D516N", "D523N", "D526N", "D532N", "D546N", "D565N", "D606N", "D612N", "D624N", "D627N", "D631N", "D632N", "D645N", "D654N", "D662N",
|
||||
"D664N", "D703N", "D712N", "D723N", "D731N", "D732N", "D734N", "D743N", "D754N", "D017I", "D023I", "D025I", "D026I", "D031I", "D032I",
|
||||
"D036I", "D043I", "D047I", "D050I", "D051I", "D053I", "D054I", "D065I", "D071I", "D072I", "D073I", "D074I", "D114I", "D115I", "D116I",
|
||||
"D122I", "D125I", "D131I", "D132I", "D134I", "D143I", "D145I", "D152I", "D155I", "D156I", "D162I", "D165I", "D172I", "D174I", "D205I",
|
||||
"D212I", "D223I", "D225I", "D226I", "D243I", "D244I", "D245I", "D246I", "D251I", "D252I", "D255I", "D261I", "D263I", "D265I", "D266I",
|
||||
"D271I", "D274I", "D306I", "D311I", "D315I", "D325I", "D331I", "D332I", "D343I", "D346I", "D351I", "D356I", "D364I", "D365I", "D371I",
|
||||
"D411I", "D412I", "D413I", "D423I", "D431I", "D432I", "D445I", "D446I", "D452I", "D454I", "D455I", "D462I", "D464I", "D465I", "D466I",
|
||||
"D503I", "D506I", "D516I", "D523I", "D526I", "D532I", "D546I", "D565I", "D606I", "D612I", "D624I", "D627I", "D631I", "D632I", "D645I",
|
||||
"D654I", "D662I", "D664I", "D703I", "D712I", "D723I", "D731I", "D732I", "D734I", "D743I", "D754I");
|
||||
Column亚音编码.Name = "Column亚音编码";
|
||||
Column发射功率.DisplayStyle = DataGridViewComboBoxDisplayStyle.Nothing;
|
||||
componentResourceManager.ApplyResources(Column发射功率, "Column发射功率");
|
||||
@ -226,6 +260,7 @@ namespace HPG_68D
|
||||
Controls.Add(Button1);
|
||||
Controls.Add(Panel1);
|
||||
DoubleBuffered = true;
|
||||
|
||||
Name = nameof(ChannelMsg);
|
||||
((ISupportInitialize) ChannelMsgDataGridView).EndInit();
|
||||
Panel1.ResumeLayout(false);
|
||||
@ -234,8 +269,10 @@ namespace HPG_68D
|
||||
|
||||
internal virtual DataGridView ChannelMsgDataGridView
|
||||
{
|
||||
[DebuggerNonUserCode] get => _ChannelMsgDataGridView;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
[DebuggerNonUserCode]
|
||||
get => _ChannelMsgDataGridView;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set
|
||||
{
|
||||
if (_ChannelMsgDataGridView != null)
|
||||
{
|
||||
@ -245,6 +282,7 @@ namespace HPG_68D
|
||||
_ChannelMsgDataGridView.CellMouseClick -= ChannelMsgDataGridView_CellMouseClick;
|
||||
_ChannelMsgDataGridView.RowPostPaint -= ChannelMsgDataGridView_RowPostPaint;
|
||||
}
|
||||
|
||||
_ChannelMsgDataGridView = value;
|
||||
if (_ChannelMsgDataGridView == null)
|
||||
return;
|
||||
@ -258,32 +296,34 @@ namespace HPG_68D
|
||||
|
||||
internal virtual Panel Panel1
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Panel1;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set => _Panel1 = value;
|
||||
[DebuggerNonUserCode]
|
||||
get => _Panel1;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set => _Panel1 = value;
|
||||
}
|
||||
|
||||
internal virtual Button Button3
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Button3;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_Button3 = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _Button3;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _Button3 = value; }
|
||||
}
|
||||
|
||||
internal virtual Button Button2
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Button2;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_Button2 = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _Button2;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _Button2 = value; }
|
||||
}
|
||||
|
||||
internal virtual Button Button1
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Button1;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
[DebuggerNonUserCode]
|
||||
get => _Button1;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set
|
||||
{
|
||||
if (_Button1 != null)
|
||||
_Button1.Click -= Button1_Click;
|
||||
@ -296,8 +336,10 @@ namespace HPG_68D
|
||||
|
||||
internal virtual Button Button信道编辑
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Button信道编辑;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
[DebuggerNonUserCode]
|
||||
get => _Button信道编辑;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set
|
||||
{
|
||||
if (_Button信道编辑 != null)
|
||||
_Button信道编辑.Click -= Button信道编辑_Click;
|
||||
@ -310,110 +352,98 @@ namespace HPG_68D
|
||||
|
||||
internal virtual DataGridViewTextBoxColumn ColumnRxFreq
|
||||
{
|
||||
[DebuggerNonUserCode] get => _ColumnRxFreq;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_ColumnRxFreq = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _ColumnRxFreq;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _ColumnRxFreq = value; }
|
||||
}
|
||||
|
||||
internal virtual DataGridViewComboBoxColumn Column差频方向
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Column差频方向;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_Column差频方向 = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _Column差频方向;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _Column差频方向 = value; }
|
||||
}
|
||||
|
||||
internal virtual DataGridViewTextBoxColumn ColumnTxFreq
|
||||
{
|
||||
[DebuggerNonUserCode] get => _ColumnTxFreq;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_ColumnTxFreq = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _ColumnTxFreq;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _ColumnTxFreq = value; }
|
||||
}
|
||||
|
||||
internal virtual DataGridViewComboBoxColumn Column亚音解码类型
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Column亚音解码类型;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_Column亚音解码类型 = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _Column亚音解码类型;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _Column亚音解码类型 = value; }
|
||||
}
|
||||
|
||||
internal virtual DataGridViewComboBoxColumn Column亚音解码
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Column亚音解码;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_Column亚音解码 = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _Column亚音解码;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _Column亚音解码 = value; }
|
||||
}
|
||||
|
||||
internal virtual DataGridViewComboBoxColumn Column亚音编码类型
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Column亚音编码类型;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_Column亚音编码类型 = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _Column亚音编码类型;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _Column亚音编码类型 = value; }
|
||||
}
|
||||
|
||||
internal virtual DataGridViewComboBoxColumn Column亚音编码
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Column亚音编码;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_Column亚音编码 = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _Column亚音编码;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _Column亚音编码 = value; }
|
||||
}
|
||||
|
||||
internal virtual DataGridViewComboBoxColumn Column发射功率
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Column发射功率;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_Column发射功率 = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _Column发射功率;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _Column发射功率 = value; }
|
||||
}
|
||||
|
||||
internal virtual DataGridViewComboBoxColumn Column扫描添加
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Column扫描添加;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_Column扫描添加 = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _Column扫描添加;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _Column扫描添加 = value; }
|
||||
}
|
||||
|
||||
internal virtual DataGridViewComboBoxColumn Column带宽
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Column带宽;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_Column带宽 = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _Column带宽;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _Column带宽 = value; }
|
||||
}
|
||||
|
||||
internal virtual DataGridViewComboBoxColumn Column可选信令
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Column可选信令;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_Column可选信令 = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _Column可选信令;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _Column可选信令 = value; }
|
||||
}
|
||||
|
||||
internal virtual DataGridViewButtonColumn Column更多
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Column更多;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_Column更多 = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _Column更多;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _Column更多 = value; }
|
||||
}
|
||||
|
||||
public void ChannelMsg_Deactivate(object sender, EventArgs e)
|
||||
@ -424,11 +454,14 @@ namespace HPG_68D
|
||||
while (i <= num)
|
||||
{
|
||||
SetData_CHMsg(i);
|
||||
checked { ++i; }
|
||||
checked
|
||||
{
|
||||
++i;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void ChannelMsg_FormClosing(object sender, FormClosingEventArgs e)
|
||||
private static void ChannelMsg_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
MyProject.Forms.MDIParent1.信道信息CToolStripMenuItem.Checked = false;
|
||||
}
|
||||
@ -437,20 +470,7 @@ namespace HPG_68D
|
||||
{
|
||||
MyProject.Forms.MDIParent1.信道信息CToolStripMenuItem.Checked = true;
|
||||
ChannelMsgDataGridView.RowCount = 516;
|
||||
if (Operators.CompareString(publicva.Language, "zh-CN", false) == 0)
|
||||
{
|
||||
ChannelMsgDataGridView.TopLeftHeaderCell.Value = "信道";
|
||||
Column发射功率.Items.Clear();
|
||||
Column发射功率.Items.AddRange("高", "低", "中");
|
||||
Column扫描添加.Items.Clear();
|
||||
Column扫描添加.Items.AddRange("是", "否");
|
||||
Column带宽.Items.Clear();
|
||||
Column带宽.Items.AddRange("宽带(25K)", "宽带(20K)", "窄带(12.5K)");
|
||||
Column可选信令.Items.Clear();
|
||||
Column可选信令.Items.AddRange("无", "DTMF", "2-Tone", "5-Tone");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
ChannelMsgDataGridView.TopLeftHeaderCell.Value = "CH";
|
||||
Column发射功率.Items.Clear();
|
||||
Column发射功率.Items.AddRange("High", "Low", "Middle");
|
||||
@ -460,13 +480,16 @@ namespace HPG_68D
|
||||
Column带宽.Items.AddRange("Wide(25K)", "Wide(20K)", "Narrow(12.5K)");
|
||||
Column可选信令.Items.Clear();
|
||||
Column可选信令.Items.AddRange("None", "DTMF", "2-Tone", "5-Tone");
|
||||
}
|
||||
|
||||
var num = checked(ChannelMsgDataGridView.RowCount - 1);
|
||||
var i = 0;
|
||||
while (i <= num)
|
||||
{
|
||||
GetStr_CHMsg(i);
|
||||
checked { ++i; }
|
||||
checked
|
||||
{
|
||||
++i;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -479,7 +502,8 @@ namespace HPG_68D
|
||||
{
|
||||
if (Operators.ConditionalCompareObjectNotEqual(ChannelMsgDataGridView["ColumnRxFreq", rowIndex].Value, "", false))
|
||||
{
|
||||
var str = Conversions.ToString(JudgeInputRxFreq(Conversions.ToString(ChannelMsgDataGridView["ColumnRxFreq", rowIndex].Value), true));
|
||||
var str = Conversions.ToString(JudgeInputRxFreq(Conversions.ToString(ChannelMsgDataGridView["ColumnRxFreq", rowIndex].Value),
|
||||
true));
|
||||
ChannelMsgDataGridView["ColumnRxFreq", rowIndex].Value = str;
|
||||
if (Operators.ConditionalCompareObjectEqual(ChannelMsgDataGridView["ColumnTxFreq", rowIndex].Value, "", false))
|
||||
{
|
||||
@ -496,7 +520,8 @@ namespace HPG_68D
|
||||
}
|
||||
else if (num == ChannelMsgDataGridView["ColumnTxFreq", rowIndex].ColumnIndex)
|
||||
{
|
||||
var str = Conversions.ToString(JudgeInputTxFreq(Conversions.ToString(ChannelMsgDataGridView["ColumnRxFreq", rowIndex].Value), Conversions.ToString(ChannelMsgDataGridView["ColumnTxFreq", rowIndex].Value), true));
|
||||
var str = Conversions.ToString(JudgeInputTxFreq(Conversions.ToString(ChannelMsgDataGridView["ColumnRxFreq", rowIndex].Value),
|
||||
Conversions.ToString(ChannelMsgDataGridView["ColumnTxFreq", rowIndex].Value), true));
|
||||
ChannelMsgDataGridView["ColumnTxFreq", rowIndex].Value = str;
|
||||
}
|
||||
else if (num == ChannelMsgDataGridView["Column亚音解码类型", rowIndex].ColumnIndex)
|
||||
@ -525,27 +550,40 @@ namespace HPG_68D
|
||||
ChannelMsgDataGridView["Column亚音解码", rowIndex].Value = RuntimeHelpers.GetObjectValue(Column亚音解码.Items[0]);
|
||||
break;
|
||||
case 1:
|
||||
if (!Versioned.IsNumeric(RuntimeHelpers.GetObjectValue(ChannelMsgDataGridView["Column亚音解码", rowIndex].Value)) | publicva.ToneValueValidatingDIS)
|
||||
if (!Versioned.IsNumeric(RuntimeHelpers.GetObjectValue(ChannelMsgDataGridView["Column亚音解码", rowIndex].Value)) |
|
||||
publicva.ToneValueValidatingDIS)
|
||||
{
|
||||
publicva.ToneValueValidatingDIS = false;
|
||||
ChannelMsgDataGridView["Column亚音解码", rowIndex].Value = RuntimeHelpers.GetObjectValue(Get_CTC_DCS_Str(Conversions.ToInteger(Operators.AddObject(Get_CHAddress(rowIndex), 7))));
|
||||
ChannelMsgDataGridView["Column亚音解码", rowIndex].Value =
|
||||
RuntimeHelpers.GetObjectValue(
|
||||
Get_CTC_DCS_Str(Conversions.ToInteger(Operators.AddObject(Get_CHAddress(rowIndex), 7))));
|
||||
break;
|
||||
}
|
||||
|
||||
break;
|
||||
case 2:
|
||||
if (!Versioned.IsNumeric(RuntimeHelpers.GetObjectValue(ChannelMsgDataGridView["Column亚音解码", rowIndex].Value)) | publicva.ToneValueValidatingDIS)
|
||||
if (!Versioned.IsNumeric(RuntimeHelpers.GetObjectValue(ChannelMsgDataGridView["Column亚音解码", rowIndex].Value)) |
|
||||
publicva.ToneValueValidatingDIS)
|
||||
{
|
||||
publicva.ToneValueValidatingDIS = false;
|
||||
ChannelMsgDataGridView["Column亚音解码", rowIndex].Value = RuntimeHelpers.GetObjectValue(Get_CTC_DCS_Str(Conversions.ToInteger(Operators.AddObject(Get_CHAddress(rowIndex), 7))));
|
||||
ChannelMsgDataGridView["Column亚音解码", rowIndex].Value =
|
||||
RuntimeHelpers.GetObjectValue(
|
||||
Get_CTC_DCS_Str(Conversions.ToInteger(Operators.AddObject(Get_CHAddress(rowIndex), 7))));
|
||||
break;
|
||||
}
|
||||
|
||||
break;
|
||||
case 3:
|
||||
if (Operators.CompareString("D", ChannelMsgDataGridView["Column亚音解码", rowIndex].Value.ToString().Substring(0, 1), false) != 0 | publicva.ToneValueValidatingDIS)
|
||||
if (Operators.CompareString("D", ChannelMsgDataGridView["Column亚音解码", rowIndex]
|
||||
.Value.ToString()
|
||||
.Substring(0, 1), false) != 0 | publicva.ToneValueValidatingDIS)
|
||||
{
|
||||
publicva.ToneValueValidatingDIS = false;
|
||||
ChannelMsgDataGridView["Column亚音解码", rowIndex].Value = RuntimeHelpers.GetObjectValue(Get_CTC_DCS_Str(Conversions.ToInteger(Operators.AddObject(Get_CHAddress(rowIndex), 7))));
|
||||
ChannelMsgDataGridView["Column亚音解码", rowIndex].Value =
|
||||
RuntimeHelpers.GetObjectValue(
|
||||
Get_CTC_DCS_Str(Conversions.ToInteger(Operators.AddObject(Get_CHAddress(rowIndex), 7))));
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -575,34 +613,49 @@ namespace HPG_68D
|
||||
ChannelMsgDataGridView["Column亚音编码", rowIndex].Value = RuntimeHelpers.GetObjectValue(Column亚音编码.Items[0]);
|
||||
break;
|
||||
case 1:
|
||||
if (!Versioned.IsNumeric(RuntimeHelpers.GetObjectValue(ChannelMsgDataGridView["Column亚音编码", rowIndex].Value)) | publicva.ToneValueValidatingDIS)
|
||||
if (!Versioned.IsNumeric(RuntimeHelpers.GetObjectValue(ChannelMsgDataGridView["Column亚音编码", rowIndex].Value)) |
|
||||
publicva.ToneValueValidatingDIS)
|
||||
{
|
||||
publicva.ToneValueValidatingDIS = false;
|
||||
ChannelMsgDataGridView["Column亚音编码", rowIndex].Value = RuntimeHelpers.GetObjectValue(Get_CTC_DCS_Str(Conversions.ToInteger(Operators.AddObject(Get_CHAddress(rowIndex), 9))));
|
||||
ChannelMsgDataGridView["Column亚音编码", rowIndex].Value =
|
||||
RuntimeHelpers.GetObjectValue(
|
||||
Get_CTC_DCS_Str(Conversions.ToInteger(Operators.AddObject(Get_CHAddress(rowIndex), 9))));
|
||||
break;
|
||||
}
|
||||
|
||||
break;
|
||||
case 2:
|
||||
if (!Versioned.IsNumeric(RuntimeHelpers.GetObjectValue(ChannelMsgDataGridView["Column亚音编码", rowIndex].Value)) | publicva.ToneValueValidatingDIS)
|
||||
if (!Versioned.IsNumeric(RuntimeHelpers.GetObjectValue(ChannelMsgDataGridView["Column亚音编码", rowIndex].Value)) |
|
||||
publicva.ToneValueValidatingDIS)
|
||||
{
|
||||
publicva.ToneValueValidatingDIS = false;
|
||||
ChannelMsgDataGridView["Column亚音编码", rowIndex].Value = RuntimeHelpers.GetObjectValue(Get_CTC_DCS_Str(Conversions.ToInteger(Operators.AddObject(Get_CHAddress(rowIndex), 9))));
|
||||
ChannelMsgDataGridView["Column亚音编码", rowIndex].Value =
|
||||
RuntimeHelpers.GetObjectValue(
|
||||
Get_CTC_DCS_Str(Conversions.ToInteger(Operators.AddObject(Get_CHAddress(rowIndex), 9))));
|
||||
break;
|
||||
}
|
||||
|
||||
break;
|
||||
case 3:
|
||||
if (Operators.CompareString("D", ChannelMsgDataGridView["Column亚音编码", rowIndex].Value.ToString().Substring(0, 1), false) != 0 | publicva.ToneValueValidatingDIS)
|
||||
if (Operators.CompareString("D", ChannelMsgDataGridView["Column亚音编码", rowIndex]
|
||||
.Value.ToString()
|
||||
.Substring(0, 1), false) != 0 | publicva.ToneValueValidatingDIS)
|
||||
{
|
||||
publicva.ToneValueValidatingDIS = false;
|
||||
ChannelMsgDataGridView["Column亚音编码", rowIndex].Value = RuntimeHelpers.GetObjectValue(Get_CTC_DCS_Str(Conversions.ToInteger(Operators.AddObject(Get_CHAddress(rowIndex), 9))));
|
||||
ChannelMsgDataGridView["Column亚音编码", rowIndex].Value =
|
||||
RuntimeHelpers.GetObjectValue(
|
||||
Get_CTC_DCS_Str(Conversions.ToInteger(Operators.AddObject(Get_CHAddress(rowIndex), 9))));
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (columnIndex == ChannelMsgDataGridView["Column更多", 0].ColumnIndex)
|
||||
return;
|
||||
SetData_CHMsg(rowIndex);
|
||||
if (MyProject.Forms.MDIParent1.JudgeIsFormLoaded(MyProject.Forms.ChannelEditForm) && rowIndex == MyProject.Forms.ChannelEditForm.ComboBox编辑信道号.SelectedIndex)
|
||||
if (MyProject.Forms.MDIParent1.JudgeIsFormLoaded(MyProject.Forms.ChannelEditForm) &&
|
||||
rowIndex == MyProject.Forms.ChannelEditForm.ComboBox编辑信道号.SelectedIndex)
|
||||
MyProject.Forms.ChannelEditForm.GetStr_CHMsg(rowIndex);
|
||||
if (MyProject.Forms.MDIParent1.JudgeIsFormLoaded(MyProject.Forms.ScanFuncMsgForm))
|
||||
MyProject.Forms.ScanFuncMsgForm.SetControl_PRICHList();
|
||||
@ -614,7 +667,8 @@ namespace HPG_68D
|
||||
object sender,
|
||||
DataGridViewEditingControlShowingEventArgs e)
|
||||
{
|
||||
if (ChannelMsgDataGridView.CurrentCell.ColumnIndex == ChannelMsgDataGridView["ColumnRxFreq", 0].ColumnIndex | ChannelMsgDataGridView.CurrentCell.ColumnIndex == ChannelMsgDataGridView["ColumnTxFreq", 0].ColumnIndex)
|
||||
if (ChannelMsgDataGridView.CurrentCell.ColumnIndex == ChannelMsgDataGridView["ColumnRxFreq", 0].ColumnIndex |
|
||||
ChannelMsgDataGridView.CurrentCell.ColumnIndex == ChannelMsgDataGridView["ColumnTxFreq", 0].ColumnIndex)
|
||||
{
|
||||
var boxEditingControl = new DataGridViewTextBoxEditingControl();
|
||||
boxEditingControl = (DataGridViewTextBoxEditingControl) e.Control;
|
||||
@ -622,7 +676,8 @@ namespace HPG_68D
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!(ChannelMsgDataGridView.CurrentCell.ColumnIndex == ChannelMsgDataGridView["Column亚音解码", 0].ColumnIndex | ChannelMsgDataGridView.CurrentCell.ColumnIndex == ChannelMsgDataGridView["Column亚音编码", 0].ColumnIndex))
|
||||
if (!(ChannelMsgDataGridView.CurrentCell.ColumnIndex == ChannelMsgDataGridView["Column亚音解码", 0].ColumnIndex |
|
||||
ChannelMsgDataGridView.CurrentCell.ColumnIndex == ChannelMsgDataGridView["Column亚音编码", 0].ColumnIndex))
|
||||
return;
|
||||
var boxEditingControl = new DataGridViewComboBoxEditingControl();
|
||||
var control = (DataGridViewComboBoxEditingControl) e.Control;
|
||||
@ -642,9 +697,16 @@ namespace HPG_68D
|
||||
|
||||
private void ComboBoxCells_KeyPress(object sender, KeyPressEventArgs e)
|
||||
{
|
||||
if (Operators.CompareString(Conversions.ToString(e.KeyChar), "D", false) == 0 | char.IsDigit(e.KeyChar) | e.KeyChar == '\b' | Operators.CompareString(Conversions.ToString(e.KeyChar), "N", false) == 0 | Operators.CompareString(Conversions.ToString(e.KeyChar), "I", false) == 0 | e.KeyChar == '.' | Operators.CompareString(Conversions.ToString(e.KeyChar), "d", false) == 0 | Operators.CompareString(Conversions.ToString(e.KeyChar), "n", false) == 0 | Operators.CompareString(Conversions.ToString(e.KeyChar), "i", false) == 0)
|
||||
if (Operators.CompareString(Conversions.ToString(e.KeyChar), "D", false) == 0 | char.IsDigit(e.KeyChar) | e.KeyChar == '\b' |
|
||||
Operators.CompareString(Conversions.ToString(e.KeyChar), "N", false) == 0 |
|
||||
Operators.CompareString(Conversions.ToString(e.KeyChar), "I", false) == 0 | e.KeyChar == '.' |
|
||||
Operators.CompareString(Conversions.ToString(e.KeyChar), "d", false) == 0 |
|
||||
Operators.CompareString(Conversions.ToString(e.KeyChar), "n", false) == 0 |
|
||||
Operators.CompareString(Conversions.ToString(e.KeyChar), "i", false) == 0)
|
||||
{
|
||||
if (Operators.CompareString(Conversions.ToString(e.KeyChar), "d", false) == 0 | Operators.CompareString(Conversions.ToString(e.KeyChar), "n", false) == 0 | Operators.CompareString(Conversions.ToString(e.KeyChar), "i", false) == 0)
|
||||
if (Operators.CompareString(Conversions.ToString(e.KeyChar), "d", false) == 0 |
|
||||
Operators.CompareString(Conversions.ToString(e.KeyChar), "n", false) == 0 |
|
||||
Operators.CompareString(Conversions.ToString(e.KeyChar), "i", false) == 0)
|
||||
e.KeyChar = char.ToUpper(e.KeyChar);
|
||||
e.Handled = false;
|
||||
}
|
||||
@ -657,24 +719,32 @@ namespace HPG_68D
|
||||
DataGridViewCellValidatingEventArgs e)
|
||||
{
|
||||
var rowIndex = ChannelMsgDataGridView.CurrentCell.RowIndex;
|
||||
if (ChannelMsgDataGridView.CurrentCell.ColumnIndex == ChannelMsgDataGridView["Column亚音解码", 0].ColumnIndex | ChannelMsgDataGridView.CurrentCell.ColumnIndex == ChannelMsgDataGridView["Column亚音编码", 0].ColumnIndex)
|
||||
if (ChannelMsgDataGridView.CurrentCell.ColumnIndex == ChannelMsgDataGridView["Column亚音解码", 0].ColumnIndex |
|
||||
ChannelMsgDataGridView.CurrentCell.ColumnIndex == ChannelMsgDataGridView["Column亚音编码", 0].ColumnIndex)
|
||||
{
|
||||
publicva.ToneValueValidatingDIS = false;
|
||||
if (Conversions.ToBoolean(Operators.AndObject(Operators.CompareObjectNotEqual(e.FormattedValue, "", false), Column亚音解码.Items.IndexOf(RuntimeHelpers.GetObjectValue(e.FormattedValue)) != 0)))
|
||||
if (Conversions.ToBoolean(Operators.AndObject(Operators.CompareObjectNotEqual(e.FormattedValue, "", false),
|
||||
Column亚音解码.Items.IndexOf(RuntimeHelpers.GetObjectValue(e.FormattedValue)) != 0)))
|
||||
{
|
||||
string str;
|
||||
if (Operators.CompareString(e.FormattedValue.ToString().Substring(0, 1), "D", false) == 0)
|
||||
if (Operators.CompareString(e.FormattedValue.ToString()
|
||||
.Substring(0, 1), "D", false) == 0)
|
||||
{
|
||||
if (e.FormattedValue.ToString().Length != 5)
|
||||
if (e.FormattedValue.ToString()
|
||||
.Length != 5)
|
||||
{
|
||||
publicva.ToneValueValidatingDIS = true;
|
||||
return;
|
||||
}
|
||||
if (!(Operators.CompareString(e.FormattedValue.ToString().Substring(4, 1), "N", false) == 0 | Operators.CompareString(e.FormattedValue.ToString().Substring(4, 1), "I", false) == 0))
|
||||
|
||||
if (!(Operators.CompareString(e.FormattedValue.ToString()
|
||||
.Substring(4, 1), "N", false) == 0 | Operators.CompareString(e.FormattedValue.ToString()
|
||||
.Substring(4, 1), "I", false) == 0))
|
||||
{
|
||||
publicva.ToneValueValidatingDIS = true;
|
||||
return;
|
||||
}
|
||||
|
||||
str = Conversions.ToString(e.FormattedValue);
|
||||
}
|
||||
else
|
||||
@ -691,19 +761,23 @@ namespace HPG_68D
|
||||
ProjectData.ClearProjectError();
|
||||
return;
|
||||
}
|
||||
|
||||
if (num > 254.1 | num < 63.0)
|
||||
{
|
||||
publicva.ToneValueValidatingDIS = true;
|
||||
return;
|
||||
}
|
||||
str = string.Format("{0:###.0}", num);
|
||||
|
||||
str = $"{num:###.0}";
|
||||
}
|
||||
|
||||
if (!Column亚音编码.Items.Contains(str))
|
||||
{
|
||||
Column亚音编码.Items.Add(str);
|
||||
if (!Column亚音解码.Items.Contains(str))
|
||||
Column亚音解码.Items.Add(str);
|
||||
}
|
||||
|
||||
if (ChannelMsgDataGridView.CurrentCell.ColumnIndex == ChannelMsgDataGridView["Column亚音解码", 0].ColumnIndex)
|
||||
ChannelMsgDataGridView["Column亚音解码", rowIndex].Value = str;
|
||||
if (ChannelMsgDataGridView.CurrentCell.ColumnIndex == ChannelMsgDataGridView["Column亚音编码", 0].ColumnIndex)
|
||||
@ -727,18 +801,29 @@ namespace HPG_68D
|
||||
var font = new Font("Arial", 9f, FontStyle.Bold);
|
||||
if (e.RowIndex > 511)
|
||||
{
|
||||
if (e.RowIndex == 512)
|
||||
switch (e.RowIndex)
|
||||
{
|
||||
case 512:
|
||||
brush = Brushes.Red;
|
||||
else if (e.RowIndex == 513)
|
||||
break;
|
||||
case 513:
|
||||
brush = Brushes.Orange;
|
||||
else if (e.RowIndex == 514)
|
||||
break;
|
||||
case 514:
|
||||
brush = Brushes.Blue;
|
||||
else if (e.RowIndex == 515)
|
||||
break;
|
||||
case 515:
|
||||
brush = Brushes.Green;
|
||||
e.Graphics.DrawString(strArray[checked (e.RowIndex - 512)].ToString(), font, brush, checked (e.RowBounds.Location.X + 2), checked (e.RowBounds.Location.Y + 5));
|
||||
break;
|
||||
}
|
||||
|
||||
e.Graphics.DrawString(strArray[checked(e.RowIndex - 512)], font, brush, checked(e.RowBounds.Location.X + 2),
|
||||
checked(e.RowBounds.Location.Y + 5));
|
||||
}
|
||||
else
|
||||
e.Graphics.DrawString(checked (e.RowIndex + 0).ToString(), ChannelMsgDataGridView.DefaultCellStyle.Font, brush, e.RowBounds.Location.X + checked (ChannelMsgDataGridView.RowHeadersWidth - (e.RowIndex + 0).ToString().Length * 8) / 2f, checked (e.RowBounds.Location.Y + 5));
|
||||
e.Graphics.DrawString(checked(e.RowIndex + 0).ToString(), ChannelMsgDataGridView.DefaultCellStyle.Font, brush,
|
||||
e.RowBounds.Location.X + checked(ChannelMsgDataGridView.RowHeadersWidth - (e.RowIndex + 0).ToString()
|
||||
.Length * 8) / 2f, checked(e.RowBounds.Location.Y + 5));
|
||||
}
|
||||
|
||||
private void ChannelMsgDataGridView_CellMouseClick(
|
||||
@ -756,7 +841,8 @@ namespace HPG_68D
|
||||
{
|
||||
if (!Operators.ConditionalCompareObjectEqual("", ChannelMsgDataGridView["ColumnRxFreq", rowIndex].Value, false))
|
||||
return;
|
||||
ChannelMsgDataGridView.CurrentCell = ChannelMsgDataGridView.Rows[rowIndex].Cells[0];
|
||||
ChannelMsgDataGridView.CurrentCell = ChannelMsgDataGridView.Rows[rowIndex]
|
||||
.Cells[0];
|
||||
ChannelMsgDataGridView.BeginEdit(true);
|
||||
}
|
||||
}
|
||||
@ -773,24 +859,41 @@ namespace HPG_68D
|
||||
var integer = Conversions.ToInteger(Get_CHAddress(i));
|
||||
if (i > 511)
|
||||
{
|
||||
if (Operators.ConditionalCompareObjectNotEqual("", Get_RxFreqStr(integer, publicva.EEPROM_Byte[checked (integer + 15)] & 15, publicva.EEPROM_Byte[checked (integer + 11)] & (publicva.Bit0 | publicva.Bit1)), false))
|
||||
if (Operators.ConditionalCompareObjectNotEqual("",
|
||||
Get_RxFreqStr(integer, publicva.EEPROM_Byte[checked(integer + 15)] & 15,
|
||||
publicva.EEPROM_Byte[checked(integer + 11)] & (publicva.Bit0 | publicva.Bit1)), false))
|
||||
flag = true;
|
||||
}
|
||||
else if (CHStatus_Read(i, 8064) && Operators.ConditionalCompareObjectNotEqual("", Get_RxFreqStr(integer, publicva.EEPROM_Byte[checked (integer + 15)] & 15, publicva.EEPROM_Byte[checked (integer + 11)] & (publicva.Bit0 | publicva.Bit1)), false))
|
||||
else if (CHStatus_Read(i, 8064) && Operators.ConditionalCompareObjectNotEqual("",
|
||||
Get_RxFreqStr(integer, publicva.EEPROM_Byte[checked(integer + 15)] & 15,
|
||||
publicva.EEPROM_Byte[checked(integer + 11)] & (publicva.Bit0 | publicva.Bit1)), false))
|
||||
flag = true;
|
||||
|
||||
if (flag)
|
||||
{
|
||||
ChannelMsgDataGridView["ColumnRxFreq", i].Value = RuntimeHelpers.GetObjectValue(Get_RxFreqStr(checked (integer + 0), publicva.EEPROM_Byte[checked (integer + 15)] & 15, publicva.EEPROM_Byte[checked (integer + 11)] & (publicva.Bit0 | publicva.Bit1)));
|
||||
ChannelMsgDataGridView["Column差频方向", i].Value = RuntimeHelpers.GetObjectValue(Column差频方向.Items[(byte) ((publicva.EEPROM_Byte[checked (integer + 14)] & (publicva.Bit2 | (uint) publicva.Bit3)) >> 2)]);
|
||||
ChannelMsgDataGridView["ColumnTxFreq", i].Value = RuntimeHelpers.GetObjectValue(Get_TxFreqStr(checked (integer + 3), publicva.EEPROM_Byte[checked (integer + 15)] & 15, publicva.EEPROM_Byte[checked (integer + 12)] & (publicva.Bit0 | publicva.Bit1)));
|
||||
ChannelMsgDataGridView["Column亚音解码类型", i].Value = RuntimeHelpers.GetObjectValue(Column亚音解码类型.Items[(byte) ((publicva.EEPROM_Byte[checked (integer + 7)] & (publicva.Bit4 | (uint) publicva.Bit5)) >> 4)]);
|
||||
ChannelMsgDataGridView["ColumnRxFreq", i].Value = RuntimeHelpers.GetObjectValue(Get_RxFreqStr(checked(integer + 0),
|
||||
publicva.EEPROM_Byte[checked(integer + 15)] & 15, publicva.EEPROM_Byte[checked(integer + 11)] & (publicva.Bit0 | publicva.Bit1)));
|
||||
ChannelMsgDataGridView["Column差频方向", i].Value = RuntimeHelpers.GetObjectValue(
|
||||
Column差频方向.Items[(byte) ((publicva.EEPROM_Byte[checked(integer + 14)] & (publicva.Bit2 | (uint) publicva.Bit3)) >> 2)]);
|
||||
ChannelMsgDataGridView["ColumnTxFreq", i].Value = RuntimeHelpers.GetObjectValue(Get_TxFreqStr(checked(integer + 3),
|
||||
publicva.EEPROM_Byte[checked(integer + 15)] & 15, publicva.EEPROM_Byte[checked(integer + 12)] & (publicva.Bit0 | publicva.Bit1)));
|
||||
ChannelMsgDataGridView["Column亚音解码类型", i].Value = RuntimeHelpers.GetObjectValue(
|
||||
Column亚音解码类型.Items[(byte) ((publicva.EEPROM_Byte[checked(integer + 7)] & (publicva.Bit4 | (uint) publicva.Bit5)) >> 4)]);
|
||||
ChannelMsgDataGridView["Column亚音解码", i].Value = RuntimeHelpers.GetObjectValue(Get_CTC_DCS_Str(checked(integer + 7)));
|
||||
ChannelMsgDataGridView["Column亚音编码类型", i].Value = RuntimeHelpers.GetObjectValue(Column亚音编码类型.Items[(byte) ((publicva.EEPROM_Byte[checked (integer + 9)] & (publicva.Bit4 | (uint) publicva.Bit5)) >> 4)]);
|
||||
ChannelMsgDataGridView["Column亚音编码类型", i].Value = RuntimeHelpers.GetObjectValue(
|
||||
Column亚音编码类型.Items[(byte) ((publicva.EEPROM_Byte[checked(integer + 9)] & (publicva.Bit4 | (uint) publicva.Bit5)) >> 4)]);
|
||||
ChannelMsgDataGridView["Column亚音编码", i].Value = RuntimeHelpers.GetObjectValue(Get_CTC_DCS_Str(checked(integer + 9)));
|
||||
ChannelMsgDataGridView["Column发射功率", i].Value = RuntimeHelpers.GetObjectValue(Column发射功率.Items[(byte) ((publicva.EEPROM_Byte[checked (integer + 13)] & (publicva.Bit4 | (uint) publicva.Bit5)) >> 4)]);
|
||||
ChannelMsgDataGridView["Column扫描添加", i].Value = i <= 511 ? (!CHStatus_Read(i, 8128) ? RuntimeHelpers.GetObjectValue(Column扫描添加.Items[1]) : RuntimeHelpers.GetObjectValue(Column扫描添加.Items[0])) : RuntimeHelpers.GetObjectValue(Column扫描添加.Items[1]);
|
||||
ChannelMsgDataGridView["Column带宽", i].Value = RuntimeHelpers.GetObjectValue(Column带宽.Items[(byte) ((publicva.EEPROM_Byte[checked (integer + 14)] & (publicva.Bit4 | (uint) publicva.Bit5)) >> 4)]);
|
||||
ChannelMsgDataGridView["Column可选信令", i].Value = RuntimeHelpers.GetObjectValue(Column可选信令.Items[(byte) ((publicva.EEPROM_Byte[checked (integer + 12)] & (publicva.Bit4 | (uint) publicva.Bit5 | publicva.Bit6)) >> 4)]);
|
||||
ChannelMsgDataGridView["Column发射功率", i].Value = RuntimeHelpers.GetObjectValue(
|
||||
Column发射功率.Items[(byte) ((publicva.EEPROM_Byte[checked(integer + 13)] & (publicva.Bit4 | (uint) publicva.Bit5)) >> 4)]);
|
||||
ChannelMsgDataGridView["Column扫描添加", i].Value = i <= 511
|
||||
? (!CHStatus_Read(i, 8128)
|
||||
? RuntimeHelpers.GetObjectValue(Column扫描添加.Items[1])
|
||||
: RuntimeHelpers.GetObjectValue(Column扫描添加.Items[0]))
|
||||
: RuntimeHelpers.GetObjectValue(Column扫描添加.Items[1]);
|
||||
ChannelMsgDataGridView["Column带宽", i].Value = RuntimeHelpers.GetObjectValue(
|
||||
Column带宽.Items[(byte) ((publicva.EEPROM_Byte[checked(integer + 14)] & (publicva.Bit4 | (uint) publicva.Bit5)) >> 4)]);
|
||||
ChannelMsgDataGridView["Column可选信令", i].Value = RuntimeHelpers.GetObjectValue(Column可选信令.Items[
|
||||
(byte) ((publicva.EEPROM_Byte[checked(integer + 12)] & (publicva.Bit4 | (uint) publicva.Bit5 | publicva.Bit6)) >> 4)]);
|
||||
}
|
||||
else
|
||||
Clr_Channel(i);
|
||||
@ -806,14 +909,23 @@ namespace HPG_68D
|
||||
if (flag)
|
||||
{
|
||||
publicva.EEPROM_Byte[checked(integer + 15)] = Conversions.ToByte(Get_FreqRangID(Conversions.ToDouble(ChannelMsgDataGridView["ColumnRxFreq", i].Value)));
|
||||
publicva.EEPROM_Byte[checked (integer + 11)] = Conversions.ToByte(Operators.OrObject((byte) (publicva.EEPROM_Byte[checked (integer + 11)] & (byte) ~(publicva.Bit0 | publicva.Bit1)), Get_FreqStepFlag(Conversions.ToDouble(ChannelMsgDataGridView["ColumnRxFreq", i].Value))));
|
||||
publicva.EEPROM_Byte[checked(integer + 11)] = Conversions.ToByte(Operators.OrObject((byte) (publicva.EEPROM_Byte[checked(integer + 11)] & (byte) ~(publicva.Bit0 | publicva.Bit1)),
|
||||
Get_FreqStepFlag(Conversions.ToDouble(ChannelMsgDataGridView["ColumnRxFreq", i].Value))));
|
||||
Set_FreqData(checked(integer + 0), Conversions.ToString(ChannelMsgDataGridView["ColumnRxFreq", i].Value));
|
||||
publicva.EEPROM_Byte[checked (integer + 14)] = checked ((byte) (publicva.EEPROM_Byte[integer + 14] & unchecked ((byte) ~(publicva.Bit2 | publicva.Bit3)) | Column差频方向.Items.IndexOf(RuntimeHelpers.GetObjectValue(ChannelMsgDataGridView["Column差频方向", i].Value)) << 2));
|
||||
publicva.EEPROM_Byte[checked (integer + 12)] = Conversions.ToByte(Operators.OrObject((byte) (publicva.EEPROM_Byte[checked (integer + 12)] & (byte) ~(publicva.Bit0 | publicva.Bit1)), Get_FreqStepFlag(Conversions.ToDouble(ChannelMsgDataGridView["ColumnTxFreq", i].Value))));
|
||||
publicva.EEPROM_Byte[checked(integer + 14)] =
|
||||
checked((byte) (publicva.EEPROM_Byte[integer + 14] & unchecked((byte) ~(publicva.Bit2 | publicva.Bit3)) |
|
||||
Column差频方向.Items.IndexOf(RuntimeHelpers.GetObjectValue(ChannelMsgDataGridView["Column差频方向", i].Value)) << 2));
|
||||
publicva.EEPROM_Byte[checked(integer + 12)] = Conversions.ToByte(Operators.OrObject(
|
||||
(byte) (publicva.EEPROM_Byte[checked(integer + 12)] & (byte) ~(publicva.Bit0 | publicva.Bit1)),
|
||||
Get_FreqStepFlag(Conversions.ToDouble(ChannelMsgDataGridView["ColumnTxFreq", i].Value))));
|
||||
Set_FreqData(checked(integer + 3), Conversions.ToString(ChannelMsgDataGridView["ColumnTxFreq", i].Value));
|
||||
Set_CTC_DCS_Data(checked (integer + 7), Conversions.ToString(ChannelMsgDataGridView["Column亚音解码", i].Value), Column亚音解码类型.Items.IndexOf(RuntimeHelpers.GetObjectValue(ChannelMsgDataGridView["Column亚音解码类型", i].Value)));
|
||||
Set_CTC_DCS_Data(checked (integer + 9), Conversions.ToString(ChannelMsgDataGridView["Column亚音编码", i].Value), Column亚音编码类型.Items.IndexOf(RuntimeHelpers.GetObjectValue(ChannelMsgDataGridView["Column亚音编码类型", i].Value)));
|
||||
publicva.EEPROM_Byte[checked (integer + 13)] = checked ((byte) (publicva.EEPROM_Byte[integer + 13] & unchecked ((byte) ~(publicva.Bit4 | publicva.Bit5)) | Column发射功率.Items.IndexOf(RuntimeHelpers.GetObjectValue(ChannelMsgDataGridView["Column发射功率", i].Value)) << 4));
|
||||
Set_CTC_DCS_Data(checked(integer + 7), Conversions.ToString(ChannelMsgDataGridView["Column亚音解码", i].Value),
|
||||
Column亚音解码类型.Items.IndexOf(RuntimeHelpers.GetObjectValue(ChannelMsgDataGridView["Column亚音解码类型", i].Value)));
|
||||
Set_CTC_DCS_Data(checked(integer + 9), Conversions.ToString(ChannelMsgDataGridView["Column亚音编码", i].Value),
|
||||
Column亚音编码类型.Items.IndexOf(RuntimeHelpers.GetObjectValue(ChannelMsgDataGridView["Column亚音编码类型", i].Value)));
|
||||
publicva.EEPROM_Byte[checked(integer + 13)] =
|
||||
checked((byte) (publicva.EEPROM_Byte[integer + 13] & unchecked((byte) ~(publicva.Bit4 | publicva.Bit5)) |
|
||||
Column发射功率.Items.IndexOf(RuntimeHelpers.GetObjectValue(ChannelMsgDataGridView["Column发射功率", i].Value)) << 4));
|
||||
if (Column扫描添加.Items.IndexOf(RuntimeHelpers.GetObjectValue(ChannelMsgDataGridView["Column扫描添加", i].Value)) != 0)
|
||||
{
|
||||
if (i <= 511)
|
||||
@ -821,8 +933,13 @@ namespace HPG_68D
|
||||
}
|
||||
else if (i <= 511)
|
||||
CHStatusList_Write(i, "添加", 8128);
|
||||
publicva.EEPROM_Byte[checked (integer + 14)] = checked ((byte) (publicva.EEPROM_Byte[integer + 14] & unchecked ((byte) ~(publicva.Bit4 | publicva.Bit5)) | Column带宽.Items.IndexOf(RuntimeHelpers.GetObjectValue(ChannelMsgDataGridView["Column带宽", i].Value)) << 4));
|
||||
publicva.EEPROM_Byte[checked (integer + 12)] = checked ((byte) (publicva.EEPROM_Byte[integer + 12] & unchecked ((byte) ~(publicva.Bit4 | publicva.Bit5 | publicva.Bit6)) | Column可选信令.Items.IndexOf(RuntimeHelpers.GetObjectValue(ChannelMsgDataGridView["Column可选信令", i].Value)) << 4));
|
||||
|
||||
publicva.EEPROM_Byte[checked(integer + 14)] =
|
||||
checked((byte) (publicva.EEPROM_Byte[integer + 14] & unchecked((byte) ~(publicva.Bit4 | publicva.Bit5)) |
|
||||
Column带宽.Items.IndexOf(RuntimeHelpers.GetObjectValue(ChannelMsgDataGridView["Column带宽", i].Value)) << 4));
|
||||
publicva.EEPROM_Byte[checked(integer + 12)] =
|
||||
checked((byte) (publicva.EEPROM_Byte[integer + 12] & unchecked((byte) ~(publicva.Bit4 | publicva.Bit5 | publicva.Bit6)) |
|
||||
Column可选信令.Items.IndexOf(RuntimeHelpers.GetObjectValue(ChannelMsgDataGridView["Column可选信令", i].Value)) << 4));
|
||||
if (i > 511)
|
||||
return;
|
||||
CHStatusList_Write(i, "添加", 8064);
|
||||
@ -833,9 +950,13 @@ namespace HPG_68D
|
||||
do
|
||||
{
|
||||
publicva.EEPROM_Byte[checked(integer + num)] = 0;
|
||||
checked { ++num; }
|
||||
checked
|
||||
{
|
||||
++num;
|
||||
}
|
||||
}
|
||||
while (num <= 31);
|
||||
|
||||
if (i <= 511)
|
||||
{
|
||||
CHStatusList_Write(i, "删除", 8064);
|
||||
@ -858,17 +979,21 @@ namespace HPG_68D
|
||||
if (num == 3)
|
||||
{
|
||||
var integer = Conversions.ToInteger(Conversion.Oct(checked((long) Math.Round(a)) & 511L));
|
||||
ctcDcsStr = (publicva.EEPROM_Byte[checked (Address + 0)] & (uint) publicva.Bit7) <= 0U ? "D" + string.Format("{0:D3}", integer) + "N" : "D" + string.Format("{0:D3}", integer) + "I";
|
||||
ctcDcsStr = (publicva.EEPROM_Byte[checked(Address + 0)] & (uint) publicva.Bit7) <= 0U
|
||||
? "D" + $"{integer:D3}" + "N"
|
||||
: "D" + $"{integer:D3}" + "I";
|
||||
}
|
||||
else
|
||||
ctcDcsStr = string.Format("{0:###.0}", a / 10.0);
|
||||
ctcDcsStr = $"{a / 10.0:###.0}";
|
||||
}
|
||||
|
||||
if (!Column亚音编码.Items.Contains(ctcDcsStr))
|
||||
{
|
||||
Column亚音编码.Items.Add(ctcDcsStr);
|
||||
if (!Column亚音解码.Items.Contains(ctcDcsStr))
|
||||
Column亚音解码.Items.Add(ctcDcsStr);
|
||||
}
|
||||
|
||||
return ctcDcsStr;
|
||||
}
|
||||
|
||||
@ -880,7 +1005,9 @@ namespace HPG_68D
|
||||
if (!Column亚音解码.Items.Contains(ToneStr))
|
||||
Column亚音解码.Items.Add(ToneStr);
|
||||
}
|
||||
publicva.EEPROM_Byte[checked (Address + 0)] = checked ((byte) (publicva.EEPROM_Byte[Address + 0] & unchecked ((byte) ~(publicva.Bit4 | publicva.Bit5)) | ToneMode << 4));
|
||||
|
||||
publicva.EEPROM_Byte[checked(Address + 0)] =
|
||||
checked((byte) (publicva.EEPROM_Byte[Address + 0] & unchecked((byte) ~(publicva.Bit4 | publicva.Bit5)) | ToneMode << 4));
|
||||
switch (ToneMode)
|
||||
{
|
||||
case 0:
|
||||
@ -889,9 +1016,12 @@ namespace HPG_68D
|
||||
break;
|
||||
case 3:
|
||||
var a1 = Conversions.ToDouble("&H" + Conversion.Hex("&O" + Conversions.ToString(Conversions.ToDouble(ToneStr.Substring(1, 3)))));
|
||||
publicva.EEPROM_Byte[checked (Address + 0)] = checked ((byte) (publicva.EEPROM_Byte[Address + 0] & 240 | ((long) Math.Round(a1) & 3840L) >> 8));
|
||||
publicva.EEPROM_Byte[checked(Address + 0)] =
|
||||
checked((byte) (publicva.EEPROM_Byte[Address + 0] & 240 | ((long) Math.Round(a1) & 3840L) >> 8));
|
||||
publicva.EEPROM_Byte[checked(Address + 1)] = checked((byte) ((long) Math.Round(a1) & byte.MaxValue));
|
||||
publicva.EEPROM_Byte[checked (Address + 0)] = Operators.CompareString("I", ToneStr.Substring(4, 1), false) != 0 ? (byte) (publicva.EEPROM_Byte[checked (Address + 0)] & ~publicva.Bit7) : (byte) (publicva.EEPROM_Byte[checked (Address + 0)] | publicva.Bit7);
|
||||
publicva.EEPROM_Byte[checked(Address + 0)] = Operators.CompareString("I", ToneStr.Substring(4, 1), false) != 0
|
||||
? (byte) (publicva.EEPROM_Byte[checked(Address + 0)] & ~publicva.Bit7)
|
||||
: (byte) (publicva.EEPROM_Byte[checked(Address + 0)] | publicva.Bit7);
|
||||
break;
|
||||
default:
|
||||
double num;
|
||||
@ -905,8 +1035,10 @@ namespace HPG_68D
|
||||
num = 67.0;
|
||||
ProjectData.ClearProjectError();
|
||||
}
|
||||
|
||||
var a2 = num * 10.0;
|
||||
publicva.EEPROM_Byte[checked (Address + 0)] = checked ((byte) (publicva.EEPROM_Byte[Address + 0] & 240 | ((long) Math.Round(a2) & 3840L) >> 8));
|
||||
publicva.EEPROM_Byte[checked(Address + 0)] =
|
||||
checked((byte) (publicva.EEPROM_Byte[Address + 0] & 240 | ((long) Math.Round(a2) & 3840L) >> 8));
|
||||
publicva.EEPROM_Byte[checked(Address + 1)] = checked((byte) ((long) Math.Round(a2) & byte.MaxValue));
|
||||
break;
|
||||
}
|
||||
@ -920,11 +1052,14 @@ namespace HPG_68D
|
||||
6250.0,
|
||||
2500.0
|
||||
};
|
||||
var num1 = checked (publicva.EEPROM_Byte[Address + 0] * 65536) + (double) checked (publicva.EEPROM_Byte[Address + 1] * 256) + checked (publicva.EEPROM_Byte[Address + 2] * 1);
|
||||
var num1 = checked(publicva.EEPROM_Byte[Address + 0] * 65536) + (double) checked(publicva.EEPROM_Byte[Address + 1] * 256) +
|
||||
checked(publicva.EEPROM_Byte[Address + 2] * 1);
|
||||
if (CHStepIndex > 2)
|
||||
CHStepIndex = 0;
|
||||
var num2 = (double) (checked((long) Math.Round(unchecked(num1 * numArray[CHStepIndex]))) / 10L);
|
||||
return !(publicva.RxFreqRang[FreqRangID, 1] >= num2 & num2 >= publicva.RxFreqRang[FreqRangID, 0]) ? "" : (object) string.Format("{0:#00.00000}", num2 / 100000.0);
|
||||
return !(publicva.RxFreqRang[FreqRangID, 1] >= num2 & num2 >= publicva.RxFreqRang[FreqRangID, 0])
|
||||
? ""
|
||||
: (object) $"{num2 / 100000.0:#00.00000}";
|
||||
}
|
||||
|
||||
public object Get_TxFreqStr(int Address, int FreqRangID, int CHStepIndex)
|
||||
@ -935,8 +1070,12 @@ namespace HPG_68D
|
||||
6250.0,
|
||||
2500.0
|
||||
};
|
||||
var num = (double) (checked ((long) Math.Round(unchecked (checked (publicva.EEPROM_Byte[Address + 0] * 65536) + (double) checked (publicva.EEPROM_Byte[Address + 1] * 256) + checked (publicva.EEPROM_Byte[Address + 2] * 1) * numArray[CHStepIndex]))) / 10L);
|
||||
return !(checked (publicva.RxFreqRang[FreqRangID, 1] - publicva.RxFreqRang[FreqRangID, 0]) >= num & num >= 0.0) ? "" : (object) string.Format("{0:##0.00000}", num / 100000.0);
|
||||
var num = (double) (checked((long) Math.Round(unchecked(checked(publicva.EEPROM_Byte[Address + 0] * 65536) +
|
||||
(double) checked(publicva.EEPROM_Byte[Address + 1] * 256) +
|
||||
checked(publicva.EEPROM_Byte[Address + 2] * 1) * numArray[CHStepIndex]))) / 10L);
|
||||
return !(checked(publicva.RxFreqRang[FreqRangID, 1] - publicva.RxFreqRang[FreqRangID, 0]) >= num & num >= 0.0)
|
||||
? ""
|
||||
: (object) $"{num / 100000.0:##0.00000}";
|
||||
}
|
||||
|
||||
public void Set_FreqData(int Address, string FreqStr)
|
||||
@ -958,6 +1097,7 @@ namespace HPG_68D
|
||||
Freq = 0.0;
|
||||
ProjectData.ClearProjectError();
|
||||
}
|
||||
|
||||
var integer = Conversions.ToInteger(Get_FreqStepFlag(Freq));
|
||||
var a = (double) (checked((long) Math.Round(unchecked(Freq * 1000000.0))) / checked((long) Math.Round(numArray[integer])));
|
||||
publicva.EEPROM_Byte[checked(Address + 0)] = checked((byte) (((long) Math.Round(a) & 16711680L) >> 16));
|
||||
@ -975,7 +1115,7 @@ namespace HPG_68D
|
||||
return num % 2500L == 0L ? 2 : (object) 0;
|
||||
}
|
||||
|
||||
public object Get_FreqRangID(double Freq)
|
||||
public object Get_FreqRangID(double freq)
|
||||
{
|
||||
var numArray = new byte[7]
|
||||
{
|
||||
@ -987,23 +1127,29 @@ namespace HPG_68D
|
||||
publicva.Bit5,
|
||||
publicva.Bit6
|
||||
};
|
||||
var num = checked ((uint) Math.Round(unchecked (Freq * 100000.0)));
|
||||
var num = checked((uint) Math.Round(unchecked(freq * 100000.0)));
|
||||
uint freqRangId = 0;
|
||||
while (!(publicva.RxFreqRang[checked ((int) freqRangId), 1] >= num & num >= publicva.RxFreqRang[checked ((int) freqRangId), 0]) || (publicva.EEPROM_Byte[12] & (uint) numArray[checked ((int) freqRangId)]) > 0U)
|
||||
while (!(publicva.RxFreqRang[checked((int) freqRangId), 1] >= num & num >= publicva.RxFreqRang[checked((int) freqRangId), 0]) ||
|
||||
(publicva.EEPROM_Byte[12] & (uint) numArray[checked((int) freqRangId)]) > 0U)
|
||||
{
|
||||
checked { ++freqRangId; }
|
||||
checked
|
||||
{
|
||||
++freqRangId;
|
||||
}
|
||||
|
||||
if (freqRangId > 6U)
|
||||
return -1;
|
||||
}
|
||||
|
||||
return freqRangId;
|
||||
}
|
||||
|
||||
public object JudgeInputRxFreq(string StrFreq, bool msg)
|
||||
public object JudgeInputRxFreq(string strFreq, bool msg)
|
||||
{
|
||||
string str;
|
||||
try
|
||||
{
|
||||
var Freq = Conversions.ToDouble(StrFreq);
|
||||
var Freq = Conversions.ToDouble(strFreq);
|
||||
if (Conversions.ToInteger(Get_FreqRangID(Freq)) != -1)
|
||||
{
|
||||
var num1 = checked((uint) Math.Round(unchecked(Freq * 1000000.0)));
|
||||
@ -1011,15 +1157,20 @@ namespace HPG_68D
|
||||
{
|
||||
var num2 = checked((int) unchecked(num1 / 5000L));
|
||||
if (num1 % 5000L > 10000L)
|
||||
checked { ++num2; }
|
||||
checked
|
||||
{
|
||||
++num2;
|
||||
}
|
||||
|
||||
num1 = checked((uint) (num2 * 5000));
|
||||
}
|
||||
str = string.Format("{0:#00.00000}", num1 / 1000000.0);
|
||||
|
||||
str = $"{num1 / 1000000.0:#00.00000}";
|
||||
}
|
||||
else
|
||||
{
|
||||
if (msg)
|
||||
Msgbox_Msg("频率超出范围", "frequency out of range,out of range");
|
||||
Msgbox_Msg("Frequency out of range");
|
||||
str = "";
|
||||
}
|
||||
}
|
||||
@ -1027,10 +1178,11 @@ namespace HPG_68D
|
||||
{
|
||||
ProjectData.SetProjectError(ex);
|
||||
if (msg)
|
||||
Msgbox_Msg("频率超出范围", "frequency out of range,out of range");
|
||||
Msgbox_Msg("Frequency out of range");
|
||||
str = "";
|
||||
ProjectData.ClearProjectError();
|
||||
}
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
@ -1053,22 +1205,27 @@ namespace HPG_68D
|
||||
{
|
||||
var num5 = checked((int) unchecked(num4 / 500L));
|
||||
if (num4 % 500L > 1000L)
|
||||
checked { ++num5; }
|
||||
checked
|
||||
{
|
||||
++num5;
|
||||
}
|
||||
|
||||
num4 = checked((uint) (num5 * 500));
|
||||
}
|
||||
str = string.Format("{0:##0.00000}", num4 / 100000.0);
|
||||
|
||||
str = $"{num4 / 100000.0:##0.00000}";
|
||||
}
|
||||
else
|
||||
{
|
||||
if (msg)
|
||||
Msgbox_Msg("频率超出范围", "frequency out of range,out of range");
|
||||
Msgbox_Msg("Frequency out of range");
|
||||
str = "0.00000";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (msg)
|
||||
Msgbox_Msg("频率超出范围", "frequency out of range,out of range");
|
||||
Msgbox_Msg("Frequency out of range");
|
||||
str = "";
|
||||
}
|
||||
}
|
||||
@ -1076,24 +1233,18 @@ namespace HPG_68D
|
||||
{
|
||||
ProjectData.SetProjectError(ex);
|
||||
if (msg)
|
||||
Msgbox_Msg("频率超出范围", "frequency out of range,out of range");
|
||||
Msgbox_Msg("Frequency out of range");
|
||||
str = "0.00000";
|
||||
ProjectData.ClearProjectError();
|
||||
}
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
public void Msgbox_Msg(string Zh_Msg, string En_Msg)
|
||||
{
|
||||
if (Operators.CompareString(publicva.Language, "zh-CN", false) == 0)
|
||||
{
|
||||
var num1 = (int) Interaction.MsgBox(Zh_Msg, MsgBoxStyle.Exclamation, publicva.TypeName);
|
||||
}
|
||||
else
|
||||
public void Msgbox_Msg(string En_Msg)
|
||||
{
|
||||
var num2 = (int) Interaction.MsgBox(En_Msg, MsgBoxStyle.Exclamation, publicva.TypeName);
|
||||
}
|
||||
}
|
||||
|
||||
public void CHStatusList_Write(int CHNo, string COM, int Address)
|
||||
{
|
||||
@ -1108,7 +1259,11 @@ namespace HPG_68D
|
||||
64,
|
||||
128
|
||||
};
|
||||
checked { Address += CHNo >> 3; }
|
||||
checked
|
||||
{
|
||||
Address += CHNo >> 3;
|
||||
}
|
||||
|
||||
if (Operators.CompareString(COM, "添加", false) == 0)
|
||||
{
|
||||
publicva.EEPROM_Byte[Address] = (byte) (publicva.EEPROM_Byte[Address] & ~numArray[CHNo & 7]);
|
||||
@ -1134,7 +1289,11 @@ namespace HPG_68D
|
||||
64,
|
||||
128
|
||||
};
|
||||
checked { Address += CHNo >> 3; }
|
||||
checked
|
||||
{
|
||||
Address += CHNo >> 3;
|
||||
}
|
||||
|
||||
return (publicva.EEPROM_Byte[Address] & (uint) numArray[CHNo & 7]) <= 0U;
|
||||
}
|
||||
|
||||
|
||||
@ -8,14 +8,11 @@ using HPG_68D.My;
|
||||
using Microsoft.VisualBasic.CompilerServices;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
||||
namespace HPG_68D
|
||||
{
|
||||
[DesignerGenerated]
|
||||
@ -109,8 +106,10 @@ namespace HPG_68D
|
||||
|
||||
internal virtual Button Button2
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Button2;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
[DebuggerNonUserCode]
|
||||
get => _Button2;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set
|
||||
{
|
||||
if (_Button2 != null)
|
||||
_Button2.Click -= Button2_Click;
|
||||
@ -123,8 +122,10 @@ namespace HPG_68D
|
||||
|
||||
internal virtual Button Button1
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Button1;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
[DebuggerNonUserCode]
|
||||
get => _Button1;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set
|
||||
{
|
||||
if (_Button1 != null)
|
||||
_Button1.Click -= Button1_Click;
|
||||
@ -137,8 +138,10 @@ namespace HPG_68D
|
||||
|
||||
internal virtual ComboBox ComboBox1
|
||||
{
|
||||
[DebuggerNonUserCode] get => _ComboBox1;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
[DebuggerNonUserCode]
|
||||
get => _ComboBox1;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set
|
||||
{
|
||||
if (_ComboBox1 != null)
|
||||
_ComboBox1.MouseClick -= ComboBox1_MouseClick;
|
||||
@ -151,16 +154,15 @@ namespace HPG_68D
|
||||
|
||||
internal virtual Label Label1
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Label1;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set => _Label1 = value;
|
||||
[DebuggerNonUserCode]
|
||||
get => _Label1;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set => _Label1 = value;
|
||||
}
|
||||
|
||||
private void ComForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
ComboBox1.SelectedIndex = checked((int) publicva.COM_SelectIndex);
|
||||
if (Operators.CompareString(publicva.Language, "zh-CN", false) == 0)
|
||||
Label1.Text = "通信端口";
|
||||
else
|
||||
Label1.Text = "Port";
|
||||
}
|
||||
|
||||
@ -187,6 +189,7 @@ namespace HPG_68D
|
||||
finally
|
||||
{
|
||||
}
|
||||
|
||||
if (ComboBox1.Items.Count >= 1)
|
||||
return;
|
||||
ComboBox1.Items.Add("COM1");
|
||||
|
||||
1
HPG-68D/Config.hpg
Normal file
1
HPG-68D/Config.hpg
Normal file
@ -0,0 +1 @@
|
||||
en-US
|
||||
@ -1399,7 +1399,7 @@ namespace HPG_68D
|
||||
{
|
||||
var address = 4032;
|
||||
GetDTMF_Code(address, TextBox1.Text);
|
||||
publicva.EEPROM_Byte[checked (address + 12)] = checked ((byte) TextBox1.Text.ToString().Length);
|
||||
publicva.EEPROM_Byte[checked (address + 12)] = checked ((byte) TextBox1.Text.Length);
|
||||
}
|
||||
|
||||
private void TextBox2_KeyPress(object sender, KeyPressEventArgs e)
|
||||
@ -1418,7 +1418,7 @@ namespace HPG_68D
|
||||
{
|
||||
var address = 4048;
|
||||
GetDTMF_Code(address, TextBox2.Text);
|
||||
publicva.EEPROM_Byte[checked (address + 12)] = checked ((byte) TextBox2.Text.ToString().Length);
|
||||
publicva.EEPROM_Byte[checked (address + 12)] = checked ((byte) TextBox2.Text.Length);
|
||||
}
|
||||
|
||||
private void TextBox3_KeyPress(object sender, KeyPressEventArgs e)
|
||||
@ -1437,7 +1437,7 @@ namespace HPG_68D
|
||||
{
|
||||
var address = 4064;
|
||||
GetDTMF_Code(address, TextBox3.Text);
|
||||
publicva.EEPROM_Byte[checked (address + 12)] = checked ((byte) TextBox3.Text.ToString().Length);
|
||||
publicva.EEPROM_Byte[checked (address + 12)] = checked ((byte) TextBox3.Text.Length);
|
||||
}
|
||||
|
||||
private void TextBox4_KeyPress(object sender, KeyPressEventArgs e)
|
||||
@ -1456,7 +1456,7 @@ namespace HPG_68D
|
||||
{
|
||||
var address = 4080;
|
||||
GetDTMF_Code(address, TextBox4.Text);
|
||||
publicva.EEPROM_Byte[checked (address + 12)] = checked ((byte) TextBox4.Text.ToString().Length);
|
||||
publicva.EEPROM_Byte[checked (address + 12)] = checked ((byte) TextBox4.Text.Length);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
<ProjectGuid>{761C095A-01C0-445E-891B-951A94D4A5D7}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AssemblyName>HPG-68D</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<ApplicationVersion>1.0.0.0</ApplicationVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<RootNamespace>HPG_68D</RootNamespace>
|
||||
@ -136,5 +136,13 @@
|
||||
<EmbeddedResource Include="TypeFuncMsgForm.resx" />
|
||||
<EmbeddedResource Include="TypeMsgForm.resx" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Config.hpg">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="default_data.hpg">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@ -1,4 +1,43 @@
|
||||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002Eresources_002FHPG_005F68D_002FChannelEditForm_002Fen/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002Eresources_002FHPG_005F68D_002F_005F2ToneForm_002Fen/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002Eresources_002FHPG_005F68D_002F_005F5ToneForm_002Fen/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002Eresources_002FHPG_005F68D_002FAboutForm_002Fen/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002Eresources_002FHPG_005F68D_002FBeepForm_002Fen/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002Eresources_002FHPG_005F68D_002FChannelMsg_002Fen/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002Eresources_002FHPG_005F68D_002FComForm_002Fen/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002Eresources_002FHPG_005F68D_002FDtmfForm_002Fen/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002Eresources_002FHPG_005F68D_002FInputPasswordForm_002Fen/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002Eresources_002FHPG_005F68D_002FMDIParent1_002Fen/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002Eresources_002FHPG_005F68D_002FMSCommReadForm_002Fen/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002Eresources_002FHPG_005F68D_002FMSCommWriteForm_002Fen/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002Eresources_002FHPG_005F68D_002FMsgForm_002Fen/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002Eresources_002FHPG_005F68D_002FPasswordForm_002Fen/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002Eresources_002FHPG_005F68D_002FRadioMsgForm_002Fen/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002Eresources_002FHPG_005F68D_002FScanFuncMsgForm_002Fen/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002Eresources_002FHPG_005F68D_002FSofeMsgForm_002Fen/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002Eresources_002FHPG_005F68D_002FSOSMsgForm_002Fen/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002Eresources_002FHPG_005F68D_002FTypeFuncMsgForm_002Fen/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002Eresources_002FHPG_005F68D_002FTypeMsgForm_002Fen/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002FResources/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002F_005F2ToneForm/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002F_005F5ToneForm/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002FAboutForm/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002FBeepForm/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002FChannelEditForm/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002FChannelMsg/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002FComForm/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002FDtmfForm/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002FInputPasswordForm/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002FMDIParent1/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002FMSCommReadForm/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002FMSCommWriteForm/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002FMsgForm/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002FPasswordForm/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002FRadioMsgForm/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002FScanFuncMsgForm/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002FSofeMsgForm/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002FSOSMsgForm/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002FTypeFuncMsgForm/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=HPG_002D68D_002FTypeMsgForm/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/ResxEditorPersonal/Initialized/@EntryValue">True</s:Boolean></wpf:ResourceDictionary>
|
||||
@ -10,7 +10,6 @@ using System;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
@ -1,19 +1,10 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: HPG_68D.LanguageHelper
|
||||
// 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 Microsoft.VisualBasic.CompilerServices;
|
||||
using Microsoft.VisualBasic.CompilerServices;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.Threading;
|
||||
using System.Windows.Forms;
|
||||
using System.Windows.Forms.Layout;
|
||||
|
||||
|
||||
namespace HPG_68D
|
||||
{
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,10 +1,4 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: HPG_68D.My.MyApplication
|
||||
// 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 Microsoft.VisualBasic.ApplicationServices;
|
||||
using Microsoft.VisualBasic.ApplicationServices;
|
||||
using System;
|
||||
using System.CodeDom.Compiler;
|
||||
using System.Collections;
|
||||
@ -27,7 +21,6 @@ namespace HPG_68D.My
|
||||
|
||||
[STAThread]
|
||||
[DebuggerHidden]
|
||||
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||
internal static void Main(string[] Args)
|
||||
{
|
||||
try
|
||||
@ -48,6 +41,7 @@ namespace HPG_68D.My
|
||||
IsSingleInstance = false;
|
||||
EnableVisualStyles = true;
|
||||
SaveMySettingsOnExit = true;
|
||||
|
||||
ShutdownStyle = ShutdownMode.AfterMainFormCloses;
|
||||
}
|
||||
|
||||
|
||||
@ -1,10 +1,4 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: HPG_68D.My.MyProject
|
||||
// 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 Microsoft.VisualBasic;
|
||||
using Microsoft.VisualBasic;
|
||||
using Microsoft.VisualBasic.ApplicationServices;
|
||||
using Microsoft.VisualBasic.CompilerServices;
|
||||
using System;
|
||||
|
||||
@ -4,7 +4,6 @@
|
||||
// MVID: 530C99A8-8EEF-42C8-8A74-66FDE7B322C3
|
||||
// Assembly location: C:\Program Files (x86)\HONGKAIDE\HPG-68D\HPG-68D.exe
|
||||
|
||||
using Microsoft.VisualBasic.ApplicationServices;
|
||||
using Microsoft.VisualBasic.CompilerServices;
|
||||
using System;
|
||||
using System.CodeDom.Compiler;
|
||||
|
||||
@ -11,12 +11,10 @@ using System;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
||||
namespace HPG_68D
|
||||
{
|
||||
[DesignerGenerated]
|
||||
@ -253,23 +251,26 @@ namespace HPG_68D
|
||||
|
||||
internal virtual Label Label1
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Label1;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set => _Label1 = value;
|
||||
[DebuggerNonUserCode]
|
||||
get => _Label1;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set => _Label1 = value;
|
||||
}
|
||||
|
||||
internal virtual TextBox TextBoxPassword
|
||||
{
|
||||
[DebuggerNonUserCode] get => _TextBoxPassword;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_TextBoxPassword = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _TextBoxPassword;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _TextBoxPassword = value; }
|
||||
}
|
||||
|
||||
internal virtual Button ButtonOK
|
||||
{
|
||||
[DebuggerNonUserCode] get => _ButtonOK;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
[DebuggerNonUserCode]
|
||||
get => _ButtonOK;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set
|
||||
{
|
||||
if (_ButtonOK != null)
|
||||
_ButtonOK.Click -= ButtonOK_Click;
|
||||
@ -282,8 +283,10 @@ namespace HPG_68D
|
||||
|
||||
internal virtual Button ButtonCannel
|
||||
{
|
||||
[DebuggerNonUserCode] get => _ButtonCannel;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
[DebuggerNonUserCode]
|
||||
get => _ButtonCannel;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set
|
||||
{
|
||||
if (_ButtonCannel != null)
|
||||
_ButtonCannel.Click -= ButtonCannel_Click;
|
||||
@ -296,23 +299,26 @@ namespace HPG_68D
|
||||
|
||||
internal virtual Label Label2
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Label2;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set => _Label2 = value;
|
||||
[DebuggerNonUserCode]
|
||||
get => _Label2;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set => _Label2 = value;
|
||||
}
|
||||
|
||||
internal virtual TextBox TextBox_NewPassword_R
|
||||
{
|
||||
[DebuggerNonUserCode] get => _TextBox_NewPassword_R;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_TextBox_NewPassword_R = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _TextBox_NewPassword_R;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _TextBox_NewPassword_R = value; }
|
||||
}
|
||||
|
||||
internal virtual CheckBox CheckBox_WritePassword
|
||||
{
|
||||
[DebuggerNonUserCode] get => _CheckBox_WritePassword;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
[DebuggerNonUserCode]
|
||||
get => _CheckBox_WritePassword;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set
|
||||
{
|
||||
if (_CheckBox_WritePassword != null)
|
||||
_CheckBox_WritePassword.CheckedChanged -= CheckBox_WritePassword_CheckedChanged;
|
||||
@ -325,8 +331,10 @@ namespace HPG_68D
|
||||
|
||||
internal virtual CheckBox CheckBox_ReadPassword
|
||||
{
|
||||
[DebuggerNonUserCode] get => _CheckBox_ReadPassword;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
[DebuggerNonUserCode]
|
||||
get => _CheckBox_ReadPassword;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set
|
||||
{
|
||||
if (_CheckBox_ReadPassword != null)
|
||||
_CheckBox_ReadPassword.CheckedChanged -= CheckBox_ReadPassword_CheckedChanged;
|
||||
@ -339,80 +347,82 @@ namespace HPG_68D
|
||||
|
||||
internal virtual GroupBox GroupBox_ReadPassword
|
||||
{
|
||||
[DebuggerNonUserCode] get => _GroupBox_ReadPassword;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_GroupBox_ReadPassword = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _GroupBox_ReadPassword;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _GroupBox_ReadPassword = value; }
|
||||
}
|
||||
|
||||
internal virtual Label Label3
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Label3;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set => _Label3 = value;
|
||||
[DebuggerNonUserCode]
|
||||
get => _Label3;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set => _Label3 = value;
|
||||
}
|
||||
|
||||
internal virtual TextBox TextBox_EnterPassword_R
|
||||
{
|
||||
[DebuggerNonUserCode] get => _TextBox_EnterPassword_R;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_TextBox_EnterPassword_R = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _TextBox_EnterPassword_R;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _TextBox_EnterPassword_R = value; }
|
||||
}
|
||||
|
||||
internal virtual GroupBox GroupBox_WritePassword
|
||||
{
|
||||
[DebuggerNonUserCode] get => _GroupBox_WritePassword;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_GroupBox_WritePassword = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _GroupBox_WritePassword;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _GroupBox_WritePassword = value; }
|
||||
}
|
||||
|
||||
internal virtual TextBox TextBox_OldPassword_W
|
||||
{
|
||||
[DebuggerNonUserCode] get => _TextBox_OldPassword_W;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_TextBox_OldPassword_W = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _TextBox_OldPassword_W;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _TextBox_OldPassword_W = value; }
|
||||
}
|
||||
|
||||
internal virtual Label Label4
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Label4;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set => _Label4 = value;
|
||||
[DebuggerNonUserCode]
|
||||
get => _Label4;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set => _Label4 = value;
|
||||
}
|
||||
|
||||
internal virtual Label Label5
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Label5;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set => _Label5 = value;
|
||||
[DebuggerNonUserCode]
|
||||
get => _Label5;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set => _Label5 = value;
|
||||
}
|
||||
|
||||
internal virtual Label Label6
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Label6;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set => _Label6 = value;
|
||||
[DebuggerNonUserCode]
|
||||
get => _Label6;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set => _Label6 = value;
|
||||
}
|
||||
|
||||
internal virtual TextBox TextBox_EnterPassword_W
|
||||
{
|
||||
[DebuggerNonUserCode] get => _TextBox_EnterPassword_W;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_TextBox_EnterPassword_W = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _TextBox_EnterPassword_W;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _TextBox_EnterPassword_W = value; }
|
||||
}
|
||||
|
||||
internal virtual TextBox TextBox_NewPassword_W
|
||||
{
|
||||
[DebuggerNonUserCode] get => _TextBox_NewPassword_W;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_TextBox_NewPassword_W = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _TextBox_NewPassword_W;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _TextBox_NewPassword_W = value; }
|
||||
}
|
||||
|
||||
private void PasswordForm_Load(object sender, EventArgs e)
|
||||
@ -443,7 +453,7 @@ namespace HPG_68D
|
||||
}
|
||||
else
|
||||
{
|
||||
MyProject.Forms.ChannelMsg.Msgbox_Msg("输入密码不同!", "Enter a password different!");
|
||||
MyProject.Forms.ChannelMsg.Msgbox_Msg("Enter a password different!");
|
||||
TextBox_NewPassword_R.Text = "";
|
||||
TextBox_EnterPassword_R.Text = "";
|
||||
return;
|
||||
@ -451,7 +461,7 @@ namespace HPG_68D
|
||||
}
|
||||
else
|
||||
{
|
||||
MyProject.Forms.ChannelMsg.Msgbox_Msg("旧密码不对!", "The old password is wrong!");
|
||||
MyProject.Forms.ChannelMsg.Msgbox_Msg("The old password is wrong!");
|
||||
TextBoxPassword.Text = "";
|
||||
TextBox_NewPassword_R.Text = "";
|
||||
TextBox_EnterPassword_R.Text = "";
|
||||
@ -464,11 +474,12 @@ namespace HPG_68D
|
||||
}
|
||||
else
|
||||
{
|
||||
MyProject.Forms.ChannelMsg.Msgbox_Msg("输入密码不同!", "Enter a password different!");
|
||||
MyProject.Forms.ChannelMsg.Msgbox_Msg("Enter a password different!");
|
||||
TextBox_NewPassword_R.Text = "";
|
||||
TextBox_EnterPassword_R.Text = "";
|
||||
return;
|
||||
}
|
||||
|
||||
if ((publicva.EEPROM_Byte[checked(num3 + 11)] & (uint) publicva.Bit6) > 0U)
|
||||
{
|
||||
if (Operators.CompareString(TextBox_OldPassword_W.Text, Right2, false) == 0)
|
||||
@ -479,7 +490,7 @@ namespace HPG_68D
|
||||
}
|
||||
else
|
||||
{
|
||||
MyProject.Forms.ChannelMsg.Msgbox_Msg("输入密码不同!", "Enter a password different!");
|
||||
MyProject.Forms.ChannelMsg.Msgbox_Msg("Enter a password different!");
|
||||
TextBox_NewPassword_W.Text = "";
|
||||
TextBox_EnterPassword_W.Text = "";
|
||||
return;
|
||||
@ -487,7 +498,7 @@ namespace HPG_68D
|
||||
}
|
||||
else
|
||||
{
|
||||
MyProject.Forms.ChannelMsg.Msgbox_Msg("旧密码不对!", "The old password is wrong!");
|
||||
MyProject.Forms.ChannelMsg.Msgbox_Msg("The old password is wrong!");
|
||||
TextBox_OldPassword_W.Text = "";
|
||||
TextBox_NewPassword_W.Text = "";
|
||||
TextBox_EnterPassword_W.Text = "";
|
||||
@ -500,13 +511,18 @@ namespace HPG_68D
|
||||
}
|
||||
else
|
||||
{
|
||||
MyProject.Forms.ChannelMsg.Msgbox_Msg("输入密码不同!", "Enter a password different!");
|
||||
MyProject.Forms.ChannelMsg.Msgbox_Msg("Enter a password different!");
|
||||
TextBox_NewPassword_W.Text = "";
|
||||
TextBox_EnterPassword_W.Text = "";
|
||||
return;
|
||||
}
|
||||
publicva.EEPROM_Byte[checked (num3 + 11)] = Operators.CompareString(TextBox_NewPassword_R.Text, "", false) != 0 ? (byte) (publicva.EEPROM_Byte[checked (num3 + 11)] | publicva.Bit5) : (byte) (publicva.EEPROM_Byte[checked (num3 + 11)] & ~publicva.Bit5);
|
||||
publicva.EEPROM_Byte[checked (num3 + 11)] = Operators.CompareString(TextBox_NewPassword_W.Text, "", false) != 0 ? (byte) (publicva.EEPROM_Byte[checked (num3 + 11)] | publicva.Bit6) : (byte) (publicva.EEPROM_Byte[checked (num3 + 11)] & ~publicva.Bit6);
|
||||
|
||||
publicva.EEPROM_Byte[checked(num3 + 11)] = Operators.CompareString(TextBox_NewPassword_R.Text, "", false) != 0
|
||||
? (byte) (publicva.EEPROM_Byte[checked(num3 + 11)] | publicva.Bit5)
|
||||
: (byte) (publicva.EEPROM_Byte[checked(num3 + 11)] & ~publicva.Bit5);
|
||||
publicva.EEPROM_Byte[checked(num3 + 11)] = Operators.CompareString(TextBox_NewPassword_W.Text, "", false) != 0
|
||||
? (byte) (publicva.EEPROM_Byte[checked(num3 + 11)] | publicva.Bit6)
|
||||
: (byte) (publicva.EEPROM_Byte[checked(num3 + 11)] & ~publicva.Bit6);
|
||||
if (!MyProject.Forms.MDIParent1.MSCcomm_StartInit("Write_Password", publicva.WPassword_EEPROM_Add_Lendgth_List))
|
||||
;
|
||||
Close();
|
||||
|
||||
@ -15,7 +15,6 @@ using System.Drawing;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
||||
namespace HPG_68D
|
||||
{
|
||||
[DesignerGenerated]
|
||||
@ -657,53 +656,50 @@ namespace HPG_68D
|
||||
|
||||
internal virtual TabControl TabControl1
|
||||
{
|
||||
[DebuggerNonUserCode] get => _TabControl1;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_TabControl1 = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _TabControl1;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _TabControl1 = value; }
|
||||
}
|
||||
|
||||
internal virtual TabPage TabPage1
|
||||
{
|
||||
[DebuggerNonUserCode] get => _TabPage1;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_TabPage1 = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _TabPage1;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _TabPage1 = value; }
|
||||
}
|
||||
|
||||
internal virtual TabPage TabPage2
|
||||
{
|
||||
[DebuggerNonUserCode] get => _TabPage2;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_TabPage2 = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _TabPage2;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _TabPage2 = value; }
|
||||
}
|
||||
|
||||
internal virtual TabPage TabPage3
|
||||
{
|
||||
[DebuggerNonUserCode] get => _TabPage3;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_TabPage3 = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _TabPage3;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _TabPage3 = value; }
|
||||
}
|
||||
|
||||
internal virtual GroupBox GroupBox1
|
||||
{
|
||||
[DebuggerNonUserCode] get => _GroupBox1;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_GroupBox1 = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _GroupBox1;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _GroupBox1 = value; }
|
||||
}
|
||||
|
||||
internal virtual DataGridView DataGridView1
|
||||
{
|
||||
[DebuggerNonUserCode] get => _DataGridView1;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
[DebuggerNonUserCode]
|
||||
get => _DataGridView1;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set
|
||||
{
|
||||
if (_DataGridView1 != null)
|
||||
{
|
||||
@ -711,6 +707,7 @@ namespace HPG_68D
|
||||
_DataGridView1.CellEndEdit -= DataGridView1_CellEndEdit;
|
||||
_DataGridView1.RowPostPaint -= DataGridView1_RowPostPaint;
|
||||
}
|
||||
|
||||
_DataGridView1 = value;
|
||||
if (_DataGridView1 == null)
|
||||
return;
|
||||
@ -722,23 +719,26 @@ namespace HPG_68D
|
||||
|
||||
internal virtual ComboBox ComboBoxFM工作模式
|
||||
{
|
||||
[DebuggerNonUserCode] get => _ComboBoxFM工作模式;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_ComboBoxFM工作模式 = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _ComboBoxFM工作模式;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _ComboBoxFM工作模式 = value; }
|
||||
}
|
||||
|
||||
internal virtual Label Label1
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Label1;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set => _Label1 = value;
|
||||
[DebuggerNonUserCode]
|
||||
get => _Label1;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set => _Label1 = value;
|
||||
}
|
||||
|
||||
internal virtual ComboBox ComboBoxFM信道号
|
||||
{
|
||||
[DebuggerNonUserCode] get => _ComboBoxFM信道号;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
[DebuggerNonUserCode]
|
||||
get => _ComboBoxFM信道号;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set
|
||||
{
|
||||
if (_ComboBoxFM信道号 != null)
|
||||
_ComboBoxFM信道号.SelectionChangeCommitted -= ComboBoxFM信道号_SelectionChangeCommitted;
|
||||
@ -751,14 +751,18 @@ namespace HPG_68D
|
||||
|
||||
internal virtual Label Label2
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Label2;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set => _Label2 = value;
|
||||
[DebuggerNonUserCode]
|
||||
get => _Label2;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set => _Label2 = value;
|
||||
}
|
||||
|
||||
internal virtual ComboBox ComboBoxAM信道号
|
||||
{
|
||||
[DebuggerNonUserCode] get => _ComboBoxAM信道号;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
[DebuggerNonUserCode]
|
||||
get => _ComboBoxAM信道号;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set
|
||||
{
|
||||
if (_ComboBoxAM信道号 != null)
|
||||
_ComboBoxAM信道号.SelectionChangeCommitted -= ComboBoxAM信道号_SelectionChangeCommitted;
|
||||
@ -771,38 +775,42 @@ namespace HPG_68D
|
||||
|
||||
internal virtual Label Label3
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Label3;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set => _Label3 = value;
|
||||
[DebuggerNonUserCode]
|
||||
get => _Label3;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set => _Label3 = value;
|
||||
}
|
||||
|
||||
internal virtual ComboBox ComboBoxAM工作模式
|
||||
{
|
||||
[DebuggerNonUserCode] get => _ComboBoxAM工作模式;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_ComboBoxAM工作模式 = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _ComboBoxAM工作模式;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _ComboBoxAM工作模式 = value; }
|
||||
}
|
||||
|
||||
internal virtual Label Label4
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Label4;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set => _Label4 = value;
|
||||
[DebuggerNonUserCode]
|
||||
get => _Label4;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set => _Label4 = value;
|
||||
}
|
||||
|
||||
internal virtual GroupBox GroupBox2
|
||||
{
|
||||
[DebuggerNonUserCode] get => _GroupBox2;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_GroupBox2 = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _GroupBox2;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _GroupBox2 = value; }
|
||||
}
|
||||
|
||||
internal virtual DataGridView DataGridView2
|
||||
{
|
||||
[DebuggerNonUserCode] get => _DataGridView2;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
[DebuggerNonUserCode]
|
||||
get => _DataGridView2;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set
|
||||
{
|
||||
if (_DataGridView2 != null)
|
||||
{
|
||||
@ -810,6 +818,7 @@ namespace HPG_68D
|
||||
_DataGridView2.RowPostPaint -= DataGridView2_RowPostPaint;
|
||||
_DataGridView2.EditingControlShowing -= DataGridView2_EditingControlShowing;
|
||||
}
|
||||
|
||||
_DataGridView2 = value;
|
||||
if (_DataGridView2 == null)
|
||||
return;
|
||||
@ -821,8 +830,10 @@ namespace HPG_68D
|
||||
|
||||
internal virtual ComboBox ComboBoxAIR信道号
|
||||
{
|
||||
[DebuggerNonUserCode] get => _ComboBoxAIR信道号;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
[DebuggerNonUserCode]
|
||||
get => _ComboBoxAIR信道号;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set
|
||||
{
|
||||
if (_ComboBoxAIR信道号 != null)
|
||||
_ComboBoxAIR信道号.SelectionChangeCommitted -= ComboBoxAIR信道号_SelectionChangeCommitted;
|
||||
@ -835,38 +846,42 @@ namespace HPG_68D
|
||||
|
||||
internal virtual Label Label5
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Label5;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set => _Label5 = value;
|
||||
[DebuggerNonUserCode]
|
||||
get => _Label5;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set => _Label5 = value;
|
||||
}
|
||||
|
||||
internal virtual ComboBox ComboBoxAIR工作模式
|
||||
{
|
||||
[DebuggerNonUserCode] get => _ComboBoxAIR工作模式;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_ComboBoxAIR工作模式 = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _ComboBoxAIR工作模式;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _ComboBoxAIR工作模式 = value; }
|
||||
}
|
||||
|
||||
internal virtual Label Label6
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Label6;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set => _Label6 = value;
|
||||
[DebuggerNonUserCode]
|
||||
get => _Label6;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set => _Label6 = value;
|
||||
}
|
||||
|
||||
internal virtual GroupBox GroupBox3
|
||||
{
|
||||
[DebuggerNonUserCode] get => _GroupBox3;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_GroupBox3 = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _GroupBox3;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _GroupBox3 = value; }
|
||||
}
|
||||
|
||||
internal virtual DataGridView DataGridView3
|
||||
{
|
||||
[DebuggerNonUserCode] get => _DataGridView3;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
[DebuggerNonUserCode]
|
||||
get => _DataGridView3;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set
|
||||
{
|
||||
if (_DataGridView3 != null)
|
||||
{
|
||||
@ -874,6 +889,7 @@ namespace HPG_68D
|
||||
_DataGridView3.CellEndEdit -= DataGridView3_CellEndEdit;
|
||||
_DataGridView3.RowPostPaint -= DataGridView3_RowPostPaint;
|
||||
}
|
||||
|
||||
_DataGridView3 = value;
|
||||
if (_DataGridView3 == null)
|
||||
return;
|
||||
@ -885,26 +901,26 @@ namespace HPG_68D
|
||||
|
||||
internal virtual Button Button3
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Button3;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_Button3 = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _Button3;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _Button3 = value; }
|
||||
}
|
||||
|
||||
internal virtual Button Button2
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Button2;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_Button2 = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _Button2;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _Button2 = value; }
|
||||
}
|
||||
|
||||
internal virtual Button Button1
|
||||
{
|
||||
[DebuggerNonUserCode] get => _Button1;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
[DebuggerNonUserCode]
|
||||
get => _Button1;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set
|
||||
{
|
||||
if (_Button1 != null)
|
||||
_Button1.Click -= Button1_Click;
|
||||
@ -917,29 +933,26 @@ namespace HPG_68D
|
||||
|
||||
internal virtual DataGridViewTextBoxColumn ColumnFMFreq
|
||||
{
|
||||
[DebuggerNonUserCode] get => _ColumnFMFreq;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_ColumnFMFreq = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _ColumnFMFreq;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _ColumnFMFreq = value; }
|
||||
}
|
||||
|
||||
internal virtual DataGridViewTextBoxColumn ColumnAMFreq
|
||||
{
|
||||
[DebuggerNonUserCode] get => _ColumnAMFreq;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_ColumnAMFreq = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _ColumnAMFreq;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _ColumnAMFreq = value; }
|
||||
}
|
||||
|
||||
internal virtual DataGridViewTextBoxColumn ColumnAIRFreq
|
||||
{
|
||||
[DebuggerNonUserCode] get => _ColumnAIRFreq;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
_ColumnAIRFreq = value;
|
||||
}
|
||||
[DebuggerNonUserCode]
|
||||
get => _ColumnAIRFreq;
|
||||
[DebuggerNonUserCode, MethodImpl(MethodImplOptions.Synchronized)]
|
||||
set { _ColumnAIRFreq = value; }
|
||||
}
|
||||
|
||||
public void RadioMsgForm_Deactivate(object sender, EventArgs e)
|
||||
@ -962,9 +975,14 @@ namespace HPG_68D
|
||||
MyProject.Forms.ChannelMsg.CHStatusList_Write(checked(rowIndex1 - 1), "添加", 7856);
|
||||
Set_Freq(checked(rowIndex1 * 4 + num1), Conversions.ToString(DataGridView3["ColumnAIRFreq", rowIndex1].Value));
|
||||
}
|
||||
checked { ++rowIndex1; }
|
||||
|
||||
checked
|
||||
{
|
||||
++rowIndex1;
|
||||
}
|
||||
}
|
||||
while (rowIndex1 <= 64);
|
||||
|
||||
Set_Freq(checked(0 + 7816), Conversions.ToString(DataGridView3["ColumnAIRFreq", 0].Value));
|
||||
MyProject.Forms.MDIParent1.GetControl_U8_Data(ComboBoxAM工作模式, checked(3840 + 29), publicva.Bit4, 4);
|
||||
MyProject.Forms.MDIParent1.GetControl_U8_Data(ComboBoxAM信道号, checked(3952 + 8), publicva.AllBit, 0);
|
||||
@ -980,14 +998,21 @@ namespace HPG_68D
|
||||
{
|
||||
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)));
|
||||
publicva.EEPROM_Byte[checked(rowIndex2 * 4 + num2 + 3)] =
|
||||
Conversions.ToByte(Get_AMFreqRangID(Conversions.ToDouble(DataGridView2["ColumnAMFreq", rowIndex2].Value)));
|
||||
}
|
||||
|
||||
checked
|
||||
{
|
||||
++rowIndex2;
|
||||
}
|
||||
checked { ++rowIndex2; }
|
||||
}
|
||||
while (rowIndex2 <= 64);
|
||||
|
||||
var 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)));
|
||||
publicva.EEPROM_Byte[checked(0 + num3 + 3)] =
|
||||
Conversions.ToByte(Get_AMFreqRangID(Conversions.ToDouble(DataGridView2["ColumnAMFreq", 0].Value)));
|
||||
MyProject.Forms.MDIParent1.GetControl_U8_Data(ComboBoxFM工作模式, checked(3840 + 15), publicva.Bit6, 6);
|
||||
MyProject.Forms.MDIParent1.GetControl_U8_Data(ComboBoxFM信道号, checked(3952 + 7), publicva.AllBit, 0);
|
||||
var num4 = 7680;
|
||||
@ -1003,9 +1028,14 @@ namespace HPG_68D
|
||||
MyProject.Forms.ChannelMsg.CHStatusList_Write(checked(rowIndex3 - 1), "添加", 7840);
|
||||
Set_Freq(checked(rowIndex3 * 4 + num4), Conversions.ToString(DataGridView1["ColumnFMFreq", rowIndex3].Value));
|
||||
}
|
||||
checked { ++rowIndex3; }
|
||||
|
||||
checked
|
||||
{
|
||||
++rowIndex3;
|
||||
}
|
||||
}
|
||||
while (rowIndex3 <= 32);
|
||||
|
||||
Set_Freq(checked(0 + 7812), Conversions.ToString(DataGridView1["ColumnFMFreq", 0].Value));
|
||||
}
|
||||
|
||||
@ -1032,6 +1062,7 @@ namespace HPG_68D
|
||||
DataGridView2.TopLeftHeaderCell.Value = "CH";
|
||||
DataGridView3.TopLeftHeaderCell.Value = "CH";
|
||||
}
|
||||
|
||||
MyProject.Forms.MDIParent1.SetControl_U8_Data(ComboBoxAIR工作模式, checked(3840 + 29), publicva.Bit5, 5);
|
||||
MyProject.Forms.MDIParent1.SetControl_U8_Data(ComboBoxAIR信道号, checked(3952 + 6), publicva.AllBit, 0);
|
||||
if (!MyProject.Forms.ChannelMsg.CHStatus_Read(ComboBoxAIR信道号.SelectedIndex, 7856))
|
||||
@ -1040,10 +1071,16 @@ namespace HPG_68D
|
||||
var rowIndex1 = 1;
|
||||
do
|
||||
{
|
||||
DataGridView3["ColumnAIRFreq", rowIndex1].Value = !MyProject.Forms.ChannelMsg.CHStatus_Read(checked (rowIndex1 - 1), 7856) ? "" : RuntimeHelpers.GetObjectValue(Get_Freq(checked (rowIndex1 * 4 + num1), 11850000, 13400000));
|
||||
checked { ++rowIndex1; }
|
||||
DataGridView3["ColumnAIRFreq", rowIndex1].Value = !MyProject.Forms.ChannelMsg.CHStatus_Read(checked(rowIndex1 - 1), 7856)
|
||||
? ""
|
||||
: 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(ComboBoxAM工作模式, checked(3840 + 29), publicva.Bit4, 4);
|
||||
MyProject.Forms.MDIParent1.SetControl_U8_Data(ComboBoxAM信道号, checked(3952 + 8), publicva.AllBit, 0);
|
||||
@ -1053,10 +1090,16 @@ namespace HPG_68D
|
||||
var rowIndex2 = 1;
|
||||
do
|
||||
{
|
||||
DataGridView2["ColumnAMFreq", rowIndex2].Value = !MyProject.Forms.ChannelMsg.CHStatus_Read(checked (rowIndex2 - 1), 7824) ? "" : RuntimeHelpers.GetObjectValue(Get_AMFreq(checked (rowIndex2 * 4 + num2)));
|
||||
checked { ++rowIndex2; }
|
||||
DataGridView2["ColumnAMFreq", rowIndex2].Value = !MyProject.Forms.ChannelMsg.CHStatus_Read(checked(rowIndex2 - 1), 7824)
|
||||
? ""
|
||||
: 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(ComboBoxFM工作模式, checked(3840 + 15), publicva.Bit6, 6);
|
||||
MyProject.Forms.MDIParent1.SetControl_U8_Data(ComboBoxFM信道号, checked(3952 + 7), publicva.AllBit, 0);
|
||||
@ -1066,10 +1109,16 @@ namespace HPG_68D
|
||||
var rowIndex3 = 1;
|
||||
do
|
||||
{
|
||||
DataGridView1["ColumnFMFreq", rowIndex3].Value = !MyProject.Forms.ChannelMsg.CHStatus_Read(checked (rowIndex3 - 1), 7840) ? "" : RuntimeHelpers.GetObjectValue(Get_Freq(checked (rowIndex3 * 4 + num3), 6400000, 10800000));
|
||||
checked { ++rowIndex3; }
|
||||
DataGridView1["ColumnFMFreq", rowIndex3].Value = !MyProject.Forms.ChannelMsg.CHStatus_Read(checked(rowIndex3 - 1), 7840)
|
||||
? ""
|
||||
: 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));
|
||||
}
|
||||
|
||||
@ -1077,8 +1126,11 @@ namespace HPG_68D
|
||||
{
|
||||
var rowIndex = DataGridView1.CurrentCell.RowIndex;
|
||||
if (Operators.ConditionalCompareObjectNotEqual(DataGridView1["ColumnFMFreq", rowIndex].Value, "", 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, "", false), rowIndex == 0)))
|
||||
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, "", false),
|
||||
rowIndex == 0)))
|
||||
DataGridView1["ColumnFMFreq", rowIndex].Value = "100.70000";
|
||||
RadioMsgForm_Deactivate(RuntimeHelpers.GetObjectValue(sender), e);
|
||||
ComboBoxFM信道号_SelectionChangeCommitted(RuntimeHelpers.GetObjectValue(sender), e);
|
||||
@ -1088,8 +1140,10 @@ namespace HPG_68D
|
||||
{
|
||||
var rowIndex = DataGridView2.CurrentCell.RowIndex;
|
||||
if (Operators.ConditionalCompareObjectNotEqual(DataGridView2["ColumnAMFreq", rowIndex].Value, "", 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, "", false), rowIndex == 0)))
|
||||
DataGridView2["ColumnAMFreq", rowIndex].Value =
|
||||
RuntimeHelpers.GetObjectValue(JudgeInputAMFreq(Conversions.ToString(DataGridView2["ColumnAMFreq", rowIndex].Value)));
|
||||
if (Conversions.ToBoolean(Operators.AndObject(Operators.CompareObjectEqual(DataGridView2["ColumnAMFreq", rowIndex].Value, "", false),
|
||||
rowIndex == 0)))
|
||||
DataGridView2["ColumnAMFreq", rowIndex].Value = "21.70000";
|
||||
RadioMsgForm_Deactivate(RuntimeHelpers.GetObjectValue(sender), e);
|
||||
ComboBoxAM信道号_SelectionChangeCommitted(RuntimeHelpers.GetObjectValue(sender), e);
|
||||
@ -1099,8 +1153,11 @@ namespace HPG_68D
|
||||
{
|
||||
var rowIndex = DataGridView3.CurrentCell.RowIndex;
|
||||
if (Operators.ConditionalCompareObjectNotEqual(DataGridView3["ColumnAIRFreq", rowIndex].Value, "", 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, "", false), rowIndex == 0)))
|
||||
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, "", false),
|
||||
rowIndex == 0)))
|
||||
DataGridView3["ColumnAIRFreq", rowIndex].Value = "118.50000";
|
||||
RadioMsgForm_Deactivate(RuntimeHelpers.GetObjectValue(sender), e);
|
||||
ComboBoxAIR信道号_SelectionChangeCommitted(RuntimeHelpers.GetObjectValue(sender), e);
|
||||
@ -1157,10 +1214,15 @@ namespace HPG_68D
|
||||
strArray[0] = "VFO";
|
||||
num = 7;
|
||||
}
|
||||
|
||||
if (e.RowIndex == 0)
|
||||
e.Graphics.DrawString(strArray[0].ToString(), DataGridView1.DefaultCellStyle.Font, brush, e.RowBounds.Location.X + checked (DataGridView1.RowHeadersWidth - strArray[0].ToString().Length * num) / 2f, checked (e.RowBounds.Location.Y + 5));
|
||||
e.Graphics.DrawString(strArray[0], DataGridView1.DefaultCellStyle.Font, brush,
|
||||
e.RowBounds.Location.X + checked(DataGridView1.RowHeadersWidth - strArray[0].Length * num) / 2f,
|
||||
checked(e.RowBounds.Location.Y + 5));
|
||||
else
|
||||
e.Graphics.DrawString(checked (e.RowIndex - 1).ToString(), DataGridView1.DefaultCellStyle.Font, brush, e.RowBounds.Location.X + checked (DataGridView1.RowHeadersWidth - (e.RowIndex - 1).ToString().Length * 8) / 2f, checked (e.RowBounds.Location.Y + 5));
|
||||
e.Graphics.DrawString(checked(e.RowIndex - 1).ToString(), DataGridView1.DefaultCellStyle.Font, brush, e.RowBounds.Location.X +
|
||||
checked(DataGridView1.RowHeadersWidth - (e.RowIndex - 1).ToString()
|
||||
.Length * 8) / 2f, checked(e.RowBounds.Location.Y + 5));
|
||||
}
|
||||
|
||||
private void DataGridView2_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
|
||||
@ -1173,10 +1235,15 @@ namespace HPG_68D
|
||||
strArray[0] = "VFO";
|
||||
num = 7;
|
||||
}
|
||||
|
||||
if (e.RowIndex == 0)
|
||||
e.Graphics.DrawString(strArray[0].ToString(), DataGridView2.DefaultCellStyle.Font, brush, e.RowBounds.Location.X + checked (DataGridView2.RowHeadersWidth - strArray[0].ToString().Length * num) / 2f, checked (e.RowBounds.Location.Y + 5));
|
||||
e.Graphics.DrawString(strArray[0], DataGridView2.DefaultCellStyle.Font, brush,
|
||||
e.RowBounds.Location.X + checked(DataGridView2.RowHeadersWidth - strArray[0].Length * num) / 2f,
|
||||
checked(e.RowBounds.Location.Y + 5));
|
||||
else
|
||||
e.Graphics.DrawString(checked (e.RowIndex - 1).ToString(), DataGridView2.DefaultCellStyle.Font, brush, e.RowBounds.Location.X + checked (DataGridView2.RowHeadersWidth - (e.RowIndex - 1).ToString().Length * 8) / 2f, checked (e.RowBounds.Location.Y + 5));
|
||||
e.Graphics.DrawString(checked(e.RowIndex - 1).ToString(), DataGridView2.DefaultCellStyle.Font, brush, e.RowBounds.Location.X +
|
||||
checked(DataGridView2.RowHeadersWidth - (e.RowIndex - 1).ToString()
|
||||
.Length * 8) / 2f, checked(e.RowBounds.Location.Y + 5));
|
||||
}
|
||||
|
||||
private void DataGridView3_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
|
||||
@ -1189,10 +1256,15 @@ namespace HPG_68D
|
||||
strArray[0] = "VFO";
|
||||
num = 7;
|
||||
}
|
||||
|
||||
if (e.RowIndex == 0)
|
||||
e.Graphics.DrawString(strArray[0].ToString(), DataGridView3.DefaultCellStyle.Font, brush, e.RowBounds.Location.X + checked (DataGridView3.RowHeadersWidth - strArray[0].ToString().Length * num) / 2f, checked (e.RowBounds.Location.Y + 5));
|
||||
e.Graphics.DrawString(strArray[0], DataGridView3.DefaultCellStyle.Font, brush,
|
||||
e.RowBounds.Location.X + checked(DataGridView3.RowHeadersWidth - strArray[0].Length * num) / 2f,
|
||||
checked(e.RowBounds.Location.Y + 5));
|
||||
else
|
||||
e.Graphics.DrawString(checked (e.RowIndex - 1).ToString(), DataGridView3.DefaultCellStyle.Font, brush, e.RowBounds.Location.X + checked (DataGridView3.RowHeadersWidth - (e.RowIndex - 1).ToString().Length * 8) / 2f, checked (e.RowBounds.Location.Y + 5));
|
||||
e.Graphics.DrawString(checked(e.RowIndex - 1).ToString(), DataGridView3.DefaultCellStyle.Font, brush, e.RowBounds.Location.X +
|
||||
checked(DataGridView3.RowHeadersWidth - (e.RowIndex - 1).ToString()
|
||||
.Length * 8) / 2f, checked(e.RowBounds.Location.Y + 5));
|
||||
}
|
||||
|
||||
public object JudgeInputFMFreq(string StrFreq, int Min, int Max)
|
||||
@ -1207,24 +1279,30 @@ namespace HPG_68D
|
||||
{
|
||||
var num2 = checked((int) unchecked(num1 / 5000L));
|
||||
if (num1 % 5000L > 10000L)
|
||||
checked { ++num2; }
|
||||
checked
|
||||
{
|
||||
++num2;
|
||||
}
|
||||
|
||||
num1 = checked((uint) (num2 * 5000));
|
||||
}
|
||||
|
||||
str = string.Format("{0:##0.00000}", num1 / 100000.0);
|
||||
}
|
||||
else
|
||||
{
|
||||
MyProject.Forms.ChannelMsg.Msgbox_Msg("频率超出范围", "frequency out of range,out of range");
|
||||
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");
|
||||
MyProject.Forms.ChannelMsg.Msgbox_Msg("Frequency out of range,out of range");
|
||||
str = "";
|
||||
ProjectData.ClearProjectError();
|
||||
}
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
@ -1241,30 +1319,40 @@ namespace HPG_68D
|
||||
var num2 = num1;
|
||||
var num3 = num2 / 625;
|
||||
if (num2 % 625 > 1250)
|
||||
checked { ++num3; }
|
||||
checked
|
||||
{
|
||||
++num3;
|
||||
}
|
||||
|
||||
var num4 = checked(num3 * 625);
|
||||
var num5 = num1;
|
||||
var num6 = num5 / 500;
|
||||
if (num5 % 500 > 1000)
|
||||
checked { ++num6; }
|
||||
checked
|
||||
{
|
||||
++num6;
|
||||
}
|
||||
|
||||
var num7 = checked(num6 * 500);
|
||||
num1 = Math.Abs(checked(num4 - num1)) <= Math.Abs(checked(num7 - num1)) ? num4 : num7;
|
||||
}
|
||||
|
||||
str = string.Format("{0:##0.00000}", num1 / 100000.0);
|
||||
}
|
||||
else
|
||||
{
|
||||
MyProject.Forms.ChannelMsg.Msgbox_Msg("频率超出范围", "frequency out of range,out of range");
|
||||
MyProject.Forms.ChannelMsg.Msgbox_Msg("Frequency out of range");
|
||||
str = "";
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ProjectData.SetProjectError(ex);
|
||||
MyProject.Forms.ChannelMsg.Msgbox_Msg("频率超出范围", "frequency out of range,out of range");
|
||||
MyProject.Forms.ChannelMsg.Msgbox_Msg("Frequency out of range");
|
||||
str = "";
|
||||
ProjectData.ClearProjectError();
|
||||
}
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
@ -1277,8 +1365,12 @@ namespace HPG_68D
|
||||
{
|
||||
if (publicva.AMFreqRang[checked((int) amFreqRangId), 1] >= num1 & num1 >= publicva.AMFreqRang[checked((int) amFreqRangId), 0])
|
||||
return amFreqRangId;
|
||||
checked { ++amFreqRangId; }
|
||||
checked
|
||||
{
|
||||
++amFreqRangId;
|
||||
}
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -1295,37 +1387,54 @@ namespace HPG_68D
|
||||
{
|
||||
var num2 = checked((int) unchecked(num1 / 100L));
|
||||
if (num1 % 100L > 200L)
|
||||
checked { ++num2; }
|
||||
checked
|
||||
{
|
||||
++num2;
|
||||
}
|
||||
|
||||
num1 = checked((uint) (num2 * 100));
|
||||
}
|
||||
|
||||
str = string.Format("{0:##0.00000}", num1 / 100000.0);
|
||||
}
|
||||
else
|
||||
{
|
||||
MyProject.Forms.ChannelMsg.Msgbox_Msg("频率超出范围", "frequency out of range,out of range");
|
||||
MyProject.Forms.ChannelMsg.Msgbox_Msg("Frequency out of range");
|
||||
str = "";
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ProjectData.SetProjectError(ex);
|
||||
MyProject.Forms.ChannelMsg.Msgbox_Msg("频率超出范围", "frequency out of range,out of range");
|
||||
MyProject.Forms.ChannelMsg.Msgbox_Msg("Frequency out of range");
|
||||
str = "";
|
||||
ProjectData.ClearProjectError();
|
||||
}
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
public object Get_Freq(int Address, int Min, int Max)
|
||||
{
|
||||
var num = checked ((publicva.EEPROM_Byte[Address + 0] & 240) >> 4 * 10000000) + (double) checked (publicva.EEPROM_Byte[Address + 0] & 15 * 1000000) + checked ((publicva.EEPROM_Byte[Address + 1] & 240) >> 4 * 100000) + checked (publicva.EEPROM_Byte[Address + 1] & 15 * 10000) + checked ((publicva.EEPROM_Byte[Address + 2] & 240) >> 4 * 1000) + checked (publicva.EEPROM_Byte[Address + 2] & 15 * 100) + checked ((publicva.EEPROM_Byte[Address + 3] & 240) >> 4 * 10) + checked (publicva.EEPROM_Byte[Address + 3] & 15 * 1);
|
||||
var num = checked((publicva.EEPROM_Byte[Address + 0] & 240) >> 4 * 10000000) +
|
||||
(double) checked(publicva.EEPROM_Byte[Address + 0] & 15 * 1000000) +
|
||||
checked((publicva.EEPROM_Byte[Address + 1] & 240) >> 4 * 100000) + checked(publicva.EEPROM_Byte[Address + 1] & 15 * 10000) +
|
||||
checked((publicva.EEPROM_Byte[Address + 2] & 240) >> 4 * 1000) + checked(publicva.EEPROM_Byte[Address + 2] & 15 * 100) +
|
||||
checked((publicva.EEPROM_Byte[Address + 3] & 240) >> 4 * 10) + checked(publicva.EEPROM_Byte[Address + 3] & 15 * 1);
|
||||
return !(Max >= num & num >= Min) ? "" : (object) string.Format("{0:##0.00000}", num / 100000.0);
|
||||
}
|
||||
|
||||
public object Get_AMFreq(int Address)
|
||||
{
|
||||
var num = checked ((publicva.EEPROM_Byte[Address + 0] & 240) >> 4 * 10000000) + (double) checked (publicva.EEPROM_Byte[Address + 0] & 15 * 1000000) + checked ((publicva.EEPROM_Byte[Address + 1] & 240) >> 4 * 100000) + checked (publicva.EEPROM_Byte[Address + 1] & 15 * 10000) + checked ((publicva.EEPROM_Byte[Address + 2] & 240) >> 4 * 1000) + checked (publicva.EEPROM_Byte[Address + 2] & 15 * 100) + 0.0 + 0.0;
|
||||
return !(publicva.AMFreqRang[publicva.EEPROM_Byte[checked (Address + 3)], 1] >= num & num >= publicva.AMFreqRang[publicva.EEPROM_Byte[checked (Address + 3)], 0]) ? "" : (object) string.Format("{0:##0.00000}", num / 100000.0);
|
||||
var num = checked((publicva.EEPROM_Byte[Address + 0] & 240) >> 4 * 10000000) +
|
||||
(double) checked(publicva.EEPROM_Byte[Address + 0] & 15 * 1000000) +
|
||||
checked((publicva.EEPROM_Byte[Address + 1] & 240) >> 4 * 100000) + checked(publicva.EEPROM_Byte[Address + 1] & 15 * 10000) +
|
||||
checked((publicva.EEPROM_Byte[Address + 2] & 240) >> 4 * 1000) + checked(publicva.EEPROM_Byte[Address + 2] & 15 * 100) + 0.0 +
|
||||
0.0;
|
||||
return !(publicva.AMFreqRang[publicva.EEPROM_Byte[checked(Address + 3)], 1] >= num &
|
||||
num >= publicva.AMFreqRang[publicva.EEPROM_Byte[checked(Address + 3)], 0])
|
||||
? ""
|
||||
: (object) string.Format("{0:##0.00000}", num / 100000.0);
|
||||
}
|
||||
|
||||
public void Set_Freq(int Address, string Temp_Value)
|
||||
@ -1341,6 +1450,7 @@ namespace HPG_68D
|
||||
num = 0U;
|
||||
ProjectData.ClearProjectError();
|
||||
}
|
||||
|
||||
publicva.EEPROM_Byte[checked(Address + 0)] = Conversions.ToByte("&h" + Conversions.ToString(num / 10000000L));
|
||||
publicva.EEPROM_Byte[checked(Address + 1)] = Conversions.ToByte("&h" + Conversions.ToString(num / 100000L % 100L));
|
||||
publicva.EEPROM_Byte[checked(Address + 2)] = Conversions.ToByte("&h" + Conversions.ToString(num / 1000L % 100L));
|
||||
|
||||
@ -10,7 +10,6 @@ using System;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
||||
@ -10,7 +10,6 @@ using System;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
||||
@ -10,7 +10,6 @@ using System;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
||||
@ -9,7 +9,6 @@ using System;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
32768
HPG-68D/default_data.hpg
Normal file
32768
HPG-68D/default_data.hpg
Normal file
File diff suppressed because it is too large
Load Diff
@ -47,11 +47,11 @@ namespace HPG_68D
|
||||
3000000U
|
||||
}
|
||||
};
|
||||
public static string TypeName = "HPG-68D";
|
||||
public static string Language = "zh-CN";
|
||||
public static readonly string TypeName = "HPG-68D";
|
||||
public static string Language = "en-US";
|
||||
public const int C_Min = 0;
|
||||
public const int C_Max = 1;
|
||||
public static uint[,] RxFreqRang = new uint[7, 2]
|
||||
public static readonly uint[,] RxFreqRang = new uint[7, 2]
|
||||
{
|
||||
{
|
||||
13600000U,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user