public void AddToHumidity() { Log.Logger.Information("ADDED To 3 Graphs DEVICE : {0} HumidityDefault {1}, HumidityMid {2}, HumidityProcess {3}", ActiveDevice?.IPAddress, RoomInfo.Humidity, RoomInfo.HumidityMiddle, RoomInfo.HumidityProcess); GraphLineModelForDefault.GetLast().Points.Add(new DataPoint(DateTimeAxis.ToDouble(RoomInfo.Date), RoomInfo.Humidity)); GraphLineModelForMiddle.GetLast().Points.Add(new DataPoint(DateTimeAxis.ToDouble(RoomInfo.Date), RoomInfo.HumidityMiddle)); GraphLineModelForProcess.GetLast().Points.Add(new DataPoint(DateTimeAxis.ToDouble(RoomInfo.Date), RoomInfo.HumidityProcess)); }
private void LineSeriesVisibilityChange(string property, bool value) { if (GraphLineModelForDefault.Series != null) { if (property == nameof(TemperatureLineVisibilityForDefault)) { var t = GraphLineModelForDefault.GetFirst(); if (value != t.IsVisible) { t.IsVisible = value; } } if (property == nameof(HumidityLineVisibilityForDefault)) { var h = GraphLineModelForDefault.GetLast(); if (value != h.IsVisible) { h.IsVisible = value; } } } if (GraphLineModelForMiddle.Series != null) { if (property == nameof(TemperatureLineVisibilityForMiddle)) { var t = GraphLineModelForMiddle.GetFirst(); if (value != t.IsVisible) { t.IsVisible = value; } } if (property == nameof(HumidityLineVisibilityForMiddle)) { var h = GraphLineModelForMiddle.GetLast(); if (value != h.IsVisible) { h.IsVisible = value; } } } if (GraphLineModelForProcessForNord.Series != null) { if (property == nameof(TemperatureLineVisibilityForNord)) { var t = GraphLineModelForProcessForNord.GetFirst(); if (value != t.IsVisible) { t.IsVisible = value; } } if (property == nameof(HumidityLineVisibilityForNord)) { var h = GraphLineModelForProcessForNord.GetLast(); if (value != h.IsVisible) { h.IsVisible = value; } } } if (GraphLineModelForProcess.Series != null) { if (property == nameof(TemperatureLineVisibilityForProcess)) { var t = GraphLineModelForProcess.GetFirst(); if (value != t.IsVisible) { t.IsVisible = value; } } if (property == nameof(HumidityLineVisibilityForProcess)) { var h = GraphLineModelForProcess.GetLast(); if (value != h.IsVisible) { h.IsVisible = value; } } } }