Пример #1
0
        private void FormSettings_Load(object sender, EventArgs e)
        {
            // get them for enumeration
            m_checks.Clear( );
            m_checks.Add(chkHidden01); m_checks.Add(chkHidden02); m_checks.Add(chkHidden03); m_checks.Add(chkHidden04); m_checks.Add(chkHidden05); m_checks.Add(chkHidden06);
            m_checks.Add(chkHidden07); m_checks.Add(chkHidden08); m_checks.Add(chkHidden09); m_checks.Add(chkHidden10); m_checks.Add(chkHidden11); m_checks.Add(chkHidden12);

            m_labels.Clear( );
            m_labels.Add(lblColor01); m_labels.Add(lblColor02); m_labels.Add(lblColor03); m_labels.Add(lblColor04); m_labels.Add(lblColor05); m_labels.Add(lblColor06);
            m_labels.Add(lblColor07); m_labels.Add(lblColor08); m_labels.Add(lblColor09); m_labels.Add(lblColor10); m_labels.Add(lblColor11); m_labels.Add(lblColor12);

            // init GUI
            Tx.LocalizeControlTree(this);
            foreach (var c in m_checks)
            {
                c.Text = Tx.Translate("chkHideXX");
            }

            chkLbActionMaps.Items.Clear( );
            for (int i = 0; i < ActionMapsCls.ActionMaps.Length; i++)
            {
                chkLbActionMaps.Items.Add(ActionMapsCls.ActionMaps[i]);
            }

            comboLanguage.Items.Clear( );
            comboLanguage.Items.AddRange(SC.SCUiText.Instance.LanguagesS.ToArray( ));

            LoadSettings( );
        }
Пример #2
0
        private void FormReassign_Load(object sender, EventArgs e)
        {
            Tx.LocalizeControlTree(this);
            lblJoy1.Text  = Tx.Translate("xJoystick") + " 1";
            lblJoy2.Text  = Tx.Translate("xJoystick") + " 2";
            lblJoy3.Text  = Tx.Translate("xJoystick") + " 3";
            lblJoy4.Text  = Tx.Translate("xJoystick") + " 4";
            lblJoy5.Text  = Tx.Translate("xJoystick") + " 5";
            lblJoy6.Text  = Tx.Translate("xJoystick") + " 6";
            lblJoy7.Text  = Tx.Translate("xJoystick") + " 7";
            lblJoy8.Text  = Tx.Translate("xJoystick") + " 8";
            lblJoy9.Text  = Tx.Translate("xJoystick") + " 9";
            lblJoy10.Text = Tx.Translate("xJoystick") + " 10";
            lblJoy11.Text = Tx.Translate("xJoystick") + " 11";
            lblJoy12.Text = Tx.Translate("xJoystick") + " 12";

            int textIdx = 0;

            foreach (JoystickCls j in m_owner)
            {
                m_tb[textIdx++].Text = j.DevName;
            }

            LoadSettings( );
        }
Пример #3
0
        private void FormSettings_Load(object sender, EventArgs e)
        {
            Tx.LocalizeControlTree(this);

            chkLbActionMaps.Items.Clear( );
            for (int i = 0; i < ActionMapsCls.ActionMaps.Length; i++)
            {
                chkLbActionMaps.Items.Add(ActionMapsCls.ActionMaps[i]);
            }

            comboLanguage.Items.Clear( );
            comboLanguage.Items.AddRange(SC.SCUiText.Instance.LanguagesS.ToArray( ));

            LoadSettings( );
        }
Пример #4
0
        private void FormTable_Load(object sender, EventArgs e)
        {
            Tx.LocalizeControlTree(this);
            btClrFilterAction.Text     = Tx.Translate("btClear");
            btClrFilterDefBinding.Text = Tx.Translate("btClear");
            btClrFilterUsrBinding.Text = Tx.Translate("btClear");
            TranslateDGV( );

            // Assign Size property - check if on screen, else use defaults
            if (Commons.IsOnScreen(new Rectangle(AppSettings.Instance.FormTableLocation, AppSettings.Instance.FormTableSize)))
            {
                this.Size     = AppSettings.Instance.FormTableSize;
                this.Location = AppSettings.Instance.FormTableLocation;
            }
        }