private void AllCars_but_Click(object sender, EventArgs e) { var AllCar = new BuyerAllCars(); this.Hide(); AllCar.ShowDialog(); this.Visible = true; }
private void AllCarsBut_Click(object sender, EventArgs e) { var f = new BuyerAllCars(CurentBuyer); Hide(); if (f.ShowDialog() != DialogResult.Yes) { Close(); return; } Visible = true; }