private void button2_Click(object sender, EventArgs e) { this.Close(); Form listarSocio = new ListarClientes(); listarSocio.Show(); }
private void button1_Click(object sender, EventArgs e) { try { GestorCliente.ModificarCliente(textBox1.Text, textBox2.Text, Convert.ToInt32(textBox3.Text), dateTimePicker1.Value.Date, dateTimePicker2.Value.Date, (float)Convert.ToDouble(textBox4.Text), (float)Convert.ToDouble(textBox5.Text), textBox6.Text, textBox7.Text, textBox8.Text, textBox10.Text, textBox9.Text); MessageBox.Show("Modificación realizada con exito"); this.Close(); Form listarSocio = new ListarClientes(); listarSocio.Show(); } catch (Exception error) { MessageBox.Show(error.Message); } /* if (MessageBox.Show("Estas seguro de eliminar este registro ?”, “Eliminar registro", MessageBoxButtons.YesNo.ToString()) == DialogResult.Yes) * { * MessageBox.Show("Registro eliminado"); * }*/ }
private void button2_Click(object sender, EventArgs e) { Form mostrarSocio = new ListarClientes(); mostrarSocio.Show(); }