public ManutencaoController(IConfiguration configuration)
 {
     veiculoService     = new VeiculoService();
     manutencaoService  = new ManutencaoService();
     colaboradorService = new ColaboradorService();
     transporteService  = new TransporteService(configuration);
 }
        private async Task <List <Line> > LoadData()
        {
            TransporteService service = new TransporteService();

            titles = await service.TransporteAhora();

            return(titles);
        }
Пример #3
0
        static void Main(string[] args)
        {
            TransporteService transporteService = new TransporteService(TripulanteFactory.Create(),
                                                                        CarroFactory.Create(), LocalFactory.Create());

            Console.WriteLine("Iniciar o transporte? S / N ?");
            if (Console.ReadLine().ToUpper() == "S")
            {
                transporteService.IniciarTransporte();
                Console.ReadKey();
            }
            else
            {
                Console.WriteLine("Sair!");
            }
        }
Пример #4
0
        protected async override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.devices);
            devices = FindViewById <WearableListView>(Resource.Id.devices);

            TransporteService service = new TransporteService();

            if (!CrossConnectivity.Current.IsConnected)
            {
                //You are offline, notify the user
                return;
            }
            var lineas = await service.TransporteAhora();

            var carga = FindViewById <ProgressBar>(Resource.Id.cargando);

            carga.Visibility = ViewStates.Invisible;
            devices.SetAdapter(new DevicesAdapter(this, lineas));
        }
 public TransporteController(LogisticaSinuContext context)
 {
     _transporteService = new TransporteService(context);
 }