diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 80cb610..6c6846a 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -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")] diff --git a/SettingsPanel.Designer.cs b/SettingsPanel.Designer.cs index d454717..6480f80 100644 --- a/SettingsPanel.Designer.cs +++ b/SettingsPanel.Designer.cs @@ -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"; diff --git a/SettingsPanel.cs b/SettingsPanel.cs index ce7b0ea..124c3e0 100644 --- a/SettingsPanel.cs +++ b/SettingsPanel.cs @@ -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}"); } } -} +} \ No newline at end of file diff --git a/TopWindowMessages.cs b/TopWindowMessages.cs index 92145a5..8746e3a 100644 --- a/TopWindowMessages.cs +++ b/TopWindowMessages.cs @@ -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"; } } -} +} \ No newline at end of file diff --git a/WelcomeForm.cs b/WelcomeForm.cs index 6f88d14..0f1fb98 100644 --- a/WelcomeForm.cs +++ b/WelcomeForm.cs @@ -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); } -} +} \ No newline at end of file