Skip to content

Commit

Permalink
Fix Ryde add window when closing, Startup with no Rx's
Browse files Browse the repository at this point in the history
  • Loading branch information
m0dts committed Jan 26, 2021
1 parent 34b30dd commit 0bcd50d
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 48 deletions.
52 changes: 26 additions & 26 deletions QO-100 WB Quick Tune/Form1.Designer.cs

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

46 changes: 25 additions & 21 deletions QO-100 WB Quick Tune/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -819,31 +819,32 @@ private void tune_ryde(int freq, int sr, IPAddress ip, int port, string rydeband
private void button1_Click_2(object sender, EventArgs e)
{
//using (add)
// {

add.ShowDialog();
// {
add.rx_added = "";
add.ShowDialog();


if (RxList.Items.Count < 4)
if (RxList.Items.Count < 4)
{
if (add.rx_added == "Minitioune")
{
if (add.rx_added == "Minitioune")
{

RxList.Items.Add(new ListViewItem(new String[] { add.get_ip().ToString(), add.get_port().ToString(), add.get_lo().ToString(), add.get_rxsocket(), add.get_lnbvolts(), add.get_lnb22khz(), add.get_dvbmode(), add.get_widescan(), add.get_lowsr(), "Minitioune", "-" }));
}
if (add.rx_added == "Ryde")
RxList.Items.Add(new ListViewItem(new String[] { add.get_ip().ToString(), add.get_port().ToString(), add.get_lo().ToString(), add.get_rxsocket(), add.get_lnbvolts(), add.get_lnb22khz(), add.get_dvbmode(), add.get_widescan(), add.get_lowsr(), "Minitioune", "-" }));
}
if (add.rx_added == "Ryde")
{
if (add.rydeband != "")
{
if (add.rydeband != "")
{
RxList.Items.Add(new ListViewItem(new String[] { add.get_ip().ToString(), add.get_port().ToString(), "-", "-", "-", "-", "-", "-", "-", "Ryde", add.get_rydeband() }));

}
RxList.Items.Add(new ListViewItem(new String[] { add.get_ip().ToString(), add.get_port().ToString(), "-", "-", "-", "-", "-", "-", "-", "Ryde", add.get_rydeband() }));

}

}
else
{
MessageBox.Show("Only 4 receivers allowed at the moment...");
}
}
else
{
MessageBox.Show("Only 4 receivers allowed at the moment...");
}

// }
update_count();
Expand All @@ -857,8 +858,11 @@ private void update_count()
{
combo_rxs_scan.Items.Add(n + 1);
}
combo_rxs_scan.SelectedIndex = 0;
System.Threading.Thread.Sleep(100);
if (RxList.Items.Count > 0)
{
combo_rxs_scan.SelectedIndex = 0;
}

Console.WriteLine(combo_rxs_scan.SelectedIndex);
}

Expand All @@ -870,7 +874,7 @@ private void combo_minsr_SelectedIndexChanged(object sender, EventArgs e)
private void combo_rxs_scan_SelectedIndexChanged(object sender, EventArgs e)
{
int num = Convert.ToInt16(combo_rxs_scan.GetItemText(combo_rxs_scan.SelectedItem));
Console.WriteLine(combo_rxs_scan.SelectedIndex);
//Console.WriteLine(combo_rxs_scan.SelectedIndex);
num_rxs_to_scan = num;
sigs.set_num_rx_scan(num);
}
Expand Down
2 changes: 1 addition & 1 deletion QO-100 WB Quick Tune/Form1.resx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="label4.Text" xml:space="preserve">
<value>QO-100 WB Quick Tune V1.2b (Jan 2021)
<value>QO-100 WB Quick Tune V1.21b (Jan 2021)

Main Operation:
Add up to 4 receivers to the Rx List, any combination of Minitioune/Ryde should work.
Expand Down

0 comments on commit 0bcd50d

Please sign in to comment.