private void cboPrograms_SelectedIndexChanged(object sender, EventArgs e)
        {
            lstPrograms.Items.Clear();
            BLL.Program prog     = new BLL.Program();
            ItemProgram progItem = new ItemProgram();

            if (cboPrograms.SelectedValue != null)
            {
                prog.GetSubProgramsByParentId(Convert.ToInt32(cboPrograms.SelectedValue));
            }
            else
            {
                prog.GetSubPrograms();
            }
            foreach (DataRowView dv in prog.DefaultView)
            {
                bool check = false;
                check = progItem.CheckIfExists(itemId, Convert.ToInt32(dv["ID"]));
                lstPrograms.Items.Add(dv["Name"], check);
            }
        }
        private void cboPrograms_SelectedIndexChanged(object sender, EventArgs e)
        {
            lstPrograms.Items.Clear();
                BLL.Program prog = new BLL.Program();
                ItemProgram progItem = new ItemProgram();
            if (cboPrograms.SelectedValue != null)
            {

                prog.GetSubProgramsByParentId(Convert.ToInt32(cboPrograms.SelectedValue));

            }
            else
            {
                prog.GetSubPrograms();
            }
            foreach (DataRowView dv in prog.DefaultView)
            {
                bool check = false;
                check = progItem.CheckIfExists(itemId, Convert.ToInt32(dv["ID"]));
                lstPrograms.Items.Add(dv["Name"],check);
            }
        }