AddValue() public method

public AddValue ( WinLossKind winLossKind ) : void
winLossKind WinLossKind
return void
Exemplo n.º 1
0
        public void SimpleSparkWinLoss()
        {
            var chart = new SparkWinLoss()
            {
                Palette    = 2,
                Caption    = "두산 베어스",
                SubCaption = "올 시즌"
            };

            for (int i = 0; i < 42; i++)
            {
                switch (rnd.Next(0, 3))
                {
                case 0:
                    chart.AddValue(WinLossKind.Win);
                    break;

                case 1:
                    chart.AddValue(WinLossKind.Loss);
                    break;

                default:
                    chart.AddValue(WinLossKind.Draw, true);
                    break;
                }
            }

            ValidateChartXml(chart);
        }
Exemplo n.º 2
0
        public void SimpleSparkWinLoss() {
            var chart = new SparkWinLoss()
                        {
                            Palette = 2,
                            Caption = "두산 베어스",
                            SubCaption = "올 시즌"
                        };

            for(int i = 0; i < 42; i++) {
                switch(rnd.Next(0, 3)) {
                    case 0:
                        chart.AddValue(WinLossKind.Win);
                        break;
                    case 1:
                        chart.AddValue(WinLossKind.Loss);
                        break;
                    default:
                        chart.AddValue(WinLossKind.Draw, true);
                        break;
                }
            }

            ValidateChartXml(chart);
        }
Exemplo n.º 3
0
        private static IChart CreateSparkWinLoss() {
            var chart = new SparkWinLoss
                        {
                            Palette = rnd.Next(1, 6),
                            Caption = "두산 베어스",
                            SubCaption = "올 시즌"
                        };

            for(int i = 0; i < 42; i++) {
                switch(rnd.Next(0, 3)) {
                    case 0:
                        chart.AddValue(WinLossKind.Win);
                        break;
                    case 1:
                        chart.AddValue(WinLossKind.Loss);
                        break;
                    default:
                        chart.AddValue(WinLossKind.Draw, true);
                        break;
                }
            }
            return chart;
        }