Exemple #1
0
        private void formStats_Load(object sender, EventArgs e)
        {
            lblDate.Text = System.DateTime.Now.ToString(ModuleGeneric.DATE_FORMAT);
            int year = DateTime.Now.Year;

            lblWeeklyYearListeners.Text = serviceLayer.GetListenersAtYearStart(year).ToString();
            lblListenersToday.Text      = serviceLayer.GetCurrentListenerCount().ToString();
            lblNewListeners.Text        = serviceLayer.GetNewListenersForYear(year).ToString();
            lblLostListeners.Text       = serviceLayer.GetLostListenersForYear(year).ToString();
            lblNetListeners.Text        = serviceLayer.GetNetListenersForYear(year).ToString();
            lblAverageListeners.Text    = serviceLayer.GetAverageListenersForYear(year).ToString();
            lblInactiveWallets.Text     = serviceLayer.GetInactiveWalletNumbers().ToString();
            lblAverageDispatched.Text   = serviceLayer.GetAverageDispatchedWallets(year).ToString();
            lblWalletsDispatched.Text   = serviceLayer.GetWalletsDispatchedForYear(year).ToString();
            lblStoppedWallets.Text      = serviceLayer.GetListenersByStatus(Objects.ListenerStates.PAUSED).Count.ToString();
            lblMemorySticksOnLoad.Text  = serviceLayer.GetMemorySticksOnLoan().ToString();
            lblAverageStopped.Text      = serviceLayer.GetAveragePausedWallets(year).ToString();
            lblDormant.Text             = serviceLayer.Get3MonthInactiveListeners().ToString();
        }