Exemple #1
0
        public void Activate()
        {
            string password = null;

            if (!terminalDevice.GetPassword(ref password))
            {
                return;
            }
            if (admin.CheckPassword(password) == true)
            {
                terminalDevice.ShowMainMenuDialog(this);
            }
        }
Exemple #2
0
        public void Activate()
        {
            //verify password and if verified, show MainMenuDialog
            // if a user presses "Cancel", do nothing and just return
            string password = null;

            if (!terminalDevice.GetPassword(ref password))
            {
                return;
            }
            // you need to verify the password

            terminalDevice.ShowMainMenuDialog(this);
        }