Example #1
0
    private void loadADLDateTime()
    {
        ListItem li = new ListItem("Select ADLDateTime...", "0");

        ddlADLDateTime.Items.Add(li);

        List <ADLDateTime> aDLDateTimes = new List <ADLDateTime>();

        aDLDateTimes = ADLDateTimeManager.GetAllADLDateTimes();
        foreach (ADLDateTime aDLDateTime in aDLDateTimes)
        {
            ListItem item = new ListItem(aDLDateTime.ADLDateTimeName.ToString(), aDLDateTime.ADLDateTimeID.ToString());
            ddlADLDateTime.Items.Add(item);
        }
    }
Example #2
0
 private void showADLDateTimeGrid()
 {
     gvADLDateTime.DataSource = ADLDateTimeManager.GetAllADLDateTimes();
     gvADLDateTime.DataBind();
 }