コード例 #1
0
        public void Listar()
        {
            CustoDao custoDao = new CustoDao();
            string   strMysql = custoDao.ListarCusto();

            dataGridListar.DataSource = custoDao.ExibirNoDataGridView(strMysql);
        }
コード例 #2
0
        private void ToolStripButtonPesquisar_Click(object sender, EventArgs e)
        {
            int      idCusto  = Convert.ToInt32(txtPesquisa.Text);
            CustoDao custoDao = new CustoDao();
            string   strMysql = custoDao.PesquisarCusto(idCusto);

            dataGridListar.DataSource = custoDao.ExibirNoDataGridView(strMysql);
        }