public void UpdateViewModel(string deviceId)
        {
            if (Device?.Id != deviceId)
            {
                return;
            }

            ResetProgress();
            ViewModelUpdated?.Invoke(this, EventArgs.Empty);
        }
Пример #2
0
        public void UpdateViewModel(string deviceId, bool askButton, bool askOldPin, bool confirmNewPin)
        {
            if (Device?.Id != deviceId)
            {
                return;
            }

            AskButton     = askButton;
            AskOldPin     = askOldPin;
            ConfirmNewPin = confirmNewPin;

            ResetProgress();
            ViewModelUpdated?.Invoke(this, EventArgs.Empty);
        }