Esempio n. 1
0
        private void unidadeDeMedidaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmCadastroUnidadeDeMedida f = new frmCadastroUnidadeDeMedida();

            f.ShowDialog();
            f.Dispose();
        }
        private void btnUnidadeMedida_Click(object sender, EventArgs e)
        {
            frmCadastroUnidadeDeMedida f = new frmCadastroUnidadeDeMedida();

            f.ShowDialog();
            f.Dispose();
        }
 private void unidadeDeMedidaToolStripMenuItem_Click(object sender, EventArgs e)
 {
   using (frmCadastroUnidadeDeMedida frmUmed = new frmCadastroUnidadeDeMedida())
   {
     frmUmed.ShowDialog();
   }
 }
        private void brAddUn_Click(object sender, EventArgs e)
        {
            frmCadastroUnidadeDeMedida f = new frmCadastroUnidadeDeMedida();

            f.ShowDialog();
            f.Dispose();
            DALConexao         cx   = new DALConexao(DadosDaConexao.StringDeConexao);
            BLLUnidadeDeMedida ubll = new BLLUnidadeDeMedida(cx);

            cbCategoria.DataSource    = ubll.Localizar("");
            cbCategoria.DisplayMember = "umed_nome";
            cbCategoria.ValueMember   = "umed_cod";
        }
        private void btAddUnidMedida_Click(object sender, EventArgs e)
        {
            frmCadastroUnidadeDeMedida f = new frmCadastroUnidadeDeMedida();

            f.ShowDialog();
            f.Dispose();
            //criar conexão para exibir no combobox os nomes da unidade de medidas
            DALConexao         cx   = new DALConexao(DadosDaConexao.StringDeConexao);
            BLLUnidadeDeMedida ubll = new BLLUnidadeDeMedida(cx);

            cbUnidadeDeMedida.DataSource    = ubll.Localizar("");
            cbUnidadeDeMedida.DisplayMember = "umed_nome";
            cbUnidadeDeMedida.ValueMember   = "umed_cod";
        }
 private void unidadeDeMedidaToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frmCadastroUnidadeDeMedida f = new frmCadastroUnidadeDeMedida();
     f.ShowDialog();
     f.Dispose();
 }
Esempio n. 7
0
        private void btAddUnMed_Click(object sender, EventArgs e)
        {
            frmCadastroUnidadeDeMedida und = new frmCadastroUnidadeDeMedida();
            und.ShowDialog();
            und.Dispose();
            DALConexao cx = new DALConexao(DadosDaConexao.srtConexao);
            BLLUnidadeDeMedida bll = new BLLUnidadeDeMedida(cx);
            cbUnidadeMedida.DataSource = bll.Localizar("");
            cbUnidadeMedida.DisplayMember = "umed_nome";
            cbUnidadeMedida.ValueMember = "umed_cod";
            cbUnidadeMedida.AutoCompleteMode = AutoCompleteMode.Suggest;
            cbUnidadeMedida.AutoCompleteSource = AutoCompleteSource.ListItems;


        }