Пример #1
0
        private void consultarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmConsulta consultar = new frmConsulta("");

            consultar.ShowDialog();
        }
Пример #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            frmConsulta frmConsulta = new frmConsulta(this);

            frmConsulta.ShowDialog();
            cmbCli.SelectedValue = idCliente;

            cmbAni.DataSource    = listAnimal;
            cmbAni.DisplayMember = "nome";
            cmbAni.ValueMember   = "id";

            cmbAni.SelectedValue = idAnimal;
        }
        private void btnArticulo_Click(object sender, EventArgs e)
        {
            Articulo articulo = new Articulo();

            frmConsulta frm = new frmConsulta();

            string[] llaves;
            frm.dt      = articulo.Listar();
            frm.keysCol = 0;
            frm.ShowDialog();
            llaves = frm.keyValues;

            txtArticulo.Text = llaves[0];
            txtArticulo_Leave(null, null);
        }
        private void btnCadena_Click(object sender, EventArgs e)
        {
            Cadena cadena = new Cadena();

            frmConsulta frm = new frmConsulta();

            string[] llaves;
            frm.dt      = cadena.Listar();
            frm.keysCol = 0;
            frm.ShowDialog();
            llaves = frm.keyValues;

            txtCadena.Text = llaves[0];
            txtCadena_Leave(null, null);
        }
        private void openToolStripButton_Click(object sender, EventArgs e)
        {
            frmConsulta frm = new frmConsulta();

            string[] llaves;
            frm.dt      = cm.Listar();
            frm.keysCol = 1;
            frm.ShowDialog();
            llaves = frm.keyValues;

            txtCadena.Text = llaves[0];
            txtCadena_Leave(null, null);
            txtArticulo.Text = llaves[1];
            txtArticulo_Leave(null, null);
        }
Пример #6
0
        private void consultarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmConsulta consulta = new frmConsulta("Alunos");

            consulta.ShowDialog();
        }