HamBook – Diff between revs 20 and 21

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 20 Rev 21
Line 407... Line 407...
407 if (int.TryParse(toolStripComboBox.Text, out var frequency)) 407 if (int.TryParse(toolStripComboBox.Text, out var frequency))
408 { 408 {
409 switch (Math.Sign(e.Delta)) 409 switch (Math.Sign(e.Delta))
410 { 410 {
411 case -1: 411 case -1:
412 frequency = frequency - 100; 412 frequency = frequency - Configuration.Navigation.FrequencyStep;
413 break; 413 break;
414 case 1: 414 case 1:
415 frequency = frequency + 100; 415 frequency = frequency + Configuration.Navigation.FrequencyStep;
416 break; 416 break;
417 } 417 }
Line 418... Line 418...
418   418  
Line 441... Line 441...
441 if (int.TryParse(toolStripComboBox.Text, out var frequency)) 441 if (int.TryParse(toolStripComboBox.Text, out var frequency))
442 { 442 {
443 switch (Math.Sign(e.Delta)) 443 switch (Math.Sign(e.Delta))
444 { 444 {
445 case -1: 445 case -1:
446 frequency = frequency - 100; 446 frequency = frequency - Configuration.Navigation.FrequencyStep;
447 break; 447 break;
448 case 1: 448 case 1:
449 frequency = frequency + 100; 449 frequency = frequency + Configuration.Navigation.FrequencyStep;
450 break; 450 break;
451 } 451 }
Line 452... Line 452...
452   452  
Line 526... Line 526...
526 if(!int.TryParse(scrollableToolStripComboBox4.Text, out var step)) 526 if(!int.TryParse(scrollableToolStripComboBox4.Text, out var step))
527 { 527 {
528 step = 5000; 528 step = 5000;
529 } 529 }
Line -... Line 530...
-   530  
-   531 if(!int.TryParse(scrollableToolStripComboBox6.Text, out var scanDetectPause))
-   532 {
-   533 scanDetectPause = 10;
-   534 }
530   535  
531 if (!Configuration.Definitions.TryGetBand(meters, out var band)) 536 if (!Configuration.Definitions.TryGetBand(meters, out var band))
532 { 537 {
533 return; 538 return;
Line 537... Line 542...
537 { 542 {
538 await _bandScan.Stop(); 543 await _bandScan.Stop();
539 _bandScan = null; 544 _bandScan = null;
540 } 545 }
Line 541... Line 546...
541   546  
-   547 _bandScan = new BandScan(_catAssemblies, (int)band.Min, (int)band.Max, _serialPort, Configuration);
-   548  
-   549 if (toolStripMenuItem14.Checked)
-   550 {
-   551 _bandScan.Start(step, pause, scanDetectPause);
-   552  
-   553 return;
Line 542... Line 554...
542 _bandScan = new BandScan(_catAssemblies, band.Min, band.Max, _serialPort, Configuration); 554 }
543   555  
Line 544... Line 556...
544 _bandScan.Start(step, pause, Configuration.ScanDetectPause); 556 _bandScan.Start(step, pause);
545 } 557 }
546   558