Exemplo n.º 1
0
        public MainForm(ISensor sensor, ISensorApi sensorApi)
        {
            if (string.IsNullOrWhiteSpace(Settings.Default.SensorIdentifier))
            {
                Settings.Default.SensorIdentifier = Guid.NewGuid().ToString();
                Settings.Default.Save();
            }

            _sensor = sensor;
            _sensorApi = sensorApi;

            LastSynced = "(unknown)";
            SensorId = Settings.Default.SensorIdentifier;

            InitializeComponent();
        }
Exemplo n.º 2
0
        public MainForm(ISensor sensor, ISensorApi sensorApi)
        {
            if (string.IsNullOrWhiteSpace(Settings.Default.SensorIdentifier))
            {
                Settings.Default.SensorIdentifier = Guid.NewGuid().ToString();
                Settings.Default.Save();
            }

            _sensor    = sensor;
            _sensorApi = sensorApi;

            LastSynced = "(unknown)";
            SensorId   = Settings.Default.SensorIdentifier;

            InitializeComponent();
        }