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