Пример #1
0
        private void button_Save_Click(object sender, EventArgs e)
        {
            if (!Check_Reserva())
            {
                return;
            }

            if (comboBox_FormaDePago.Text.Equals(String.Empty))
            {
                MessageBox.Show("Por favor seleccione una forma de pago.",
                                "Forma de Pago Faltante",
                                MessageBoxButtons.OK,
                                MessageBoxIcon.Hand
                                );

                return;
            }


            if (comboBox_FormaDePago.SelectedIndex == 0)
            {
                Facturar();
            }
            else
            {
                TarjetaCredito_Form creditCardForm = new TarjetaCredito_Form(this);
                creditCardForm.Show();
            }
        }
Пример #2
0
        private void button_Save_Click(object sender, EventArgs e)
        {
            if (!Check_Reserva())
                return;

            if (comboBox_FormaDePago.Text.Equals(String.Empty))
            {
                MessageBox.Show("Por favor seleccione una forma de pago.",
                                "Forma de Pago Faltante",
                                 MessageBoxButtons.OK,
                                 MessageBoxIcon.Hand
                               );
                
                return;
            }
                

            if (comboBox_FormaDePago.SelectedIndex == 0)
                Facturar();
            else
            {
                TarjetaCredito_Form creditCardForm = new TarjetaCredito_Form(this);
                creditCardForm.Show();
            }
        }