private object _busysem = new object(); // semaphore #endregion Fields #region Constructors public SerialConnTest() { ADCValues = new ObservableList<VoltPoint>(); Connection = (Application.Current as App).CurrentSerialConnection; RCUCom = new RCUCommunication(Connection); RCUCom.ProgressChanged += RaiseProgressChanged; }
public SerialConnTest() { ADCValues = new ObservableList <VoltPoint>(); Connection = (Application.Current as App).CurrentSerialConnection; RCUCom = new RCUCommunication(Connection); RCUCom.ProgressChanged += RaiseProgressChanged; }
public RCUCommunication(SerialConfiguration _conf) { this.Connection = _conf; adc_buffer_size = 2048; ADCBinMax = 4096; ADCVoltMax = 3.0; ADCSampleRateIndex = 0; ADCReadTimeout = 2000; VCOFreqency = 3000; VCOOffset = 0.128; FilterHighPassIdx = 0; FilterLowPassIdx = 0; FilterHPList = new ObservableCollection<string>(); FilterLPList = new ObservableCollection<string>(); FilterBaseFreq = 40; }
public RCUCommunication(SerialConfiguration _conf) { this.Connection = _conf; adc_buffer_size = 2048; ADCBinMax = 4096; ADCVoltMax = 3.0; ADCSampleRateIndex = 0; ADCReadTimeout = 2000; VCOFreqency = 3000; VCOOffset = 0.128; FilterHighPassIdx = 0; FilterLowPassIdx = 0; FilterHPList = new ObservableCollection <string>(); FilterLPList = new ObservableCollection <string>(); FilterBaseFreq = 40; }
protected override void OnStartup(StartupEventArgs e) { CurrentSerialConnection = new SerialConfiguration(); // add custom accent and theme resource dictionaries ThemeManager.AddAccent("custom_style", new Uri("pack://application:,,,/custom_style.xaml")); // get the theme from the current application var theme = ThemeManager.DetectAppStyle(Application.Current); // now use the custom accent ThemeManager.ChangeAppStyle(Application.Current, ThemeManager.GetAccent("Blue"), theme.Item1); base.OnStartup(e); }