private void unidadeDeMedidaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmCadastroUnidadeMedida tela = new frmCadastroUnidadeMedida();

            tela.ShowDialog();
            tela.Dispose();
        }
Exemple #2
0
        private void mnuUnidadeMedida_Click(object sender, EventArgs e)
        {
            frmCadastroUnidadeMedida f = new frmCadastroUnidadeMedida();

            f.ShowDialog();
            f.Dispose();
        }
Exemple #3
0
 private void dgvDados_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         frmCadastroUnidadeMedida f = new frmCadastroUnidadeMedida();
         f.codigo = Convert.ToInt32(dgvDados.Rows[e.RowIndex].Cells[0].Value);
         this.Close();
         f.ShowDialog();
         f.Dispose();
     }
 }
Exemple #4
0
        private void btnAddUnidadeMedida_Click(object sender, EventArgs e)
        {
            frmCadastroUnidadeMedida f = new frmCadastroUnidadeMedida();

            f.ShowDialog();
            f.Dispose();
            DALConexao       cx   = new DALConexao(DadosDaConexao.StringDeConexão);
            BLLUnidadeMedida ubll = new BLLUnidadeMedida(cx);

            cbxUnidadeMedida.DataSource    = ubll.Localizar("");
            cbxUnidadeMedida.DisplayMember = "NOME";
            cbxUnidadeMedida.ValueMember   = "Codigo";
        }
        private void AddUnidadeMedida_Click(object sender, EventArgs e)
        {
            frmCadastroUnidadeMedida f = new frmCadastroUnidadeMedida();
            f.ShowDialog();
            f.Dispose();

            DALConexao cx = new DALConexao(DadosConexao.StringDeConexao);
            //combo und medida
            BLLUnidadeMedida ubll = new BLLUnidadeMedida(cx);
            cbUnd.DataSource = ubll.Localizar("");
            cbUnd.DisplayMember = "umed_nome";
            cbUnd.ValueMember = "umed_cod";
        }
 private void unidadeDeMedidaToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frmCadastroUnidadeMedida tela = new frmCadastroUnidadeMedida();
     tela.ShowDialog();
     tela.Dispose();
 }