Skip to content

Commit

Permalink
Minor simplification
Browse files Browse the repository at this point in the history
References #21
  • Loading branch information
andreashuber-lawo committed Apr 25, 2016
1 parent 7929fe3 commit de4a77c
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions Lawo.EmberPlusSharp/Model/Element.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -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;
}
}
}
Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit de4a77c

Please sign in to comment.