Exemplo n.º 1
0
        private void AllCars_but_Click(object sender, EventArgs e)
        {
            var AllCar = new BuyerAllCars();

            this.Hide();
            AllCar.ShowDialog();
            this.Visible = true;
        }
Exemplo n.º 2
0
        private void AllCarsBut_Click(object sender, EventArgs e)
        {
            var f = new BuyerAllCars(CurentBuyer);

            Hide();
            if (f.ShowDialog() != DialogResult.Yes)
            {
                Close();
                return;
            }
            Visible = true;
        }