Exemplo n.º 1
0
        public void ReportByCarModel()
        {
            clsCarsCollection AllCars          = new clsCarsCollection();
            clsCarsCollection FilteredCarModel = new clsCarsCollection();

            FilteredCarModel.ReportByCarModel("");
            Assert.AreEqual(AllCars.Count, FilteredCarModel.Count);
        }
Exemplo n.º 2
0
    protected void btnApplyCarModel_Click(object sender, EventArgs e)
    {
        string            Filter = txtFilterCarMake.Text;
        clsCarsCollection Cars   = new clsCarsCollection();

        Cars.ReportByCarModel(Filter);
        lstCarList.Items.Clear();
        lstCarList.DataSource     = Cars.CarList;
        lstCarList.DataValueField = "CarNo";
        lstCarList.DataTextField  = "CarMake";
        lstCarList.DataBind();
    }