예제 #1
0
    /// <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;
    }
예제 #2
0
    /// <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());
        }
    }