public Abastecimento(int id, int litros, double valorLitro, double valorAbaste, DateTime dataAbaste, Automovel automovel, Posto posto) { this.Id = id; this.Litros = litros; this.ValorLitro = valorLitro; this.ValorAbaste = valorAbaste; this.DataAbaste = dataAbaste; this.Automovel = automovel; this.Posto = posto; }
public Multa(int id, string localMulta, DateTime dataMulta, string gravidade, int pontos, string codIfracao, double valor, Automovel automovel) { this.Id = id; this.LocalMulta = localMulta; this.DataMulta = dataMulta; this.Gravidade = gravidade; this.Pontos = pontos; this.CodIfracao = codIfracao; this.Valor = valor; this.Automovel = automovel; }
public void RemoveAutomovel(Automovel atm) { Automovel.Remove(atm); }
//Metodo para adicionar e remover um automovel public void AddAutomovel(Automovel atm) { Automovel.Add(atm); }
public Viagem(int id, DateTime dataSaida, DateTime dataChegada, int odometroSaida, int ododmetroChegada, string destinoSaida, string destinoChegada, string descriçaoViagem, Automovel automovel, Motorista motorista) { this.Id = id; this.DataSaida = dataSaida; this.DataChegada = dataChegada; this.OdometroSaida = odometroSaida; this.OdodmetroChegada = ododmetroChegada; this.DestinoSaida = destinoSaida; this.DestinoChegada = destinoChegada; this.DescriçaoViagem = descriçaoViagem; this.Automovel = automovel; this.Motorista = motorista; }
public Locacao(int id, DateTime dataLocacao, DateTime dataDevolucao, double valorLocacao, bool devolvido, Automovel automovel) { this.Id = id; this.DataLocacao = dataLocacao; this.DataDevolucao = dataDevolucao; this.ValorLocacao = valorLocacao; this.Devolvido = devolvido; this.Automovel = automovel; }
public Manutencao(int id, DateTime dataManutencao, DateTime dataProxManu, string servico, string tipo, Automovel automovel, Oficina oficina, double valor) { this.Id = id; this.DataManutencao = dataManutencao; this.DataProxManu = dataProxManu; this.Servico = servico; this.Tipo = tipo; this.Automovel = automovel; this.Oficina = oficina; this.Valor = valor; }