private void dataGridViewClientes_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 15) { this.Hide(); ClienteForm cliente_form = new ClienteForm(); cliente_form.mail = lista_mails[e.RowIndex].ToString(); cliente_form.StartPosition = FormStartPosition.CenterScreen; cliente_form.ShowDialog(); } }
private void button1_Click(object sender, EventArgs e) { if (comboBoxCliente.Text.Length == 0) { MessageBox.Show("Primero debes elegir una opción."); } else if (comboBoxCliente.Text == "Crear Cliente Nuevo") { this.Hide(); ClienteForm cliente_form = new ClienteForm(); cliente_form.mail = ""; cliente_form.StartPosition = FormStartPosition.CenterScreen; cliente_form.ShowDialog(); } else if (comboBoxCliente.Text == "Editar Cliente Existente") { this.Hide(); ClienteBusqueda busqueda_rol = new ClienteBusqueda(); busqueda_rol.StartPosition = FormStartPosition.CenterScreen; busqueda_rol.ShowDialog(); } }