Example #1
0
    public void BindData()
    {
        _presenter.OnViewLoaded();
        List <DateTime> days = new List <DateTime>();

        if (!StartDateTime.HasValue)
        {
            StartDateTime = DateTime.Now;
        }
        EndDateTime = StartDateTime.Value.AddDays(7);
        for (DateTime date = StartDateTime.Value; date.CompareTo(EndDateTime.Value) < 0; date = date.AddDays(1))
        {
            days.Add(date);
        }
        AppointmentDataSource.DataSource = days;
        AppointmentDataSource.DataBind();
        WeekRepeater.DataBind();
    }
Example #2
0
 protected void Page_LoadComplete(object sender, EventArgs e)
 {
     AppointmentDataSource.DataBind();
 }