public DupeCheckViewModel(ILogService service, IDupeBehaviorsService dupeBehaviors) : base(service) { MessageSink.MessageBus.GetEvent <DataDictionaryRequest>().Subscribe(details => onNewEntryDataDictionaryRequest(details)); MessageSink.MessageBus.GetEvent <BandChangedNotification>().Subscribe(details => onBandChangedNotification(details)); MessageSink.MessageBus.GetEvent <ModeChangedNotification>().Subscribe(details => onModeChangedNotification(details)); MessageSink.MessageBus.GetEvent <EntryCompleteNotification>().Subscribe(details => onEntryCompleteNotification(details)); MessageSink.MessageBus.GetEvent <TransceiverStateResponse>().Subscribe(details => onTransceiverStateResponse(details)); MessageSink.MessageBus.GetEvent <DupeCallsignRequest>().Subscribe(details => onDupeCallsignRequest(details)); MessageSink.MessageBus.GetEvent <EntryCompleteNotification>().Subscribe(details => onEntryCompletedNotification(details)); this.dupeBehaviors = dupeBehaviors; Reset_Command = new DelegateCommand <object>(onReset_Command); KeyUp_Command = new DelegateCommand <object>(onKeyUp_Command); EditQso_Command = new DelegateCommand <object>(onEditQso_Command); }
public QsoDetailViewModel( ILogService service, IDupeBehaviorsService dupeBehaviors, ILogWebService webService, string adif, string geographicArea, string continent, string stationPower, string modes, string bands, string transmitter, string receiver) : base(service) { this.webService = webService; qsoType = QsoType.NewQso; KeyUp_Command = new DelegateCommand <object>(onKeyUp_Command); this.adif = adif; this.geographicArea = geographicArea; this.continent = continent; this.stationPower = stationPower; this.dupeBehaviors = dupeBehaviors; this.transmitter = transmitter; this.receiver = receiver; try { contestName = ConfigurationManager.AppSettings["contestName"]; } catch { contestName = String.Empty; } loadContestModes(modes); loadContestBands(bands); EntryCompleted_Command = new DelegateCommand <object>(on_EntryCompleted_Command); EntryCanceled_Command = new DelegateCommand <object>(on_EntryCanceled_Command); MessageSink.MessageBus.GetEvent <DataDictionaryResponse>().Subscribe(details => onNewEntryDataDictionaryResponse(details)); MessageSink.MessageBus.GetEvent <TransceiverStateResponse>().Subscribe(details => onTransceiverStateResponse(details)); MessageSink.MessageBus.GetEvent <GeographicAreaSelectionNotification>().Subscribe(details => onGeographicAreaSelectionNotification(details)); }