Exemple #1
0
        public new void Close()
        {
            Bus.Instance.Publish(MessageBusEvents.CONTROLLER_INPUT_MODE_MOUSE_AND_KEYBOARD);
            Bus.Instance.Unsubscribe(this);

            PasswordBoxPin.Clear();

            base.Close();
        }
Exemple #2
0
        private void ProgressMode(Mode mode)
        {
            currentMode = mode;

            PasswordBoxPin.Clear();

            if (currentMode == Mode.CreatePin)
            {
                LabelInstructions.Content = "The system isn't protected. Please create a new PIN.";
            }
            else if (currentMode == Mode.ConfirmPin)
            {
                LabelInstructions.Content = "Re-enter the PIN to confirm it.";
            }
            else if (currentMode == Mode.Authenticate)
            {
                LabelInstructions.Content = "Enter your PIN to log in.";
            }
        }