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(); }