Example #1
0
        /// <summary>
        /// Call Trivia.SetListsInForm(), that is a static method which load elements (strings here) in
        /// public lists.
        /// Then set txtSearch to modify all in put character into UPPER char and subscribe an event handler
        /// which controls if Enter key is pressed.
        /// </summary>
        private void SetElementsInForm()
        {
            Trivia.SetListsInForm(ref ListButton, ref ListCombo, ref ListOpenDialog, ref ListOpenTextBox, ref ListOpenCheckBoxList);

            gbConfFile.Text       = "No Configuration file opened";
            gbConfFile.ForeColor  = Color.DarkRed;
            lbPath.Text           = "Please select a config file or create a new one!";
            gbProgressBar.Visible = false;

            txtSearch.CharacterCasing = CharacterCasing.Upper;
            txtSearch.KeyPress       += new KeyPressEventHandler(CheckEnter);
        }