Exemplo n.º 1
0
        private void unidadeDeMedidaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmCadastrounidadeMedida f = new frmCadastrounidadeMedida();

            f.ShowDialog();
            f.Dispose();
        }
Exemplo n.º 2
0
        private void btAddUnidadeMedida_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            frmCadastrounidadeMedida f = new frmCadastrounidadeMedida();

            f.ShowDialog();
            f.Dispose();

            DAOConexao cx = new DAOConexao(DAOBanco.StringDeConexao);

            //combo und medida
            BLLUnidadeMedida ubll = new BLLUnidadeMedida(cx);

            cbUnd.DataSource    = ubll.Localizar("");
            cbUnd.DisplayMember = "umed_nome";
            cbUnd.ValueMember   = "umed_cod";
        }