/// <summary> /// Called when the pin needs to be entered. /// Invokes the ReloadPINSection event. /// </summary> public void ReEnterPIN() { if (!checkingPin) { return; } MainThreadExecutor.QueueAction(() => ReloadPINSection?.Invoke()); checkingPin = false; }
/// <summary> /// Calls events based on the current status of the pin section. /// </summary> public void UpdatePINSection() { if (!pinSectionOpen) { pinSectionOpen = true; MainThreadExecutor.QueueAction(() => TrezorPINSectionOpening?.Invoke()); } else { MainThreadExecutor.QueueAction(() => ReloadPINSection?.Invoke()); } }