Ejemplo n.º 1
0
 public Combustivel(string login)
 {
     ds         = new CombustivelDataService();
     controller = new CombustivelController();
     user       = login;
     GetCombustivel();
 }
 public AlterarValorCombustivel(string login)
 {
     user       = login;
     ds         = new CombustivelDataService();
     controller = new CombustivelController();
     GetCombustivel();
 }
Ejemplo n.º 3
0
 public GPS(string login, Models.Carro carro)
 {
     distancia        = 0;
     latitudeFinal    = 0;
     longitudeFinal   = 0;
     latitudeInicial  = 0;
     longitudeInicial = 0;
     this.carro       = carro;
     user             = login;
     iniciado         = false;
     finalizado       = false;
     relController    = new RelatorioController();
     dsCarro          = new CarroDataService();
     combController   = new CombustivelController();
     dsCombustivel    = new CombustivelDataService();
     InitializeComponent();
     txtModelo.Text  = carro.modelo;
     txtKmatual.Text = "KM Atual: " + Math.Round(carro.kmatual, 3).ToString() + "KM";
     txtPlaca.Text   = "Placa: " + carro.placa;
     txtStatus.Text  = "Status:" + carro.status;
 }