private void ResetVisualsForeground()
 {
     ForegroundIndLayer.ClearVisuals();
     foreach (var ind in ForegroundIndicators)
         ForegroundIndLayer.AddVisual(ind.IndicatorVisual);
     ResetPricesTimes();
 }
 private void ResetPricesTimes()
 {
     PricesCanvas.ClearVisuals(); 
     TimesCanvas.ClearVisuals();
     foreach (var ind in BackgroundIndicators)
     {
         PricesCanvas.AddVisual(ind.PriceVisual);
         TimesCanvas.AddVisual(ind.TimeVisual);
     }
     foreach (var ind in ForegroundIndicators)
     {
         PricesCanvas.AddVisual(ind.PriceVisual);
         TimesCanvas.AddVisual(ind.TimeVisual);
     }
 }
Beispiel #3
0
 private protected override void Destroy()
 {
     PrototypeCanvas.ClearVisuals();
     PrototypePriceCanvas.ClearVisuals();
     PrototypeTimeCanvas.ClearVisuals();
 }