public VistoriasNovasViewModel()
 {
     _vistoriasService  = DependencyService.Get <IVistoriasService>();
     VistoriasList      = new ObservableCollection <VistoriaDTO>();
     VerVistoriaCommand = new Command <VistoriaDTO>(verVistoria);
     LoadVistorias();
 }
Example #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);
 }
Example #3
0
 public VistoriasFeitasViewModel()
 {
     _vistoriasService = DependencyService.Get <Services.Interface.IVistoriasService>();
     VistoriasList     = new ObservableCollection <VistoriaDTO>();
     LoadVistorias();
 }