Esempio n. 1
0
        public void ReportByCarMake()
        {
            clsCarsCollection AllCars         = new clsCarsCollection();
            clsCarsCollection FilteredCarMake = new clsCarsCollection();

            FilteredCarMake.ReportByCarMake("");
            Assert.AreEqual(AllCars.Count, FilteredCarMake.Count);
        }
Esempio n. 2
0
    protected void btnApplyCarMake_Click(object sender, EventArgs e)
    {
        string            Filter = txtFilterCarMake.Text;
        clsCarsCollection Cars   = new clsCarsCollection();

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