/// <summary>
        /// Ctor.
        /// </summary>
        public LoginControlViewModel(IDialogService dialogService, ITokenService tokenService,
                                     ISynchronizationService synchronizationService, IUserCredentials userCredentials, ILogger logger)
        {
            System.Threading.ThreadPool.QueueUserWorkItem((x) =>
            {
                try
                {
                    DevicesList = NFCWMQService.GetConnectedDevices();
                }
                catch (Exception)
                {
                }
            });
            _dialogService          = dialogService;
            _tokenService           = tokenService;
            _synchronizationService = synchronizationService;
            _userCredentials        = userCredentials;
            _logger = logger;

            Title = "NFCRing - Fence";

            AddCommand                     = new RelayCommand(Add, () => AllowAdd);
            RemoveCommand                  = new RelayCommand <RingItemViewModel>(Remove);
            SelectImageCommand             = new RelayCommand <string>(SelectImage);
            SaveNameCommand                = new RelayCommand <object>(SaveName, x => !string.IsNullOrEmpty(Items.FirstOrDefault(y => Equals(x, y.Token))?.Name));
            CancelEditNameCommand          = new RelayCallbackCommand <object>(CancelEditName);
            RefreshConnectedDevicesCommand = new RelayCallbackCommand <object>(RefreshConnectedDevices);
            AboutCommand                   = new RelayCommand(AboutCommandMethod);
            PropertyChanged               += OnPropertyChanged;
        }
        /// <summary>
        /// Ctor.
        /// </summary>
        public LoginControlViewModel(IDialogService dialogService, ITokenService tokenService,
                                     ISynchronizationService synchronizationService, IUserCredentials userCredentials, ILogger logger)
        {
            _dialogService          = dialogService;
            _tokenService           = tokenService;
            _synchronizationService = synchronizationService;
            _userCredentials        = userCredentials;
            _logger = logger;

            Title = "NFCRing - Fence";

            AddCommand            = new RelayCommand(Add, () => AllowAdd);
            RemoveCommand         = new RelayCommand <RingItemViewModel>(Remove);
            SelectImageCommand    = new RelayCommand <string>(SelectImage);
            SaveNameCommand       = new RelayCommand <object>(SaveName, x => !string.IsNullOrEmpty(Items.FirstOrDefault(y => Equals(x, y.Token))?.Name));
            CancelEditNameCommand = new RelayCallbackCommand <object>(CancelEditName);

            PropertyChanged += OnPropertyChanged;
        }