예제 #1
0
 public IndicatorStyle(IndicatorKind indicatorKind, IndicatorShape indicatorShape, Color color, bool behindText = false)
 {
     IndicatorKind  = indicatorKind;
     IndicatorShape = indicatorShape;
     Color          = color;
     BehindText     = behindText;
 }
예제 #2
0
 private void InitBindings()
 {
     CountTextBlock.SetBinding(TextBlock.VisibilityProperty, new Binding(nameof(IsCountVisible))
     {
         Source = this, Mode = BindingMode.OneWay, Converter = new BoolToVisibilityConverter()
     });
     IndicatorShape.SetBinding(Rectangle.FillProperty, new Binding(nameof(OrderType))
     {
         Source = this, Mode = BindingMode.OneWay, Converter = new OrderTypeToBrushConverter()
     });
 }
예제 #3
0
 public virtual void SetIndicatorP2()
 {
     indicatorShapeP2 = new IndicatorShape(currentFallingShapeP2);
     UpdateIndicator();
     UpdateIndicatorP2();
 }
예제 #4
0
 public static IndicatorView IndicatorsShape(this IndicatorView indicator, IndicatorShape shape)
 {
     indicator.IndicatorsShape = shape;
     return(indicator);
 }
예제 #5
0
 public override void SetIndicator()
 {
     indicatorShape = new IndicatorShape(currentFallingShape, true);
     UpdateIndicator();
 }