예제 #1
0
파일: Raiz.cs 프로젝트: vargasjuanj/Plan_C
        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");
            }
        }
예제 #2
0
파일: Raiz.cs 프로젝트: vargasjuanj/Plan_C
        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 = "";
        }