private void Button1_Click(object sender, EventArgs e)
        {
            Form shoppingCart = new Restaurante(_name, _Address, _Phone, _Card);


            shoppingCart.Show();
            this.Close();
        }
Esempio n. 2
0
        private void Button1_Click(object sender, EventArgs e)
        {
            string _nombre, _direccion;
            int    _celular, _tarjeta;

            _nombre    = this.textBox1.Text;
            _direccion = this.textBox2.Text;
            _celular   = Int32.Parse(this.textBox3.Text = "0");
            _tarjeta   = Int32.Parse(this.textBox4.Text = "0");

            Form shoppingCart = new Restaurante(_nombre, _direccion, _celular, _tarjeta);


            shoppingCart.Show();
        }