Example #1
0
        /// <summary>
        /// цветовая схема, если null - берется из VisualSettings
        /// </summary>

        /*public Color? CustomColorFillUp { get; set; }
         * public Color? CustomColorFillDn { get; set; }
         * public Color? CustomColorFillEmpty { get; set; }
         * public Color? CustomColorOutlineUp { get; set; }
         * public Color? CustomColorOutlineDn { get; set; }*/

        internal void CopyFrom(StockSeries stockSeries)
        {
            if (stockSeries == null)
            {
                return;
            }
            Owner               = stockSeries.Owner;
            Name                = stockSeries.Name;
            BackColor           = stockSeries.BackColor;
            ForeColor           = stockSeries.ForeColor;
            LineWidth           = stockSeries.LineWidth;
            NumberDecimalDigits = stockSeries.NumberDecimalDigits;
            upFillColor         = stockSeries.upFillColor;
            upLineColor         = stockSeries.upLineColor;
            downFillColor       = stockSeries.downFillColor;
            downLineColor       = stockSeries.downLineColor;
            BarNeutralColor     = stockSeries.BarNeutralColor;
            data                = stockSeries.Data;
        }
Example #2
0
 public CandleRange(StockSeries _stockSeries)
 {
     stockSeries = _stockSeries;
 }
Example #3
0
 /// <summary>
 /// цветовая схема, если null - берется из VisualSettings
 /// </summary>
 /*public Color? CustomColorFillUp { get; set; }
 public Color? CustomColorFillDn { get; set; }
 public Color? CustomColorFillEmpty { get; set; }
 public Color? CustomColorOutlineUp { get; set; }
 public Color? CustomColorOutlineDn { get; set; }*/
 internal void CopyFrom(StockSeries stockSeries)
 {
     if (stockSeries == null) return;
     Owner = stockSeries.Owner;
     Name = stockSeries.Name;
     BackColor = stockSeries.BackColor;
     ForeColor = stockSeries.ForeColor;
     LineWidth = stockSeries.LineWidth;
     NumberDecimalDigits = stockSeries.NumberDecimalDigits;
     upFillColor = stockSeries.upFillColor;
     upLineColor = stockSeries.upLineColor;
     downFillColor = stockSeries.downFillColor;
     downLineColor = stockSeries.downLineColor;
     BarNeutralColor = stockSeries.BarNeutralColor;
     data = stockSeries.Data;
 }