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 } }
public AltaCliente(AbmCliente previousForm) { this.previousForm = previousForm; InitializeComponent(); }
public ModificarCliente(AbmCliente previousForm) { this.previousForm = previousForm; InitializeComponent(); }