Esempio n. 1
0
        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"),
                });
            });
        }
Esempio n. 2
0
 private void RevertToPreviousLevel()
 {
     SelectedItem = TelemetryLevelCollection.FirstOrDefault(x => x.Level == _previousLevel);
 }