Example #1
0
 public Blind(ulong small, ulong big, Tournament selectTour = null)
 {
     Small = small;
     Big = big;
     Ante = 0;
     BlindTour = selectTour;
 }
Example #2
0
        private void item_tap(object selectTour)
        {
            if (_selectedItem == null)return;
            SelectedItem = null;

            _selectTour = (Tournament) selectTour;
            AddRemove = _selectTour.IsFavorites ? AppResources.RemoveFromFavorites : AppResources.AddToFavorites;
            _testContextMenu.IsOpen = true;
        }
Example #3
0
 public Prize(Tournament tour, double priz)
 {
     PrizeTour = tour;
     Priz = priz;
 }
Example #4
0
        // public string 

        /// <summary>
        /// Возвращает список из 20 блайндов с заданным начальным блайндом и id соот. ему турнира
        /// </summary>
        /// <param name="index"></param>
        /// <param name="selectTour"></param>
        /// <returns></returns>
        public static Collection<IBlind> GetBlinds(int index, Tournament selectTour)
        {
            var list = new ObservableCollection<IBlind>();

            if (index >= 0 && index < 4)
            {
                for (var i = index; i < 4; i++)
                    list.Add(new Blind(Begin[i].Small, Begin[i].Big, selectTour));

                index = 4;
            }

            var n = 3 - list.Count;
            list.Add(new Blind(Begin[index].Small, Begin[index].Big, selectTour));
            index++;

            for (var i = 0; i < n; i++)
            {
                list.Add(new Blind(Begin[index - 4].Small * 10, Begin[index - 4].Big * 10, selectTour));
                index++;
            }

            for (var i = list.Count - 1; i < 19; i++)
                list.Add(new Blind(list[i - 3].Small * 10, list[i - 3].Big * 10, selectTour));

            return list;
        }
Example #5
0
 public Participant(Player player, Tournament tour)
 {
     ParticipantPlayer = player;
     ParticipantTour = tour; 
 }