public VistoriasNovasViewModel()
 {
     _vistoriasService  = DependencyService.Get <IVistoriasService>();
     VistoriasList      = new ObservableCollection <VistoriaDTO>();
     VerVistoriaCommand = new Command <VistoriaDTO>(verVistoria);
     LoadVistorias();
 }
Ejemplo n.º 2
0
 public VistoriaNovaDetailViewModel(VistoriaDTO vistoria)
 {
     _vistoriaService = Xamarin.Forms.DependencyService.Get <Services.Interface.IVistoriasService>();
     Vistoria         = vistoria;
     ToVoltarCommand  = new Command(toVoltar);
     ToSalvarCommand  = new Command(toSalvar);
     ToGetAllCommand  = new Command(ToGetAllAsync);
 }
Ejemplo n.º 3
0
 public VistoriasFeitasViewModel()
 {
     _vistoriasService = DependencyService.Get <Services.Interface.IVistoriasService>();
     VistoriasList     = new ObservableCollection <VistoriaDTO>();
     LoadVistorias();
 }