From de4a77c1ab1583821a766fede9fa07644256c2e2 Mon Sep 17 00:00:00 2001 From: hubera01 Date: Mon, 25 Apr 2016 11:25:37 +0200 Subject: [PATCH] Minor simplification References #21 --- Lawo.EmberPlusSharp/Model/Element.cs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Lawo.EmberPlusSharp/Model/Element.cs b/Lawo.EmberPlusSharp/Model/Element.cs index 7c37d3b7..2016d689 100644 --- a/Lawo.EmberPlusSharp/Model/Element.cs +++ b/Lawo.EmberPlusSharp/Model/Element.cs @@ -27,7 +27,6 @@ public abstract class Element : NotifyPropertyChanged, IElement private string identifier; private string description; private bool isOnline = true; - private IsOnlineChangeStatus isOnlineChangedStatus; private bool hasChanges; //////////////////////////////////////////////////////////////////////////////////////////////////////////////// @@ -78,11 +77,11 @@ internal set // the case when IsOnline is changed twice without being observed between the changes. if (this.IsOnlineChangeStatus == IsOnlineChangeStatus.Unchanged) { - this.isOnlineChangedStatus = IsOnlineChangeStatus.Changed; + this.IsOnlineChangeStatus = IsOnlineChangeStatus.Changed; } - else if (this.isOnlineChangedStatus == IsOnlineChangeStatus.Changed) + else if (this.IsOnlineChangeStatus == IsOnlineChangeStatus.Changed) { - this.isOnlineChangedStatus = IsOnlineChangeStatus.Unchanged; + this.IsOnlineChangeStatus = IsOnlineChangeStatus.Unchanged; } } } @@ -116,11 +115,7 @@ internal int[] NumberPath get { return this.numberPath; } } - internal IsOnlineChangeStatus IsOnlineChangeStatus - { - get { return this.isOnlineChangedStatus; } - set { this.isOnlineChangedStatus = value; } - } + internal IsOnlineChangeStatus IsOnlineChangeStatus { get; set; } internal bool HasChanges {