public bool SaveSettings() { if (ValidateSettings()) { ApplySettingsToSensors(); this.InitHubConnection(); return true; } else { return false; } }