Exemplo n.º 1
0
        private void BindGetStrip()
        {
            var player = PlayerStrip.GetPlayerInfo(UserID);

            if (ConfigGlobal.GoogleAdvActive && player != null)
            {
                cbGoogleAdvActive.Visible = true;
                cbGoogleAdvActive.Checked = player.IsActive;
            }
            else
            {
                cbGoogleAdvActive.Visible = false;
            }

            var totalCount = PlayerStrip.GetUserBingoPlayCount(UserID);
            var getStripRP = 0;

            if (totalCount > 0)
            {
                getStripRP = Convert.ToInt16(PlayerStrip.GetUserBingoGainCount(userid) * 100 / totalCount);
            }

            lblGetStripUserInfo.Text =
                $"<em>{UserName.Trim()}</em>今日获得/尝试:<em>{PlayerStrip.GetUserBingoGainCountToday(UserID)}({PlayerStrip.GetUserBingoPlayCountToday(UserID)})</em> | 获得率:<em>{getStripRP}%</em> | 库存:<em>{PlayerStrip.GetClubRemainingEquipment(ClubID)}/{ConfigGlobal.DailyClubEquipmentCount}</em>";

            if (ConfigGlobal.GoogleAdvActive && player != null && player.IsActive)
            {
                //ctrlGoogleAdv.DisplayAdv = string.Empty;
                DisplaySwf  = "none";
                IsGoogleAdv = "true";
                lblGetStripUserInfo.Text += " | <em title=\"抽取与获取装备均免费\">打工模式</em>";
            }
            else
            {
                //ctrlGoogleAdv.DisplayAdv = "none";
                DisplaySwf  = string.Empty;
                IsGoogleAdv = "false";
                lblGetStripUserInfo.Text +=
                    $" | 每次抽取:<em title=\"枪手币\">{ConfigGlobal.BingoCost}</em> | 每件获得:<em title=\"枪手币\">{ConfigGlobal.BingoGetCost}</em>";
            }
        }