Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var agenda = new JITAD.UserStats().GetAgenda();

            rpAgenda.DataSource = agenda;
            rpAgenda.DataBind();
        }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            JITAD.UserStats stats    = new JITAD.UserStats();
            var             messages = stats.GetMessages();

            rpMssg.DataSource = messages;
            rpMssg.DataBind();
        }
Ejemplo n.º 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            JITAD.UserStats stats   = new JITAD.UserStats();
            var             users   = stats.GetUsers();
            var             schools = stats.GetSchools();

            foreach (var u in users)
            {
                UserArrived us = new UserArrived();
                us.Name    = u.Name;
                us.Surname = u.Surname;
                us.Login   = u.UserName;
                us.Time    = u.ArrivedAtEvent;
                us.Arrived = u.ArrivedAtEvent != DateTime.MinValue;
                us.School  = schools[u.SchoolId];
                usr.Add(us);
            }
            if (!Page.IsPostBack)
            {
                rpArr.DataSource = usr;
                rpArr.DataBind();
            }
        }
Ejemplo n.º 4
0
 public static bool SendMessage(string email, string title, string mssg)
 {
     JITAD.UserStats stats = new JITAD.UserStats();
     stats.SendMessage(title, email, mssg);
     return(true);
 }