BF2Statistics.ScoreSettings.ScoreSettings C# (CSharp) Method

ScoreSettings() public method

Constructor
public ScoreSettings ( ) : System
return System
        public ScoreSettings()
        {
            InitializeComponent();
            this.Text = MainForm.SelectedMod.Title + " Score Settings";

            // Assign folder vars
            string ScoringFolder = Path.Combine(MainForm.SelectedMod.RootPath, "python", "game");
            ScoringCommonFile = new FileInfo(Path.Combine(ScoringFolder, "scoringCommon.py"));
            ScoringConqFile = new FileInfo(Path.Combine(ScoringFolder, "gamemodes", "gpm_cq.py"));
            ScoringCoopFile = new FileInfo(Path.Combine(ScoringFolder, "gamemodes", "gpm_coop.py"));

            // Make sure the files all exist
            if (!ScoringCommonFile.Exists|| !ScoringConqFile.Exists || !ScoringCoopFile.Exists)
            {
                MessageBox.Show("One or more scoring files are missing. Unable to modify scoring.",
                    "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                this.Load += (s, e) => this.Close();
                return;
            }

            // Load Common Scoring File
            if (!LoadScoringCommon())
                return;

            // Load the Coop Scoring file
            if (!LoadCoopFile())
                return;

            // Load the Conquest Scoring file
            if (!LoadConqFile())
                return;

            // Fill form values
            FillFormFields();
        }