public void InBet(string _Numbers, double _X)
 {
     _TextKolBet = Convert.ToDouble(TextKolBet);
     Score      -= _TextKolBet;
     BetListItems.Add(new BetItemsViewModel {
         BET = _TextKolBet, X = _X, Numbers = _Numbers
     });
     TextKolBet = "0";
     OnPropertyChanged(nameof(TextKolBet));
     OnPropertyChanged(nameof(Score));
 }
        public void Bets_Play(ObservableCollection <BetItemsViewModel> List)
        {
            Random rnd = new Random();

            Rnd = Convert.ToString(rnd.Next(36));

            for (int i = 0; i < List.Count; i++)
            {
                int[] Nmbrs = List[i].Numbers.Split(',').Select(s => Convert.ToInt32(s)).ToArray();
                for (int j = 0; j < Nmbrs.Length; j++)
                {
                    if (Nmbrs[j] == Convert.ToInt32(Rnd))
                    {
                        Score += (List[i].BET * List[i].X);
                    }
                }
            }
            OnPropertyChanged(nameof(Rnd));
            OnPropertyChanged(nameof(Score));
            BetListItems.Clear();
            OnPropertyChanged(nameof(TextKolBet));
        }