Exemplo n.º 1
0
        protected void Page_PreRender(object sender, EventArgs e)
        {
            try
            {
                ActionLogCollection userValues = ActionLog.FindAllOfUserBetweenDates(
                    this.Session.GetCurrentUser(),
                    this.FilterFrom.Text.ToDateTime(),
                    this.FilterUntil.Text.ToDateTime());

                this.TotalDurationLabel.Text    = userValues.TotalDuration.ToString("#");
                this.TotalConsumptionLabel.Text = userValues.TotalConsumption.ToString("#");

                this.ActionRepeater.DataSource = userValues;
                this.ActionRepeater.DataBind();
            }
            catch (Exception ex)
            {
                this.Master.ShowError(ex);
            }
        }