Пример #1
0
    private void loadMedicationTime()
    {
        ListItem li = new ListItem("Select MedicationTime...", "0");

        ddlMedicationTime.Items.Add(li);

        List <MedicationTime> medicationTimes = new List <MedicationTime>();

        medicationTimes = MedicationTimeManager.GetAllMedicationTimes();
        foreach (MedicationTime medicationTime in medicationTimes)
        {
            ListItem item = new ListItem(medicationTime.MedicationTimeName.ToString(), medicationTime.MedicationTimeID.ToString());
            ddlMedicationTime.Items.Add(item);
        }
    }
Пример #2
0
 private void showMedicationTimeGrid()
 {
     gvMedicationTime.DataSource = MedicationTimeManager.GetAllMedicationTimes();
     gvMedicationTime.DataBind();
 }