private void PopulateTelemetryLevels() { InvokeOnUIThread(() => { TelemetryLevelCollection.Clear(); // Full telemetry TelemetryLevelCollection.Add(new TelemetryLevelDisplay { Level = DevicePortalUtil.FullTelemetryValue, Icon = "\uF4DC", Title = Common.GetLocalizedText("FullTelemetryTitle/Text"), Description = Common.GetLocalizedText("FullTelemetryDescription/Text"), }); // Basic telemetry TelemetryLevelCollection.Add(new TelemetryLevelDisplay { Level = DevicePortalUtil.BasicTelemetryValue, Icon = "\uE9D9", Title = Common.GetLocalizedText("BasicTelemetryTitle/Text"), Description = Common.GetLocalizedText("BasicTelemetryDescription/Text"), }); }); }
private void RevertToPreviousLevel() { SelectedItem = TelemetryLevelCollection.FirstOrDefault(x => x.Level == _previousLevel); }