Exemple #1
0
    private void FillDropDownLists()
    {
        HikeBusiness hb = new HikeBusiness();

        List <string> ProvinceList = hb.getProvinces();

        dd_filter_province.Items.Clear();
        dd_init_province.Items.Clear();
        foreach (string p in ProvinceList)
        {
            dd_filter_province.Items.Add(p);
            dd_init_province.Items.Add(p);
        }

        List <string> HikeTypeList = hb.getHikeTypes();

        dd_filter_hiketype.Items.Clear();
        dd_init_hiketype.Items.Clear();
        foreach (string p in HikeTypeList)
        {
            dd_filter_hiketype.Items.Add(p);
            dd_init_hiketype.Items.Add(p);
        }

        List <string> DifficultyLevelList = hb.getDifficultyLevels();

        dd_filter_difficultylevel.Items.Clear();
        dd_init_difficultylevel.Items.Clear();
        foreach (string p in DifficultyLevelList)
        {
            dd_filter_difficultylevel.Items.Add(p);
            dd_init_difficultylevel.Items.Add(p);
        }

        List <string> QualityLevelList = hb.getQualityLevels();

        dd_filter_pricelevel.Items.Clear();
        foreach (string p in QualityLevelList)
        {
            dd_filter_pricelevel.Items.Add(p);
        }

        List <string> PriceLevelList = hb.getPriceLevels();

        dd_filter_qualitylevel.Items.Clear();
        foreach (string p in PriceLevelList)
        {
            dd_filter_qualitylevel.Items.Add(p);
        }
    }
Exemple #2
0
    private void FillDropDownLists()
    {
        HikeBusiness hb = new HikeBusiness();

        List <string> QualityLevelList = hb.getQualityLevels();

        dd_qualitylevel.Items.Clear();
        foreach (string p in QualityLevelList)
        {
            dd_qualitylevel.Items.Add(p);
        }

        List <string> PriceLevelList = hb.getPriceLevels();

        dd_pricelevel.Items.Clear();
        foreach (string p in PriceLevelList)
        {
            dd_pricelevel.Items.Add(p);
        }
    }