Ejemplo n.º 1
0
        private void PopulateSendingPModeCombobox()
        {
            if (_sendPModeWatcher != null)
            {
                _sendPModeWatcher.Stop();
                PModeCombobox.ItemsSource = new string[] { };
            }

            if (String.IsNullOrWhiteSpace(SendingPModeLocationTextBox.Text))
            {
                return;
            }

            _sendPModeWatcher = new PModeWatcher <SendingProcessingMode>(SendingPModeLocationTextBox.Text);
            _sendPModeWatcher.Start();

            PModeCombobox.ItemsSource = _sendPModeWatcher.GetPModes().OrderBy(p => p.Id);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Return all the configured <see cref="SendingProcessingMode"/>
 /// </summary>
 /// <returns></returns>
 public IEnumerable <SendingProcessingMode> GetSendingPModes() =>
 OnlyAfterInitialized(() => _sendingPModeWatcher.GetPModes().OfType <SendingProcessingMode>());
Ejemplo n.º 3
0
 /// <summary>
 /// Return all the configured <see cref="ReceivingProcessingMode" />
 /// </summary>
 /// <returns></returns>
 public IEnumerable <ReceivingProcessingMode> GetReceivingPModes() =>
 OnlyAfterInitialized(() => _receivingPModeWatcher.GetPModes().OfType <ReceivingProcessingMode>());