public TipoEquipamento buscar(string nome) { TipoEquipamento ret = new TipoEquipamento(); foreach (TipoEquipamento te in estoque) { if (te.Nome == nome) { ret = te; } } return(ret); }
public void incluir(TipoEquipamento eTip) { eTip.Id = estoque.Count + 1; estoque.Add(eTip); }
public void incluir(TipoEquipamento eTip) { eTip.Id = itens.Count + 1; itens.Push(eTip); }