public DistributorModifyViewModel(Distributor model, [Import] IEnergyRepository consumerRepository, [Import] IEnergyViewModelFactory energyViewModelFactory)
 {
     DisplayName = "Verteiler bearbeiten...";
     m_Model     = model;
     m_EnergyViewModelFactory = energyViewModelFactory;
     m_Repository             = consumerRepository;
     ReadingAddVm             = new ReadingAddViewModel();
 }
Example #2
0
 public ConsumerModifyViewModel(Consumer consumer, [Import] IEnergyRepository consumerRepository, [Import] IEnergyViewModelFactory energyViewModelFactory)
 {
     DisplayName              = "Verbraucher bearbeiten...";
     m_Model                  = consumer;
     m_Repository             = consumerRepository;
     m_EnergyViewModelFactory = energyViewModelFactory;
     ReadingAddVm             = new ReadingAddViewModel();
 }