private void btModificarCliente_Click(object sender, EventArgs e) { ModificarCliente modificarCliente = new ModificarCliente(); modificarCliente.Show(); this.Hide(); }
private void Modificar(object sender, RoutedEventArgs e) { ModificarCliente mc = new ModificarCliente(); mc.Show(); Close(); }
private void btnModificar_Click(object sender, EventArgs e) { this.Visible = false; ModificarCliente modificar = new ModificarCliente(); modificar.Visible = true; }
private void modificarClienteToolStripMenuItem_Click(object sender, EventArgs e) { this.IsMdiContainer = true; ModificarCliente MCliente = new ModificarCliente(); MCliente.MdiParent = this; MCliente.Show(); }
/// <summary> /// Gestiona el boton de modificar cliente,muestra el dialogo y luego muestra un mensaje /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private async void ModificarCliente_Click(object sender, RoutedEventArgs e) { ModificarCliente dialogo = new ModificarCliente(mvcliente); dialogo.ShowDialog(); if (dialogo.DialogResult == true) { await this.ShowMessageAsync("Informacion", "Cliente modificado corectamente"); mvcliente = new MVCliente(tEnt); } else { mvcliente = new MVCliente(tEnt); } }