Example #1
0
    private void SetupMessagges()
    {
        SuccessMessagePanel.Visible = false;
        ErrorMessagePanel.Visible   = false;

        string claimPrize = AppSettings.CaptchaClaim.CaptchaClaimPrize.ToString();

        claimPrize = Money.CutEndingZeros(claimPrize);

        if (AppSettings.CaptchaClaim.CaptchaClaimPrizeType == BalanceType.PointsBalance)
        {
            claimPrize += " " + AppSettings.PointsName;
        }
        else
        {
            claimPrize = Money.AddCurrencySign(claimPrize);
        }

        CoinhiveClaimDescription.Text = String.Format(U6013.CAPTCHACLAINDESCRIPTION, claimPrize);
        SuccessMessageLabel.Text      = String.Format(U6013.CAPTCHACLAIMSUCCESS, claimPrize);
        ErrorMessageLabel.Text        = U6013.CAPTCHACLAIMFAILURE;
    }
Example #2
0
    protected void PayoutProofsGridView_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            PaymentProof proof = new PaymentProof(Convert.ToInt32(e.Row.Cells[0].Text));
            //Country
            int    userId = Convert.ToInt32(e.Row.Cells[2].Text);
            Member User   = new Member(userId);
            e.Row.Cells[2].Text = "<img src=\"Images/Flags/" + User.CountryCode.ToLower() + ".png\" class=\"imagemiddle\" /> " + User.Country;

            //Type
            PaymentType type = (PaymentType)Convert.ToInt32(e.Row.Cells[3].Text);
            if (type == PaymentType.Instant)
            {
                e.Row.Cells[3].Text = L1.INSTANT;
            }
            else if (type == PaymentType.Manual)
            {
                e.Row.Cells[3].Text = L1.MANUAL;
            }

            //Money
            e.Row.Cells[4].Text = Money.AddCurrencySign(e.Row.Cells[4].Text);

            //Via
            PaymentProcessor proc = (PaymentProcessor)Convert.ToInt32(e.Row.Cells[5].Text);

            if (proc == PaymentProcessor.CustomPayoutProcessor)
            {
                e.Row.Cells[5].Text = proof.ProcessorName;
            }
            else
            {
                e.Row.Cells[5].Text = proc.ToString();
            }
        }
    }