public void Create()
        {
            PickRepository repo = new PickRepository();
            Pick           pick = PickBalls.Create();

            pick = repo.Create(pick);
            repo.ToFile(pick);
        }
Ejemplo n.º 2
0
        public static Pick QuickPickLickitySplit(string name)
        {
            List <int> balls = new List <int>();

            balls.Add(QuickPick.RandomBall());
            PickBalls.QuickpickUntilRight(balls, QuickPick.RandomBall() + 100, 1);
            PickBalls.QuickpickUntilRight(balls, QuickPick.RandomBall() + 100, 2);
            PickBalls.QuickpickUntilRight(balls, QuickPick.RandomBall() + 100, 3);
            PickBalls.QuickpickUntilRight(balls, QuickPick.RandomBall() + 100, 4);

            Pick pick = new Pick();

            pick.Name       = name;
            pick.FirstBall  = balls[0];
            pick.SecondBall = balls[1];
            pick.ThirdBall  = balls[2];
            pick.FourthBall = balls[3];
            pick.FifthBall  = balls[4];
            pick.PowerBall  = QuickPick.RandomPowerball();

            return(pick);
        }