private void AllBut_Click(object sender, EventArgs e) { carShowroom1.FindAllthebest(CurentBuyer); carBindingSource.ResetBindings(false); AllBut.BackColor = Color.LimeGreen; ModelBut.BackColor = Color.PaleGreen; PriceBut.BackColor = Color.PaleGreen; }
public FindBest(Buyer curent) { InitializeComponent(); carShowroom1 = new CarShowroom(); carShowroom1.Load(); CurentBuyer = curent; carShowroom1.FindAllthebest(CurentBuyer); carBindingSource.DataSource = carShowroom1.ShoppingCart; }