public VisuraDetailViewModel(IEventAggregator eventAggregator, IMessageDialogService messageDialogService, IVisureRepository visureRepository, IStatoServizioRepository statoServizioRepository) : base(eventAggregator, messageDialogService) { _visureRepository = visureRepository; _statoServizioRepository = statoServizioRepository; InvioCommand = new DelegateCommand(OnInvioExecute, OnInvioCanExecute); }
public VisureOperationsDetailViewModel(IEventAggregator eventAggregator, IMessageDialogService messageDialogService, IVisureRepository visureRepository, IStatoServizioRepository statoServizioRepository, IAmbienteRepository ambienteRepository) : base(eventAggregator, messageDialogService) { this.visureRepository = visureRepository; this.ambienteRepository = ambienteRepository; this.statoServizioRepository = statoServizioRepository; idStatoServizioSalvato = statoServizioRepository.GetByDescription("Salvato").Id; Ambienti = new ObservableCollection <AmbienteWrapper>(); Visure = new ObservableCollection <VisuraWrapper>(); InvioCommand = new DelegateCommand(OnInvioExecute, OnInvioCanExecute); ConfermaCommand = new DelegateCommand(OnConfermaExecute, OnConfermaCanExecute); CopyIdRichiestaCommand = new DelegateCommand <VisuraWrapper>(OnCopyIdRichiestaExecute); EditVisuraCommand = new DelegateCommand <VisuraWrapper>(OnEditVisuraExecute); }