public HeartRateForm() { _settings.Load(); _settings.Save(); _service = new HeartRateService(); _iconBitmap = new Bitmap(_iconWidth, _iconHeight); _iconGraphics = Graphics.FromImage(_iconBitmap); _measurementFont = new Font( _settings.FontName, _iconWidth, GraphicsUnit.Pixel); InitializeComponent(); }
private void LoadSettingsLocked() { _settings.Load(); _log = new LogFile(_settings, FormatFilename(_settings.LogFile)); _ibi = new IBIFile(FormatFilename(_settings.IBIFile)); }
private void LoadSettingsLocked() { _settings.Load(); var logfile = _settings.LogFile; _logfilename = string.IsNullOrWhiteSpace(logfile) ? null : DateTimeFormatter.FormatStringTokens(logfile, _startedAt); }
private void LoadSettingsLocked() { _settings.Load(); LoadSettingsFilesLocked(); }