Up to framework 4.8

This commit is contained in:
Piotr Dudek 2024-06-26 00:21:14 +02:00
parent 0b0bdc9bf0
commit 7a21a10aa0
26 changed files with 57238 additions and 23847 deletions

View File

@ -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>

View File

@ -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;
}
}
}

View File

@ -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

File diff suppressed because it is too large Load Diff

View File

@ -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]
@ -56,7 +53,7 @@ namespace HPG_68D
[DebuggerStepThrough]
private void InitializeComponent()
{
var componentResourceManager = new ComponentResourceManager(typeof (ComForm));
var componentResourceManager = new ComponentResourceManager(typeof(ComForm));
Button2 = new Button();
Button1 = new Button();
ComboBox1 = new ComboBox();
@ -102,15 +99,17 @@ namespace HPG_68D
FormBorderStyle = FormBorderStyle.FixedDialog;
MaximizeBox = false;
MinimizeBox = false;
Name = nameof (ComForm);
Name = nameof(ComForm);
ResumeLayout(false);
PerformLayout();
}
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
ComboBox1.SelectedIndex = checked((int) publicva.COM_SelectIndex);
Label1.Text = "Port";
}
@ -187,6 +189,7 @@ namespace HPG_68D
finally
{
}
if (ComboBox1.Items.Count >= 1)
return;
ComboBox1.Items.Add("COM1");
@ -194,7 +197,7 @@ namespace HPG_68D
private void Button2_Click(object sender, EventArgs e)
{
publicva.COM_SelectIndex = checked ((uint) ComboBox1.SelectedIndex);
publicva.COM_SelectIndex = checked((uint) ComboBox1.SelectedIndex);
MyProject.Forms.MDIParent1.SerialPort1.PortName = ComboBox1.Text;
Close();
}

1
HPG-68D/Config.hpg Normal file
View File

@ -0,0 +1 @@
en-US

View File

@ -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);
}
}
}

View File

@ -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>

View File

@ -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>

View File

@ -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;

View File

@ -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

View File

@ -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;
}

View File

@ -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;

View File

@ -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;

View File

@ -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]
@ -85,7 +83,7 @@ namespace HPG_68D
[DebuggerStepThrough]
private void InitializeComponent()
{
var componentResourceManager = new ComponentResourceManager(typeof (PasswordForm));
var componentResourceManager = new ComponentResourceManager(typeof(PasswordForm));
Label1 = new Label();
TextBoxPassword = new TextBox();
ButtonOK = new Button();
@ -242,7 +240,7 @@ namespace HPG_68D
FormBorderStyle = FormBorderStyle.FixedDialog;
MaximizeBox = false;
MinimizeBox = false;
Name = nameof (PasswordForm);
Name = nameof(PasswordForm);
GroupBox_ReadPassword.ResumeLayout(false);
GroupBox_ReadPassword.PerformLayout();
GroupBox_WritePassword.ResumeLayout(false);
@ -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,87 +347,89 @@ 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)
{
var num = 0;
MyProject.Forms.MDIParent1.SetControl_U8_Data(CheckBox_ReadPassword, checked (num + 11), publicva.Bit5, 0);
MyProject.Forms.MDIParent1.SetControl_U8_Data(CheckBox_WritePassword, checked (num + 11), publicva.Bit6, 0);
MyProject.Forms.MDIParent1.SetControl_U8_Data(CheckBox_ReadPassword, checked(num + 11), publicva.Bit5, 0);
MyProject.Forms.MDIParent1.SetControl_U8_Data(CheckBox_WritePassword, checked(num + 11), publicva.Bit6, 0);
CheckBox_ReadPassword_CheckedChanged(RuntimeHelpers.GetObjectValue(sender), e);
CheckBox_WritePassword_CheckedChanged(RuntimeHelpers.GetObjectValue(sender), e);
}
@ -429,11 +439,11 @@ namespace HPG_68D
private void ButtonOK_Click(object sender, EventArgs e)
{
var num1 = 60;
var Right1 = Strings.RTrim(Encoding.ASCII.GetString(publicva.EEPROM_Byte, checked (num1 + 0), 16));
var Right1 = Strings.RTrim(Encoding.ASCII.GetString(publicva.EEPROM_Byte, checked(num1 + 0), 16));
var num2 = 70;
var Right2 = Strings.RTrim(Encoding.ASCII.GetString(publicva.EEPROM_Byte, checked (num2 + 0), 16));
var Right2 = Strings.RTrim(Encoding.ASCII.GetString(publicva.EEPROM_Byte, checked(num2 + 0), 16));
var num3 = 0;
if ((publicva.EEPROM_Byte[checked (num3 + 11)] & (uint) publicva.Bit5) > 0U)
if ((publicva.EEPROM_Byte[checked(num3 + 11)] & (uint) publicva.Bit5) > 0U)
{
if (Operators.CompareString(TextBoxPassword.Text, Right1, false) == 0)
{
@ -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,12 +474,13 @@ 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 ((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();

View File

@ -15,7 +15,6 @@ using System.Drawing;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
namespace HPG_68D
{
[DesignerGenerated]
@ -106,7 +105,7 @@ namespace HPG_68D
[DebuggerStepThrough]
private void InitializeComponent()
{
var componentResourceManager = new ComponentResourceManager(typeof (RadioMsgForm));
var componentResourceManager = new ComponentResourceManager(typeof(RadioMsgForm));
var gridViewCellStyle1 = new DataGridViewCellStyle();
var gridViewCellStyle2 = new DataGridViewCellStyle();
var gridViewCellStyle3 = new DataGridViewCellStyle();
@ -638,7 +637,7 @@ namespace HPG_68D
Controls.Add(Button1);
Controls.Add(TabControl1);
Font = null;
Name = nameof (RadioMsgForm);
Name = nameof(RadioMsgForm);
TabControl1.ResumeLayout(false);
TabPage1.ResumeLayout(false);
TabPage1.PerformLayout();
@ -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)
@ -947,66 +960,83 @@ namespace HPG_68D
DataGridView1.EndEdit();
DataGridView2.EndEdit();
DataGridView3.EndEdit();
MyProject.Forms.MDIParent1.GetControl_U8_Data(ComboBoxAIR工作模式, checked (3840 + 29), publicva.Bit5, 5);
MyProject.Forms.MDIParent1.GetControl_U8_Data(ComboBoxAIR信道号, checked (3952 + 6), publicva.AllBit, 0);
MyProject.Forms.MDIParent1.GetControl_U8_Data(ComboBoxAIR工作模式, checked(3840 + 29), publicva.Bit5, 5);
MyProject.Forms.MDIParent1.GetControl_U8_Data(ComboBoxAIR信道号, checked(3952 + 6), publicva.AllBit, 0);
var num1 = 7168;
var rowIndex1 = 1;
do
{
if (Operators.ConditionalCompareObjectEqual(DataGridView3["ColumnAIRFreq", rowIndex1].Value, "", false))
{
MyProject.Forms.ChannelMsg.CHStatusList_Write(checked (rowIndex1 - 1), "删除", 7856);
MyProject.Forms.ChannelMsg.CHStatusList_Write(checked(rowIndex1 - 1), "删除", 7856);
}
else
{
MyProject.Forms.ChannelMsg.CHStatusList_Write(checked (rowIndex1 - 1), "添加", 7856);
Set_Freq(checked (rowIndex1 * 4 + num1), Conversions.ToString(DataGridView3["ColumnAIRFreq", rowIndex1].Value));
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);
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);
var num2 = 7424;
var rowIndex2 = 1;
do
{
if (Operators.ConditionalCompareObjectEqual(DataGridView2["ColumnAMFreq", rowIndex2].Value, "", false))
{
MyProject.Forms.ChannelMsg.CHStatusList_Write(checked (rowIndex2 - 1), "删除", 7824);
MyProject.Forms.ChannelMsg.CHStatusList_Write(checked(rowIndex2 - 1), "删除", 7824);
}
else
{
MyProject.Forms.ChannelMsg.CHStatusList_Write(checked (rowIndex2 - 1), "添加", 7824);
Set_Freq(checked (rowIndex2 * 4 + num2), Conversions.ToString(DataGridView2["ColumnAMFreq", rowIndex2].Value));
publicva.EEPROM_Byte[checked (rowIndex2 * 4 + num2 + 3)] = Conversions.ToByte(Get_AMFreqRangID(Conversions.ToDouble(DataGridView2["ColumnAMFreq", rowIndex2].Value)));
MyProject.Forms.ChannelMsg.CHStatusList_Write(checked(rowIndex2 - 1), "添加", 7824);
Set_Freq(checked(rowIndex2 * 4 + num2), Conversions.ToString(DataGridView2["ColumnAMFreq", rowIndex2].Value));
publicva.EEPROM_Byte[checked(rowIndex2 * 4 + num2 + 3)] =
Conversions.ToByte(Get_AMFreqRangID(Conversions.ToDouble(DataGridView2["ColumnAMFreq", rowIndex2].Value)));
}
checked
{
++rowIndex2;
}
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)));
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);
Set_Freq(checked(0 + num3), Conversions.ToString(DataGridView2["ColumnAMFreq", 0].Value));
publicva.EEPROM_Byte[checked(0 + num3 + 3)] =
Conversions.ToByte(Get_AMFreqRangID(Conversions.ToDouble(DataGridView2["ColumnAMFreq", 0].Value)));
MyProject.Forms.MDIParent1.GetControl_U8_Data(ComboBoxFM工作模式, checked(3840 + 15), publicva.Bit6, 6);
MyProject.Forms.MDIParent1.GetControl_U8_Data(ComboBoxFM信道号, checked(3952 + 7), publicva.AllBit, 0);
var num4 = 7680;
var rowIndex3 = 1;
do
{
if (Operators.ConditionalCompareObjectEqual(DataGridView1["ColumnFMFreq", rowIndex3].Value, "", false))
{
MyProject.Forms.ChannelMsg.CHStatusList_Write(checked (rowIndex3 - 1), "删除", 7840);
MyProject.Forms.ChannelMsg.CHStatusList_Write(checked(rowIndex3 - 1), "删除", 7840);
}
else
{
MyProject.Forms.ChannelMsg.CHStatusList_Write(checked (rowIndex3 - 1), "添加", 7840);
Set_Freq(checked (rowIndex3 * 4 + num4), Conversions.ToString(DataGridView1["ColumnFMFreq", rowIndex3].Value));
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));
Set_Freq(checked(0 + 7812), Conversions.ToString(DataGridView1["ColumnFMFreq", 0].Value));
}
private void RadioMsgForm_FormClosing(object sender, FormClosingEventArgs e)
@ -1032,53 +1062,75 @@ 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);
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))
ComboBoxAIR信道号.SelectedIndex = 0;
var num1 = 7168;
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);
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);
if (!MyProject.Forms.ChannelMsg.CHStatus_Read(ComboBoxAM信道号.SelectedIndex, 7824))
ComboBoxAM信道号.SelectedIndex = 0;
var num2 = 7424;
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);
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);
if (!MyProject.Forms.ChannelMsg.CHStatus_Read(ComboBoxFM信道号.SelectedIndex, 7840))
ComboBoxFM信道号.SelectedIndex = 0;
var num3 = 7680;
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));
DataGridView1["ColumnFMFreq", 0].Value = RuntimeHelpers.GetObjectValue(Get_Freq(checked(0 + 7812), 6400000, 10800000));
}
private void DataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e)
{
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);
@ -1149,7 +1206,7 @@ namespace HPG_68D
private void DataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
{
var strArray = new string[1]{ "搜台" };
var strArray = new string[1] {"搜台"};
var brush = (Brush) new SolidBrush(DataGridView1.RowHeadersDefaultCellStyle.ForeColor);
var num = 11;
if (Operators.CompareString(publicva.Language, "zh-CN", false) != 0)
@ -1157,15 +1214,20 @@ 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)
{
var strArray = new string[1]{ "搜台" };
var strArray = new string[1] {"搜台"};
var brush = (Brush) new SolidBrush(DataGridView2.RowHeadersDefaultCellStyle.ForeColor);
var num = 11;
if (Operators.CompareString(publicva.Language, "zh-CN", false) != 0)
@ -1173,15 +1235,20 @@ 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)
{
var strArray = new string[1]{ "搜台" };
var strArray = new string[1] {"搜台"};
var brush = (Brush) new SolidBrush(DataGridView3.RowHeadersDefaultCellStyle.ForeColor);
var num = 11;
if (Operators.CompareString(publicva.Language, "zh-CN", false) != 0)
@ -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)
@ -1200,31 +1272,37 @@ namespace HPG_68D
string str;
try
{
var num1 = checked ((uint) Math.Round(unchecked (Conversions.ToDouble(StrFreq) * 100000.0)));
var num1 = checked((uint) Math.Round(unchecked(Conversions.ToDouble(StrFreq) * 100000.0)));
if (Max >= num1 & num1 >= Min)
{
if (num1 % 5000L != 0L)
{
var num2 = checked ((int) unchecked (num1 / 5000L));
var num2 = checked((int) unchecked(num1 / 5000L));
if (num1 % 5000L > 10000L)
checked { ++num2; }
num1 = checked ((uint) (num2 * 5000));
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;
}
@ -1233,7 +1311,7 @@ namespace HPG_68D
string str;
try
{
var num1 = checked ((int) Math.Round(unchecked (Conversions.ToDouble(StrFreq) * 100000.0)));
var num1 = checked((int) Math.Round(unchecked(Conversions.ToDouble(StrFreq) * 100000.0)));
if (Max >= num1 & num1 >= Min)
{
if (num1 % 500 != 0 && num1 % 625 != 0)
@ -1241,44 +1319,58 @@ namespace HPG_68D
var num2 = num1;
var num3 = num2 / 625;
if (num2 % 625 > 1250)
checked { ++num3; }
var num4 = checked (num3 * 625);
checked
{
++num3;
}
var num4 = checked(num3 * 625);
var num5 = num1;
var num6 = num5 / 500;
if (num5 % 500 > 1000)
checked { ++num6; }
var num7 = checked (num6 * 500);
num1 = Math.Abs(checked (num4 - num1)) <= Math.Abs(checked (num7 - num1)) ? num4 : num7;
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;
}
public object Get_AMFreqRangID(double Freq)
{
var num1 = checked ((uint) Math.Round(unchecked (Freq * 100000.0)));
var num2 = checked ((uint) Information.UBound(publicva.AMFreqRang));
var num1 = checked((uint) Math.Round(unchecked(Freq * 100000.0)));
var num2 = checked((uint) Information.UBound(publicva.AMFreqRang));
uint amFreqRangId = 0;
while (amFreqRangId <= num2)
{
if (publicva.AMFreqRang[checked ((int) amFreqRangId), 1] >= num1 & num1 >= publicva.AMFreqRang[checked ((int) amFreqRangId), 0])
if (publicva.AMFreqRang[checked((int) amFreqRangId), 1] >= num1 & num1 >= publicva.AMFreqRang[checked((int) amFreqRangId), 0])
return amFreqRangId;
checked { ++amFreqRangId; }
checked
{
++amFreqRangId;
}
}
return -1;
}
@ -1290,42 +1382,59 @@ namespace HPG_68D
var Freq = Conversions.ToDouble(StrFreq);
if (Conversions.ToInteger(Get_AMFreqRangID(Freq)) != -1)
{
var num1 = checked ((uint) Math.Round(unchecked (Freq * 100000.0)));
var num1 = checked((uint) Math.Round(unchecked(Freq * 100000.0)));
if (num1 % 100L != 0L)
{
var num2 = checked ((int) unchecked (num1 / 100L));
var num2 = checked((int) unchecked(num1 / 100L));
if (num1 % 100L > 200L)
checked { ++num2; }
num1 = checked ((uint) (num2 * 100));
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)
@ -1333,7 +1442,7 @@ namespace HPG_68D
uint num;
try
{
num = checked ((uint) Math.Round(unchecked (Convert.ToDouble(Temp_Value) * 1000000.0)));
num = checked((uint) Math.Round(unchecked(Convert.ToDouble(Temp_Value) * 1000000.0)));
}
catch (Exception ex)
{
@ -1341,10 +1450,11 @@ 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));
publicva.EEPROM_Byte[checked (Address + 3)] = Conversions.ToByte("&h" + Conversions.ToString(num % 1000L / 10L));
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));
publicva.EEPROM_Byte[checked(Address + 3)] = Conversions.ToByte("&h" + Conversions.ToString(num % 1000L / 10L));
}
private void Button1_Click(object sender, EventArgs e) => Close();
@ -1353,7 +1463,7 @@ namespace HPG_68D
{
if (MyProject.Forms.ChannelMsg.CHStatus_Read(ComboBoxAM信道号.SelectedIndex, 7824))
return;
MyProject.Forms.MDIParent1.SetControl_U8_Data(ComboBoxAM信道号, checked (3952 + 8), publicva.AllBit, 0);
MyProject.Forms.MDIParent1.SetControl_U8_Data(ComboBoxAM信道号, checked(3952 + 8), publicva.AllBit, 0);
if (!MyProject.Forms.ChannelMsg.CHStatus_Read(ComboBoxAM信道号.SelectedIndex, 7824))
ComboBoxAM信道号.SelectedIndex = 0;
}
@ -1362,7 +1472,7 @@ namespace HPG_68D
{
if (MyProject.Forms.ChannelMsg.CHStatus_Read(ComboBoxFM信道号.SelectedIndex, 7840))
return;
MyProject.Forms.MDIParent1.SetControl_U8_Data(ComboBoxFM信道号, checked (3952 + 7), publicva.AllBit, 0);
MyProject.Forms.MDIParent1.SetControl_U8_Data(ComboBoxFM信道号, checked(3952 + 7), publicva.AllBit, 0);
if (!MyProject.Forms.ChannelMsg.CHStatus_Read(ComboBoxFM信道号.SelectedIndex, 7840))
ComboBoxFM信道号.SelectedIndex = 0;
}
@ -1371,7 +1481,7 @@ namespace HPG_68D
{
if (MyProject.Forms.ChannelMsg.CHStatus_Read(ComboBoxAIR信道号.SelectedIndex, 7856))
return;
MyProject.Forms.MDIParent1.SetControl_U8_Data(ComboBoxAIR信道号, checked (3952 + 6), publicva.AllBit, 0);
MyProject.Forms.MDIParent1.SetControl_U8_Data(ComboBoxAIR信道号, checked(3952 + 6), publicva.AllBit, 0);
if (!MyProject.Forms.ChannelMsg.CHStatus_Read(ComboBoxAIR信道号.SelectedIndex, 7856))
ComboBoxAIR信道号.SelectedIndex = 0;
}

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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

File diff suppressed because it is too large Load Diff

View File

@ -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,