private void btnImportar_Click(object sender, EventArgs e) { try { retorno = Repository.importar(comboBox1.SelectedItem.ToString()); Repository.nombreBD = comboBox1.SelectedItem.ToString(); Asiento work1 = new Crud.Asiento(); work1.ShowDialog(); }catch (Exception ee) { MessageBox.Show("Debe seleccionar algún plan, o no poseee planes activos"); } }
private void btnCrear_Click(object sender, EventArgs e) { retorno = 1; if (txtEO.Text != "") { retorno = Repository.Crear(txtEO.Text); Repository.nombreBD = txtEO.Text + "_"; if (retorno == 1) { Asiento work1 = new Crud.Asiento(); work1.ShowDialog(); } } else { lblMensaje.Text = "Debe ingresar un Nombre"; } comboBox1.Items.Clear(); comboBox1.Text = ""; }