コード例 #1
0
 public DetailsOfThePrisonerViewModel(IEventAggregator eventAggregator, IPassEndpoint passEndpoint, IPunishmentEndpoint punishmentEndpoint,
                                      IReasonEndpoint reasonEndpoint, IIsolationEndpoint isolationEndpoint)
 {
     _eventAggregator = eventAggregator;
     _eventAggregator.Subscribe(this);
     _passEndpoint       = passEndpoint;
     _punishmentEndpoint = punishmentEndpoint;
     _reasonEndpoint     = reasonEndpoint;
     _isolationEndpoint  = isolationEndpoint;
 }
コード例 #2
0
 public AddIsolationViewModel(IEventAggregator eventAggregator, IIsolationEndpoint isolationEndpoint)
 {
     _eventAggregator = eventAggregator;
     _eventAggregator.Subscribe(this);
     _isolationEndpoint = isolationEndpoint;
 }