HamBook – Diff between revs 29 and 30
?pathlinks?
Rev 29 | Rev 30 | |||
---|---|---|---|---|
Line 38... | Line 38... | |||
38 | public partial class Form1 : Form |
38 | public partial class Form1 : Form |
|
39 | { |
39 | { |
|
40 | private ScheduledContinuation _changedConfigurationContinuation; |
40 | private ScheduledContinuation _changedConfigurationContinuation; |
|
41 | private ScheduledContinuation _squelchScheduledContinuation; |
41 | private ScheduledContinuation _squelchScheduledContinuation; |
|
42 | private ScheduledContinuation _powerScheduledContinuation; |
42 | private ScheduledContinuation _powerScheduledContinuation; |
|
43 | private ScheduledContinuation _vfoAScheduledContinuation; |
- | ||
44 | private ReaderWriterLockSlim _vfoAReaderWriterLockSlim; |
- | ||
45 | private ScheduledContinuation _vfoBScheduledContinuation; |
- | ||
46 | private ReaderWriterLockSlim _vfoBReaderWriterLockSlim; |
- | ||
Line 47... | Line 43... | |||
47 | |
43 | |
|
48 | private Configuration.Configuration Configuration { get; set; } |
44 | private Configuration.Configuration Configuration { get; set; } |
|
49 | private SerialPortStream _serialPort; |
45 | private SerialPortStream _serialPort; |
|
50 | private LogMemorySink _memorySink; |
46 | private LogMemorySink _memorySink; |
|
Line 478... | Line 474... | |||
478 | case 1: |
474 | case 1: |
|
479 | frequency = frequency + Configuration.Navigation.FrequencyStep; |
475 | frequency = frequency + Configuration.Navigation.FrequencyStep; |
|
480 | break; |
476 | break; |
|
481 | } |
477 | } |
|
Line 482... | Line -... | |||
482 | |
- | ||
483 | if (!_vfoAReaderWriterLockSlim.TryEnterReadLock(250)) |
- | ||
484 | { |
- | ||
485 | return; |
- | ||
486 | } |
- | ||
487 | |
478 | |
|
488 | try |
479 | try |
|
489 | { |
480 | { |
|
490 | using (var soundPlayer = new SoundPlayer(Assembly.GetExecutingAssembly().GetManifestResourceStream("HamBook.Effects.pot.wav"))) |
481 | using (var soundPlayer = new SoundPlayer(Assembly.GetExecutingAssembly().GetManifestResourceStream("HamBook.Effects.pot.wav"))) |
|
491 | { |
482 | { |