Пример #1
0
        /// <summary>
        /// This method returns the Bet Amount
        /// </summary>
        internal void ShowAmountWagered(double amountWagered)
        {
            // Hide the items in the way
            this.LeftBetPanel.Visible       = false;
            this.BetAmountTextBox.Visible   = false;
            this.ChipsHostControl.Visible   = true;
            this.ChipSelectorButton.Visible = false;
            this.ChipsHostControl.Dock      = DockStyle.Fill;
            this.ChipSelectorButton.Visible = false;

            // Display the text of the label
            this.AmountWageredLabel.Text    = "$" + String.Format("{0:n0}", amountWagered);
            this.AmountWageredLabel.Visible = true;

            // Get the chips
            List <ImageEx> chips = ChipFactory.GetChipImages(amountWagered);

            // If the Table object exists
            if (this.HasTable)
            {
                // If the chips collection exists and has one or more items
                if (ListHelper.HasOneOrMoreItems(chips))
                {
                    // Display the chips
                    this.ChipsHostControl.Chips = chips;
                }

                // Update everything so the controls show
                this.Table.RefreshUI();
            }
        }
Пример #2
0
        public static EntityFactory CreateChain(int playerId)
        {
            var dropletFactory = new DropletFactory();
            var chipFactory    = new ChipFactory();

            dropletFactory.Next = chipFactory;

            return(dropletFactory);
        }
        ///<summary> あとに続くノードを全て追加したノードを返す。 </summary>
        private Node NextAttach(ChipUI chip)
        {
            // Chipインスタンスを作成して、追加
            var instance = ChipFactory.GetInstance(chip.Name);

            if (chip.Name == ChipName.COLOR)
            {
                instance.colorType = chip.nowColor;
            }
            else if (chip.Name == ChipName.SOUND)
            {
                instance.soundType = chip.nowSound;
            }

            Node ret = new Node(instance);

            // nextをnullでうめる
            ret.next.Clear();
            for (int i = 0; i < LimitConnect.Get(chip.Name); i++)
            {
                ret.next.Add(null);
            }

            // nextを全て参照して次に続くNodeを追加
            for (int i = 0; i < LimitConnect.Get(chip.Name); i++)
            {
                // 次を参照して、挿入
                var temp = chip.next_list[i];
                if (temp != null)
                {
                    ret.next[i] = NextAttach(temp);
                }
            }

            return(ret);
        }
Пример #4
0
        public static EntityFactory CreateChain(int playerId)
        {
            var dropletFactory = new DropletFactory();
            var chipFactory = new ChipFactory();

            dropletFactory.Next = chipFactory;

            return dropletFactory;
        }