From a1e1d43a6f29b654c56132b05a2742bae4372a48 Mon Sep 17 00:00:00 2001 From: Eveldee Date: Mon, 22 Apr 2019 17:28:56 +0200 Subject: [PATCH] =?UTF-8?q?=CB=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PlantBox.Client/Forms/Plant/HistoricPage.xaml.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/PlantBox.Client/PlantBox.Client/Forms/Plant/HistoricPage.xaml.cs b/PlantBox.Client/PlantBox.Client/Forms/Plant/HistoricPage.xaml.cs index 2a87f02..1fc5bfa 100644 --- a/PlantBox.Client/PlantBox.Client/Forms/Plant/HistoricPage.xaml.cs +++ b/PlantBox.Client/PlantBox.Client/Forms/Plant/HistoricPage.xaml.cs @@ -101,7 +101,7 @@ namespace PlantBox.Client.Forms.Plant uint count; float step; string labelFormat; - string valueSpecifier; + string valueFormat; switch (viewModel.HistoricDuration.Interval) { @@ -148,15 +148,15 @@ namespace PlantBox.Client.Forms.Plant { case CaptorType.Humidity: values = historicEntries.Humidities; - valueSpecifier = "{0:F1} %"; + valueFormat = "{0:F1} %"; break; case CaptorType.Luminosity: values = historicEntries.Luminosities; - valueSpecifier = "{0:F0} lux"; + valueFormat = "{0:F0} lux"; break; case CaptorType.Temperature: values = historicEntries.Temperatures; - valueSpecifier = "{0:F1} °C"; + valueFormat = "{0:F1} °C"; break; default: throw new InvalidOperationException(); @@ -174,7 +174,7 @@ namespace PlantBox.Client.Forms.Plant entries[index] = new Entry((float)value.Value) { Label = value.Date.ToString(labelFormat), - ValueLabel = string.Format(valueSpecifier, value.Value), + ValueLabel = string.Format(valueFormat, value.Value), Color = colors[index] };