This commit is contained in:
@@ -6,7 +6,7 @@ namespace PamhagenSysCtrl.Helpers.Pipeline {
|
||||
|
||||
public override string Label { get; }
|
||||
|
||||
public ExternalValve(string label, double x, double y, int orientation, Func<bool> cbOpen) :
|
||||
public ExternalValve(string label, double x, double y, int orientation, Func<bool?> cbOpen) :
|
||||
base(x, y, orientation, cbOpen) {
|
||||
Label = label;
|
||||
}
|
||||
@@ -17,7 +17,7 @@ namespace PamhagenSysCtrl.Helpers.Pipeline {
|
||||
!IsOpen ? PamhagenBrushes.Red :
|
||||
IsOpen ? PamhagenBrushes.Green :
|
||||
Highlight ?? Brushes.DarkGray;
|
||||
if (IsOpen) {
|
||||
if (!IsClosed) {
|
||||
_topLine?.Points[1] = _middlePoints.Open.Top;
|
||||
_bottomLine?.Points[1] = _middlePoints.Open.Bottom;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user