示例#1
0
        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();
        }
示例#2
0
        private void LoadSettingsLocked()
        {
            _settings.Load();

            _log = new LogFile(_settings, FormatFilename(_settings.LogFile));
            _ibi = new IBIFile(FormatFilename(_settings.IBIFile));
        }
示例#3
0
        private void LoadSettingsLocked()
        {
            _settings.Load();

            var logfile = _settings.LogFile;

            _logfilename = string.IsNullOrWhiteSpace(logfile)
                ? null
                : DateTimeFormatter.FormatStringTokens(logfile, _startedAt);
        }
示例#4
0
 private void LoadSettingsLocked()
 {
     _settings.Load();
     LoadSettingsFilesLocked();
 }