Exemple #1
0
        private void FormLogOn_Load(object sender, EventArgs e)
        {
            TextBox textSelectOnLoad = textPassword;

            if (PrefC.GetBool(PrefName.UserNameManualEntry))
            {
                listUser.Visible = false;
                textUser.Visible = true;
                textSelectOnLoad = textUser; //Focus should start with user name text box.
            }
            else                             //Show a list of users.
                                             //Only show the show CEMT user check box if not manually typing user names and there are CEMT users present in the db.
            {
                checkShowCEMTUsers.Visible = Userods.HasUsersForCEMTNoCache();
            }
            FillListBox();
            this.Focus();              //Attempted fix, customers had issue with UI not defaulting focus to this form on startup.
            textSelectOnLoad.Select(); //Give focus to appropriate text box.
            Plugins.HookAddCode(this, "FormLogOn.Load_end", _isSimpleSwitch);
        }