|
@@ -30,15 +30,15 @@ namespace Aitex.Core.UI.Control
|
|
|
}
|
|
|
|
|
|
public static readonly DependencyProperty IsFlowingProperty = DependencyProperty.Register(
|
|
|
- "IsFlowing", typeof (bool), typeof (FlowPipeV2),
|
|
|
+ "IsFlowing", typeof(bool), typeof(FlowPipeV2),
|
|
|
new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
|
|
|
|
|
|
public static readonly DependencyProperty IsSlowFlowingProperty = DependencyProperty.Register(
|
|
|
- "IsSlowFlowing", typeof (bool), typeof (FlowPipeV2),
|
|
|
+ "IsSlowFlowing", typeof(bool), typeof(FlowPipeV2),
|
|
|
new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
|
|
|
|
|
|
public static readonly DependencyProperty ValveOpenOrientationProperty = DependencyProperty.Register(
|
|
|
- "FlowOrientation", typeof (LineOrientation), typeof (FlowPipeV2),
|
|
|
+ "FlowOrientation", typeof(LineOrientation), typeof(FlowPipeV2),
|
|
|
new FrameworkPropertyMetadata(LineOrientation.Horizontal, FrameworkPropertyMetadataOptions.AffectsRender));
|
|
|
|
|
|
public static readonly DependencyProperty IsReverseProperty = DependencyProperty.Register(
|
|
@@ -46,12 +46,12 @@ namespace Aitex.Core.UI.Control
|
|
|
new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
|
|
|
|
|
|
public static readonly DependencyProperty GasTypeProperty = DependencyProperty.Register(
|
|
|
- "GasType", typeof (GasTypeEnum), typeof (FlowPipeV2),
|
|
|
+ "GasType", typeof(GasTypeEnum), typeof(FlowPipeV2),
|
|
|
new FrameworkPropertyMetadata(GasTypeEnum.CarrierGas, FrameworkPropertyMetadataOptions.AffectsRender));
|
|
|
|
|
|
public LineOrientation FlowOrientation
|
|
|
{
|
|
|
- get { return (LineOrientation) GetValue(ValveOpenOrientationProperty); }
|
|
|
+ get { return (LineOrientation)GetValue(ValveOpenOrientationProperty); }
|
|
|
set { SetValue(ValveOpenOrientationProperty, value); }
|
|
|
}
|
|
|
|
|
@@ -62,19 +62,19 @@ namespace Aitex.Core.UI.Control
|
|
|
/// </summary>
|
|
|
public bool IsFlowing
|
|
|
{
|
|
|
- get { return (bool) this.GetValue(IsFlowingProperty); }
|
|
|
+ get { return (bool)this.GetValue(IsFlowingProperty); }
|
|
|
set { this.SetValue(IsFlowingProperty, value); }
|
|
|
}
|
|
|
|
|
|
public bool IsSlowFlowing
|
|
|
{
|
|
|
- get { return (bool) this.GetValue(IsSlowFlowingProperty); }
|
|
|
+ get { return (bool)this.GetValue(IsSlowFlowingProperty); }
|
|
|
set { this.SetValue(IsSlowFlowingProperty, value); }
|
|
|
}
|
|
|
|
|
|
public GasTypeEnum GasType
|
|
|
{
|
|
|
- get { return (GasTypeEnum) this.GetValue(GasTypeProperty); }
|
|
|
+ get { return (GasTypeEnum)this.GetValue(GasTypeProperty); }
|
|
|
set { this.SetValue(GasTypeProperty, value); }
|
|
|
}
|
|
|
|
|
@@ -112,17 +112,17 @@ namespace Aitex.Core.UI.Control
|
|
|
{
|
|
|
this.Visibility = IsFlowing ? Visibility.Visible : Visibility.Hidden;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
switch (GasType)
|
|
|
{
|
|
|
- //case GasTypeEnum.Fast:
|
|
|
- // _pathStrokeBrush = CarrierGasBrush;
|
|
|
- // path1.StrokeThickness = 5;
|
|
|
- // break;
|
|
|
- //case GasTypeEnum.Slow:
|
|
|
- // _pathStrokeBrush = CarrierGasBrush;
|
|
|
- // path1.StrokeThickness = 3;
|
|
|
- // break;
|
|
|
+ //case GasTypeEnum.Fast:
|
|
|
+ // _pathStrokeBrush = CarrierGasBrush;
|
|
|
+ // path1.StrokeThickness = 5;
|
|
|
+ // break;
|
|
|
+ //case GasTypeEnum.Slow:
|
|
|
+ // _pathStrokeBrush = CarrierGasBrush;
|
|
|
+ // path1.StrokeThickness = 3;
|
|
|
+ // break;
|
|
|
case GasTypeEnum.CarrierGas:
|
|
|
_pathStrokeBrush = CarrierGasBrush;
|
|
|
break;
|
|
@@ -143,7 +143,7 @@ namespace Aitex.Core.UI.Control
|
|
|
if (IsSlowFlowing && !IsFlowing)
|
|
|
path1.StrokeThickness = 3;
|
|
|
else if (IsFlowing)
|
|
|
- path1.StrokeThickness = 15;
|
|
|
+ path1.StrokeThickness = 5;
|
|
|
}
|
|
|
}
|
|
|
}
|