コード例 #1
0
        public void Delete(int idCombustivel)
        {
            if (idCombustivel > 0)
            {
                DAL.Combustivel dalCombustivel = new DAL.Combustivel();
                dalCombustivel.Delete(idCombustivel);
            }

            else
            {
                MessageBox.Show("ITEN PARA EXCLUSÃO NÃO SELECIONADO!", "EXCLUIR", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }
コード例 #2
0
 public List <MODEL.Combustivel> SelectByID(int id)
 {
     DAL.Combustivel dalCombustivel = new DAL.Combustivel();
     return(dalCombustivel.SelectByID(id));
 }
コード例 #3
0
 public void Insert(MODEL.Combustivel combustivel)
 {
     DAL.Combustivel dalCombustivel = new DAL.Combustivel();
     dalCombustivel.Inserir(combustivel);
 }
コード例 #4
0
 public List <MODEL.Combustivel> Select()
 {
     DAL.Combustivel dalCombustivel = new DAL.Combustivel();
     return(dalCombustivel.Select());
 }