예제 #1
0
        private void buttonVolver_Click(object sender, EventArgs e)
        {
            DialogResult boton = MessageBox.Show("Si vuelve se borraran todos los datos ingresados", "Alerta", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning);

            if (boton == DialogResult.OK)
            {
                if (Session.isNull())
                {
                    Registro.Registro a = new Registro.Registro();
                    a.Show();
                    this.cleanInputs();
                    this.Hide();
                }
                else
                {
                    AbmCliente a = new AbmCliente();
                    a.Show();
                    this.cleanInputs();
                    this.Hide();
                }
            }
            else
            {
                //se deberia quedar en esta pantalla
            }
        }
예제 #2
0
 public AltaCliente(AbmCliente previousForm)
 {
     this.previousForm = previousForm;
     InitializeComponent();
 }
 public ModificarCliente(AbmCliente previousForm)
 {
     this.previousForm = previousForm;
     InitializeComponent();
 }