/// <summary>
        /// Shows the preferences dialog box
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void menuItem11_Click(object sender, System.EventArgs e)
        {
            Preferences prefs = new Preferences();

            prefs.Show();
        }
        /// <summary>
        /// Opens the preferences dialog box
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void menuItem5_Click(object sender, System.EventArgs e)
        {
            System.Threading.Thread t = new System.Threading.Thread(new System.Threading.ThreadStart(delegate()
            {
                Form preferences = new Preferences();

                preferences.ShowDialog();
            }
            ));

            t.Start();
        }
예제 #3
0
        /// <summary>
        /// When the form opens, load settings
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Preferences_Load(object sender, System.EventArgs e)
        {
            FormReference = this;

            string[] keyItems = new string[] {"A", "Add", "B", "C", "D", "Decimal", "Divide", "Down", "E", "End", "Enter", "F", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", "G", "H", "Home", "I", "Insert", "J", "K", "L", "Left", "M", "Multiply", "N", "O", "P", "PageDown", "PageUp", "PrintScreen", "Q", "R", "Right", "S", "Space", "Subtract", "T", "U", "Up", "V", "W", "X", "Y", "Z"};

            // Set combobox values
            lstBetRaiseKey.Items.AddRange(keyItems);
            lstCheckCallKey.Items.AddRange(keyItems);
            lstFoldKey.Items.AddRange(keyItems);

            lstAutoPushKey.Items.AddRange(keyItems);
            lstAutoPushKey.Items.Remove("Decimal");

            lstMoveCursorToActiveTableKey.Items.AddRange(keyItems);
            lstRearrangeTablesKey.Items.AddRange(keyItems);
            lstSNGOpenerKey.Items.AddRange(keyItems);
            lstToggleLobbyKey.Items.AddRange(keyItems);
            lstToggleForceActiveTableTopmostKey.Items.AddRange(keyItems);

            // Load settings
            loadSettings("behavior");
        }