Ejemplo n.º 1
0
        // Statistici ...
        private void NrNumeCititori_Click(object sender, EventArgs e)
        {
            var      statistics = new StatisticsRepository();
            DateTime startData  = new DateTime(2018, 2, 4);
            DateTime stopData   = new DateTime(2018, 3, 24);
            var      ctx        = statistics.GetAllReadersByPeriodTime(startData, stopData);

            string content = "Nr de Cititor intr-o perioada de timp\n";

            content += "Nr Cititor: " + ctx.LongCount() + "\n";
            for (int index = 0; index < ctx.LongCount(); index++)
            {
                content += "\tNume Cititor " + (index + 1) + ": " + ctx[index] + "\n";
            }

            MessageBox((IntPtr)0, content, "Message Box", 0);
        }