This commit is contained in:
EnderIce2 2021-05-13 23:09:25 +03:00
parent 0c4311a936
commit da9b48cf7c
5 changed files with 18 additions and 65 deletions

View File

@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.1")] [assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyFileVersion("1.0.0.1")] [assembly: AssemblyFileVersion("1.1.0.0")]

View File

@ -113,7 +113,7 @@
// //
this.checkBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.checkBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | 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.ForeColor = System.Drawing.Color.Black;
this.checkBox2.Location = new System.Drawing.Point(3, 22); this.checkBox2.Location = new System.Drawing.Point(3, 22);
this.checkBox2.Name = "checkBox2"; 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) this.checkBox3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | 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.ForeColor = System.Drawing.Color.Black;
this.checkBox3.Location = new System.Drawing.Point(3, 43); this.checkBox3.Location = new System.Drawing.Point(3, 43);
this.checkBox3.Name = "checkBox3"; this.checkBox3.Name = "checkBox3";

View File

@ -10,10 +10,7 @@ namespace EnderIce2.SDRSharpPlugin
private string _ChangeStatus; private string _ChangeStatus;
public string ChangeStatus public string ChangeStatus
{ {
get get => _ChangeStatus;
{
return _ChangeStatus;
}
set set
{ {
_ChangeStatus = value; _ChangeStatus = value;
@ -25,32 +22,9 @@ namespace EnderIce2.SDRSharpPlugin
{ {
InitializeComponent(); InitializeComponent();
textBox1.Text = Utils.GetStringSetting("ClientID"); textBox1.Text = Utils.GetStringSetting("ClientID");
if (Utils.GetBooleanSetting("EnableRPC", true)) checkBox1.Checked = Utils.GetBooleanSetting("EnableRPC", true);
{ checkBox2.Checked = Utils.GetBooleanSetting("LogRPC", false);
checkBox1.Checked = true; checkBox3.Checked = Utils.GetBooleanSetting("EnableRPCInvite", false);
}
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;
}
LogWriter.WriteToFile("SettingsPanel loaded"); LogWriter.WriteToFile("SettingsPanel loaded");
} }
@ -62,15 +36,9 @@ namespace EnderIce2.SDRSharpPlugin
/* Utils.GetBooleanSetting("EnableRPC"); */ /* Utils.GetBooleanSetting("EnableRPC"); */
} }
private void Button1_Click(object sender, EventArgs e) private void Button1_Click(object sender, EventArgs e) => System.Diagnostics.Process.Start("https://github.com/EnderIce2/SDR-RPC");
{
System.Diagnostics.Process.Start("https://github.com/EnderIce2/SDR-RPC");
}
private void CheckBox2_CheckedChanged(object sender, EventArgs e) private void CheckBox2_CheckedChanged(object sender, EventArgs e) => Utils.SaveSetting("LogRPC", checkBox2.Checked);
{
Utils.SaveSetting("LogRPC", checkBox2.Checked);
}
private void TextBox1_KeyPress(object sender, KeyPressEventArgs e) private void TextBox1_KeyPress(object sender, KeyPressEventArgs e)
{ {
@ -105,4 +73,4 @@ namespace EnderIce2.SDRSharpPlugin
LogWriter.WriteToFile($"checkbox on SettingsPanel clicked {checkBox3.Checked}"); LogWriter.WriteToFile($"checkbox on SettingsPanel clicked {checkBox3.Checked}");
} }
} }
} }

View File

@ -14,10 +14,7 @@ namespace EnderIce2.SDRSharpPlugin
private string _ChangeLabel; private string _ChangeLabel;
public string ChangeLabel public string ChangeLabel
{ {
get get => _ChangeLabel;
{
return _ChangeLabel;
}
set set
{ {
_ChangeLabel = value; _ChangeLabel = value;
@ -64,4 +61,4 @@ namespace EnderIce2.SDRSharpPlugin
ChangeLabel = $"SDR# RPC | Ready"; ChangeLabel = $"SDR# RPC | Ready";
} }
} }
} }

View File

@ -6,24 +6,12 @@ namespace EnderIce2.SDRSharpPlugin
{ {
public partial class WelcomeForm : Form public partial class WelcomeForm : Form
{ {
public WelcomeForm() public WelcomeForm() => InitializeComponent();
{
InitializeComponent();
}
private void Button2_Click(object sender, EventArgs e) private void Button2_Click(object sender, EventArgs e) => System.Diagnostics.Process.Start("https://ko-fi.com/enderice2");
{
System.Diagnostics.Process.Start("https://ko-fi.com/enderice2");
}
private void Button1_Click(object sender, EventArgs e) private void Button1_Click(object sender, EventArgs e) => Close();
{
Close();
}
private void CheckBox1_CheckedChanged(object sender, EventArgs e) private void CheckBox1_CheckedChanged(object sender, EventArgs e) => Utils.SaveSetting("ShowWelcomePage", !checkBox1.Checked);
{
Utils.SaveSetting("ShowWelcomePage", !checkBox1.Checked);
}
} }
} }