Пример #1
0
        // Save the current settings
        private void SaveSettings( )
        {
            // SC path
            m_owner.UserSCPath     = txSCPath.Text;
            m_owner.UserSCPathUsed = cbxUsePath.Checked;

            //Ignore Buttons
            m_owner.IgnoreJS1  = txJS1.Text;
            m_owner.IgnoreJS2  = txJS2.Text;
            m_owner.IgnoreJS3  = txJS3.Text;
            m_owner.IgnoreJS4  = txJS4.Text;
            m_owner.IgnoreJS5  = txJS5.Text;
            m_owner.IgnoreJS6  = txJS6.Text;
            m_owner.IgnoreJS7  = txJS7.Text;
            m_owner.IgnoreJS8  = txJS8.Text;
            m_owner.IgnoreJS9  = txJS9.Text;
            m_owner.IgnoreJS10 = txJS10.Text;
            m_owner.IgnoreJS11 = txJS11.Text;
            m_owner.IgnoreJS12 = txJS12.Text;

            // Ignore actionmaps
            String ignore = ",";

            for (int i = 0; i < chkLbActionMaps.Items.Count; i++)
            {
                if (chkLbActionMaps.GetItemCheckState(i) == CheckState.Checked)
                {
                    ignore += chkLbActionMaps.Items[i].ToString( ) + ",";
                }
            }
            m_owner.IgnoreActionmaps = ignore;

            // DetectGamepad
            if (m_owner.DetectGamepad != cbxDetectGamepad.Checked)
            {
                MessageBox.Show("Changing the Gamepad option needs a restart of the application !!", "Settings Notification", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            m_owner.DetectGamepad = cbxDetectGamepad.Checked;

            // Use PTU
            if (m_owner.UsePTU != cbxPTU.Checked)
            {
                MessageBox.Show("Changing to / from PTU folders needs a restart of the application !!", "Settings Notification", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            m_owner.UsePTU = cbxPTU.Checked;

            // AutoTabXML
            m_owner.AutoTabXML = cbxAutoTabXML.Checked;

            // Use CSV Listing
            m_owner.UseCSVListing = cbxCSVListing.Checked;
            m_owner.ListModifiers = cbxListModifiers.Checked;

            m_owner.Save( );
        }
Пример #2
0
        private void SaveSettings( )
        {
            // SC path
            m_owner.UserSCPath     = txSCPath.Text;
            m_owner.UserSCPathUsed = cbxUsePath.Checked;

            //Ignore Buttons
            m_owner.IgnoreJS1 = txJS1.Text;
            m_owner.IgnoreJS2 = txJS2.Text;
            m_owner.IgnoreJS3 = txJS3.Text;
            m_owner.IgnoreJS4 = txJS4.Text;
            m_owner.IgnoreJS5 = txJS5.Text;
            m_owner.IgnoreJS6 = txJS6.Text;
            m_owner.IgnoreJS7 = txJS7.Text;
            m_owner.IgnoreJS8 = txJS8.Text;

            // Ignore actionmaps
            String ignore = ",";

            for (int i = 0; i < chkLbActionMaps.Items.Count; i++)
            {
                if (chkLbActionMaps.GetItemChecked(i))
                {
                    ignore += chkLbActionMaps.Items[i].ToString( ) + ",";
                }
            }
            m_owner.IgnoreActionmaps = ignore;

            // Blend options
            m_owner.BlendUnmapped   = cbxBlendJS.Checked;
            m_owner.BlendUnmappedGP = cbxBlendGP.Checked;

            // ForceIgnoreversion
            m_owner.ForceIgnoreversion = cbxForceIgnoreversion.Checked;

            // DetectGamepad
            if (m_owner.DetectGamepad != cbxDetectGamepad.Checked)
            {
                MessageBox.Show("Changing the Gamepad option needs a restart of the application !!", "Settings Notification", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            m_owner.DetectGamepad = cbxDetectGamepad.Checked;

            m_owner.Save( );
        }