public void Copy(TimeVariable <T> other, bool copyName = false)
    {
        if (copyName)
        {
            CurrentName = other.CurrentName;
            HistoryName = other.HistoryName;
        }

        History = other.History;
        Current = other.Current;
    }
Ejemplo n.º 2
0
        public void DrawHorizontalBenchmarks()
        {
            var xValues = new List <int>(2)
            {
                0, TimeVariable.Max()
            };
            var dashStyle = new DoubleCollection()
            {
                1, 8
            };

            foreach (EthicsScale e in Enum.GetValues(typeof(EthicsScale)))
            {
                var theY    = (int)e * Relationship.SCALE_FOR_GAPS_BETWEEN_TRUST_LEVELS;
                var yValues = new List <int>(2)
                {
                    theY, theY
                };

                DrawPolyline(xValues, yValues, 0.5, Brushes.AntiqueWhite, dashStyle);
            }
        }