コード例 #1
0
ファイル: RewardDash.ascx.cs プロジェクト: maziesmith/HAC
        private void initDash()
        {
            AdministrationDAC dac = new AdministrationDAC();

            int activerew   = dac.RetrieveActiveRewards();
            int inactiverew = dac.RetrieveInactiveRewards();


            lblActiveRewards.Text = activerew.ToString();


            int rewardsexp = dac.RetrieveExpiredRewards();


            lblTotalRewards.Text = dac.RetrieveRewardsExplorerCount().ToString();
            lblSponsors.Text     = "0";
            try
            {
                lblVisits.Text = VisitsNumber();
            }
            catch (Exception ex)
            {
                lblVisits.Text = "ERR";
                lblerror.Text  = ex.Message;
            }

            lblredempt.Text = dac.RetrieveTotalRedempted().ToString();
            lblnever.Text   = dac.Retrieveneverred().ToString();
        }