mirror of
https://github.com/EnderIce2/SDR-RPC.git
synced 2025-05-26 03:14:26 +00:00
Quality
This commit is contained in:
parent
0c4311a936
commit
da9b48cf7c
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.1")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.1")]
|
||||
[assembly: AssemblyVersion("1.1.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.1.0.0")]
|
||||
|
4
SettingsPanel.Designer.cs
generated
4
SettingsPanel.Designer.cs
generated
@ -113,7 +113,7 @@
|
||||
//
|
||||
this.checkBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.checkBox2.Font = new System.Drawing.Font("Verdana", 7F);
|
||||
this.checkBox2.Font = new System.Drawing.Font("Verdana", 6.5F);
|
||||
this.checkBox2.ForeColor = System.Drawing.Color.Black;
|
||||
this.checkBox2.Location = new System.Drawing.Point(3, 22);
|
||||
this.checkBox2.Name = "checkBox2";
|
||||
@ -127,7 +127,7 @@
|
||||
//
|
||||
this.checkBox3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.checkBox3.Font = new System.Drawing.Font("Verdana", 7F);
|
||||
this.checkBox3.Font = new System.Drawing.Font("Verdana", 6.5F);
|
||||
this.checkBox3.ForeColor = System.Drawing.Color.Black;
|
||||
this.checkBox3.Location = new System.Drawing.Point(3, 43);
|
||||
this.checkBox3.Name = "checkBox3";
|
||||
|
@ -10,10 +10,7 @@ namespace EnderIce2.SDRSharpPlugin
|
||||
private string _ChangeStatus;
|
||||
public string ChangeStatus
|
||||
{
|
||||
get
|
||||
{
|
||||
return _ChangeStatus;
|
||||
}
|
||||
get => _ChangeStatus;
|
||||
set
|
||||
{
|
||||
_ChangeStatus = value;
|
||||
@ -25,32 +22,9 @@ namespace EnderIce2.SDRSharpPlugin
|
||||
{
|
||||
InitializeComponent();
|
||||
textBox1.Text = Utils.GetStringSetting("ClientID");
|
||||
if (Utils.GetBooleanSetting("EnableRPC", true))
|
||||
{
|
||||
checkBox1.Checked = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
checkBox1.Checked = false;
|
||||
}
|
||||
|
||||
if (Utils.GetBooleanSetting("LogRPC", false))
|
||||
{
|
||||
checkBox2.Checked = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
checkBox2.Checked = false;
|
||||
}
|
||||
|
||||
if (Utils.GetBooleanSetting("EnableRPCInvite", false))
|
||||
{
|
||||
checkBox3.Checked = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
checkBox3.Checked = false;
|
||||
}
|
||||
checkBox1.Checked = Utils.GetBooleanSetting("EnableRPC", true);
|
||||
checkBox2.Checked = Utils.GetBooleanSetting("LogRPC", false);
|
||||
checkBox3.Checked = Utils.GetBooleanSetting("EnableRPCInvite", false);
|
||||
LogWriter.WriteToFile("SettingsPanel loaded");
|
||||
}
|
||||
|
||||
@ -62,15 +36,9 @@ namespace EnderIce2.SDRSharpPlugin
|
||||
/* Utils.GetBooleanSetting("EnableRPC"); */
|
||||
}
|
||||
|
||||
private void Button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
System.Diagnostics.Process.Start("https://github.com/EnderIce2/SDR-RPC");
|
||||
}
|
||||
private void Button1_Click(object sender, EventArgs e) => System.Diagnostics.Process.Start("https://github.com/EnderIce2/SDR-RPC");
|
||||
|
||||
private void CheckBox2_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
Utils.SaveSetting("LogRPC", checkBox2.Checked);
|
||||
}
|
||||
private void CheckBox2_CheckedChanged(object sender, EventArgs e) => Utils.SaveSetting("LogRPC", checkBox2.Checked);
|
||||
|
||||
private void TextBox1_KeyPress(object sender, KeyPressEventArgs e)
|
||||
{
|
||||
@ -105,4 +73,4 @@ namespace EnderIce2.SDRSharpPlugin
|
||||
LogWriter.WriteToFile($"checkbox on SettingsPanel clicked {checkBox3.Checked}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -14,10 +14,7 @@ namespace EnderIce2.SDRSharpPlugin
|
||||
private string _ChangeLabel;
|
||||
public string ChangeLabel
|
||||
{
|
||||
get
|
||||
{
|
||||
return _ChangeLabel;
|
||||
}
|
||||
get => _ChangeLabel;
|
||||
set
|
||||
{
|
||||
_ChangeLabel = value;
|
||||
@ -64,4 +61,4 @@ namespace EnderIce2.SDRSharpPlugin
|
||||
ChangeLabel = $"SDR# RPC | Ready";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -6,24 +6,12 @@ namespace EnderIce2.SDRSharpPlugin
|
||||
{
|
||||
public partial class WelcomeForm : Form
|
||||
{
|
||||
public WelcomeForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
public WelcomeForm() => InitializeComponent();
|
||||
|
||||
private void Button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
System.Diagnostics.Process.Start("https://ko-fi.com/enderice2");
|
||||
}
|
||||
private void Button2_Click(object sender, EventArgs e) => System.Diagnostics.Process.Start("https://ko-fi.com/enderice2");
|
||||
|
||||
private void Button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
private void Button1_Click(object sender, EventArgs e) => Close();
|
||||
|
||||
private void CheckBox1_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
Utils.SaveSetting("ShowWelcomePage", !checkBox1.Checked);
|
||||
}
|
||||
private void CheckBox1_CheckedChanged(object sender, EventArgs e) => Utils.SaveSetting("ShowWelcomePage", !checkBox1.Checked);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user