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;
 }
Example #2
0
 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;
 }
Example #3
0
 public void RemoveAutomovel(Automovel atm)
 {
     Automovel.Remove(atm);
 }
Example #4
0
 //Metodo para adicionar e remover um automovel
 public void AddAutomovel(Automovel atm)
 {
     Automovel.Add(atm);
 }
Example #5
0
 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;
 }
Example #6
0
 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;
 }
Example #7
0
 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;
 }