HamBook – Diff between revs 45 and 48

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 45 Rev 48
Line 1... Line 1...
1 using HamBook.Radios.Generic; 1 using HamBook.Radios.Generic;
2 using HamBook.Radios; 2 using HamBook.Radios;
3 using System; 3 using System;
4 using System.Collections.Generic; 4 using System.Collections.Generic;
5 using System.Linq; -  
6 using System.Threading; 5 using System.Threading;
7 using System.Threading.Tasks; 6 using System.Threading.Tasks;
8 using Serilog; 7 using Serilog;
9 using HamBook.Properties; 8 using HamBook.Properties;
10 using System.Media; 9 using System.Media;
11 using System.Reflection; 10 using System.Reflection;
12 using RJCP.IO.Ports; 11 using RJCP.IO.Ports;
13 using HamBook.Radios.Yaesu.FT_891; -  
Line 14... Line 12...
14   12  
15 namespace HamBook 13 namespace HamBook
16 { 14 {
17 public class MemoryTune 15 public class MemoryTune
Line 20... Line 18...
20 private CancellationToken _scanningCancellationToken; 18 private CancellationToken _scanningCancellationToken;
21 private Thread _scanThread; 19 private Thread _scanThread;
22 private CatAssemblies _catAssemblies; 20 private CatAssemblies _catAssemblies;
23 private SerialPortStream _serialPort; 21 private SerialPortStream _serialPort;
24 private Configuration.Configuration _configuration; 22 private Configuration.Configuration _configuration;
25 private Radios.Generic.MemoryBanks _memoryBanks; 23 private MemoryBanks _memoryBanks;
Line 26... Line 24...
26   24  
27 private MemoryTune() 25 private MemoryTune()
28 { 26 {
Line 32... Line 30...
32 { 30 {
33 _catAssemblies = catAssemblies; 31 _catAssemblies = catAssemblies;
34 _serialPort = serialPort; 32 _serialPort = serialPort;
35 _configuration = configuration; 33 _configuration = configuration;
Line 36... Line 34...
36   34  
37 _memoryBanks = Radios.Generic.MemoryBanks.Create(_configuration.Radio); 35 _memoryBanks = MemoryBanks.Create(_configuration.Radio);
Line 38... Line 36...
38 } 36 }
39   37  
40 public void Start() 38 public void Start()