HamBook – Diff between revs 32 and 33

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 32 Rev 33
Line 571... Line 571...
571 _bandScan = null; 571 _bandScan = null;
572 } 572 }
Line 573... Line 573...
573   573  
Line 574... Line -...
574 _bandScan = new BandScan(_catAssemblies, (int)band.Min, (int)band.Max, _serialPort, Configuration); -  
575   574 _bandScan = new BandScan(_catAssemblies, (int)band.Min, (int)band.Max, _serialPort, Configuration);
576 //toolStripMenuItem16 575  
577 if (toolStripMenuItem14.Checked) 576 if (toolStripMenuItem14.Checked)
Line 578... Line 577...
578 { 577 {
Line 1165... Line 1164...
1165 } 1164 }
1166 }); 1165 });
1167 }, _cancellationToken); 1166 }, _cancellationToken);
1168 } 1167 }
Line -... Line 1168...
-   1168  
-   1169 private async void toolStripMenuItem30_Click(object sender, EventArgs e)
-   1170 {
-   1171 if (!int.TryParse(scrollableToolStripComboBox9.Text, out var start)
-   1172 || !int.TryParse(scrollableToolStripComboBox10.Text, out var stop))
-   1173 {
-   1174 return;
-   1175 }
-   1176  
-   1177 if (!int.TryParse(scrollableToolStripComboBox3.Text, out var pause))
-   1178 {
-   1179 pause = 5;
Line -... Line 1180...
-   1180 }
-   1181  
-   1182 if (!int.TryParse(scrollableToolStripComboBox4.Text, out var step))
-   1183 {
-   1184 step = 5000;
-   1185 }
-   1186  
-   1187 if (!int.TryParse(scrollableToolStripComboBox6.Text, out var scanDetectPause))
-   1188 {
-   1189 scanDetectPause = 10;
-   1190 }
-   1191  
-   1192 if (_bandScan != null)
-   1193 {
-   1194 await _bandScan.Stop();
-   1195 _bandScan = null;
-   1196 }
-   1197  
-   1198 _bandScan = new BandScan(_catAssemblies, start, stop, _serialPort, Configuration);
-   1199  
-   1200 if (toolStripMenuItem14.Checked)
-   1201 {
-   1202 _bandScan.Start(step, pause, scanDetectPause, toolStripMenuItem16.Checked);
-   1203  
-   1204 return;
-   1205 }
-   1206  
1169   1207 _bandScan.Start(step, pause, toolStripMenuItem16.Checked);
1170   1208 }