Skip to content

Commit

Permalink
Code Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
veso266 committed Sep 15, 2019
1 parent 8d5de3f commit 81a8cfd
Show file tree
Hide file tree
Showing 7 changed files with 225 additions and 225 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -242,4 +242,5 @@ paket-files/

# JetBrains Rider
.idea/
*.sln.iml
*.sln.iml
Todo.txt
39 changes: 39 additions & 0 deletions SDRSharp.XDR/AdvancedRDSWindow.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions SDRSharp.XDR/AdvancedRDSWindow.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SDRSharp.XDR
{
public partial class AdvancedRDSWindow : Form
{
public AdvancedRDSWindow()
{
InitializeComponent();
}
}
}
13 changes: 12 additions & 1 deletion SDRSharp.XDR/SDRSharp.XDR.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="AdvancedRDSWindow.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="AdvancedRDSWindow.Designer.cs">
<DependentUpon>AdvancedRDSWindow.cs</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RDS\RDSFunctions.cs" />
<Compile Include="RDS\RDSHandle.cs" />
Expand All @@ -82,13 +88,18 @@
<Compile Include="SettingsPanel.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Signal\AmplitudeProcessor.cs" />
<Compile Include="SettingsPanel.Designer.cs">
<DependentUpon>SettingsPanel.cs</DependentUpon>
</Compile>
<Compile Include="XDRPlugin.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="SettingsPanel.resx">
<DependentUpon>SettingsPanel.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Folder Include="NO-DOESNOTWORK\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
151 changes: 151 additions & 0 deletions SDRSharp.XDR/SettingsPanel.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

111 changes: 1 addition & 110 deletions SDRSharp.XDR/SettingsPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,105 +10,6 @@ namespace SDRSharp.XDR
{
public partial class SettingsPanel : UserControl
{
//When SettingsPanel starts it will call this
public void InitializeComponent()
{
this.enableXdrCheckBox = new System.Windows.Forms.CheckBox();
this.mainTableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
this.comPortsBox = new System.Windows.Forms.ComboBox();
this.BaudrateBox = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.mainTableLayoutPanel.SuspendLayout();
this.SuspendLayout();
//
// enableXdrCheckBox
//
this.enableXdrCheckBox.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.enableXdrCheckBox.AutoSize = true;
this.enableXdrCheckBox.Location = new System.Drawing.Point(3, 3);
this.enableXdrCheckBox.Name = "enableXdrCheckBox";
this.enableXdrCheckBox.Size = new System.Drawing.Size(85, 17);
this.enableXdrCheckBox.TabIndex = 0;
this.enableXdrCheckBox.Text = "Enable XDR";
this.enableXdrCheckBox.UseVisualStyleBackColor = true;
this.enableXdrCheckBox.CheckedChanged += new System.EventHandler(this.enableXdrCheckBox_CheckedChanged);
//
// mainTableLayoutPanel
//
this.mainTableLayoutPanel.ColumnCount = 2;
this.mainTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.mainTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.mainTableLayoutPanel.Controls.Add(this.enableXdrCheckBox, 0, 0);
this.mainTableLayoutPanel.Controls.Add(this.comPortsBox, 0, 2);
this.mainTableLayoutPanel.Controls.Add(this.BaudrateBox, 1, 2);
this.mainTableLayoutPanel.Controls.Add(this.label1, 0, 1);
this.mainTableLayoutPanel.Controls.Add(this.label2, 1, 1);
this.mainTableLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.mainTableLayoutPanel.Location = new System.Drawing.Point(0, 0);
this.mainTableLayoutPanel.Name = "mainTableLayoutPanel";
this.mainTableLayoutPanel.RowCount = 2;
this.mainTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.mainTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.mainTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle());
this.mainTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.mainTableLayoutPanel.Size = new System.Drawing.Size(204, 153);
this.mainTableLayoutPanel.TabIndex = 1;
//
// comPortsBox
//
this.comPortsBox.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.comPortsBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comPortsBox.FormattingEnabled = true;
this.comPortsBox.Location = new System.Drawing.Point(3, 39);
this.comPortsBox.Name = "comPortsBox";
this.comPortsBox.Size = new System.Drawing.Size(96, 21);
this.comPortsBox.TabIndex = 2;
this.comPortsBox.SelectedIndexChanged += new System.EventHandler(this.XdrComPortChanged_CheckedChanged);
//
// BaudrateBox
//
this.BaudrateBox.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.BaudrateBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.BaudrateBox.FormattingEnabled = true;
this.BaudrateBox.Location = new System.Drawing.Point(105, 39);
this.BaudrateBox.Name = "BaudrateBox";
this.BaudrateBox.Size = new System.Drawing.Size(96, 21);
this.BaudrateBox.TabIndex = 3;
this.BaudrateBox.SelectedIndexChanged += new System.EventHandler(this.BaudrateBox_SelectedIndexChanged);
//
// label1
//
this.label1.Anchor = System.Windows.Forms.AnchorStyles.None;
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(24, 23);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(53, 13);
this.label1.TabIndex = 4;
this.label1.Text = "COM Port";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label2
//
this.label2.Anchor = System.Windows.Forms.AnchorStyles.None;
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(128, 23);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(50, 13);
this.label2.TabIndex = 5;
this.label2.Text = "Baudrate";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// SettingsPanel
//
this.Controls.Add(this.mainTableLayoutPanel);
this.Name = "SettingsPanel";
this.Size = new System.Drawing.Size(204, 153);
this.mainTableLayoutPanel.ResumeLayout(false);
this.mainTableLayoutPanel.PerformLayout();
this.ResumeLayout(false);

}
// Comport
public int comIndex;
public int BaudIndex;
Expand All @@ -120,9 +21,6 @@ public void InitializeComponent()
// Plugin stuff
private XDRPlugin _plugin;

// SD# Exposes that interface
private IContainer components;

// Main Checkbox
public CheckBox enableXdrCheckBox;
public bool XdrEnabled;
Expand All @@ -132,6 +30,7 @@ public void InitializeComponent()

// Comport
private Label label1;
private Button AdvancedRDS;

// Baudrate
private Label label2;
Expand Down Expand Up @@ -191,13 +90,5 @@ private void BaudrateBox_SelectedIndexChanged(object sender, EventArgs e)
this.BaudIndex = this.BaudrateBox.SelectedIndex;
this._plugin.PopulateComPort();
}
protected override void Dispose(bool disposing)
{
if (disposing && this.components != null)
{
this.components.Dispose();
}
base.Dispose(disposing);
}
}
}
Loading

0 comments on commit 81a8cfd

Please sign in to comment.