Пример #1
0
 private void altaClientes_Click(object sender, EventArgs e)
 {
     altaClienteForm       = new AltaClienteForm();
     altaClienteForm.Owner = this;
     altaClienteForm.Show();
     this.Hide();
 }
Пример #2
0
 private void btnModificarCliente_Click(object sender, EventArgs e)
 {
     if (lstClientes.SelectedIndex != -1)
     {
         Cliente cliente = (Cliente)lstClientes.SelectedItem;
         altaClienteForm       = new AltaClienteForm(cliente);
         altaClienteForm.Owner = this;
         altaClienteForm.Show();
         this.Hide();
     }
 }