示例#1
0
        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));
        }
示例#2
0
 public LoggerController(ILogWebService _service)
 {
     service = _service;
 }