private void showList()
        {
            Lottery data = user.MyLotto[user.MyLotto.Count - 1];

            for (int i = 0; i < 6; i++)
            {
            }
            myCoin.Text = user.MyMoney.ToString();
        }
 public bool buyLottery(int n)
 {
     if (myMoney < (n * 1000))   //돈이 없는 경우 false 반환
     {
         return(false);
     }
     for (int i = 0; i < n; i++)
     {
         myMoney -= 1000;
         Lottery lottery = new Lottery();
         myLotto.Add(lottery);
     }
     return(true);
 }
 public LotteryGame()
 {
     lottery = new Lottery();
 }