private void LoadInfo() { string[] allFoundFiles = Directory.GetFiles(Application.StartupPath + "\\kf2_ds\\KFGame\\BrewedPC\\Maps", "KF-*.kfm", SearchOption.AllDirectories); foreach (string file in allFoundFiles) { comboBoxMap.Items.Add(Path.GetFileNameWithoutExtension(file)); } INI KFGameini = new INI(".\\kf2_ds\\KFGame\\Config\\PCServer-KFGame.ini"); textBoxSrvName.Text = KFGameini.IniReadValue("Engine.GameReplicationInfo", "ServerName"); textBoxMxPl.Text = KFGameini.IniReadValue("Engine.GameInfo", "MaxPlayers"); textBoxAdmPass.Text = KFGameini.IniReadValue("Engine.AccessControl", "AdminPassword"); textBoxAdmCont.Text = KFGameini.IniReadValue("Engine.GameReplicationInfo", "AdminContact"); comboBoxAdmPause.Text = KFGameini.IniReadValue("Engine.GameInfo", "bAdminCanPause"); textBoxPass.Text = KFGameini.IniReadValue("Engine.AccessControl", "GamePassword"); INI KFWebini = new INI(".\\kf2_ds\\KFGame\\Config\\KFWeb.ini"); comboBoxWAE.Text = KFWebini.IniReadValue("IpDrv.WebServer", "bEnabled"); INI KFEngineini = new INI(".\\kf2_ds\\KFGame\\Config\\PCServer-KFEngine.ini"); textBoxRedirect.Text = KFEngineini.IniReadValue("IpDrv.HTTPDownload", "RedirectToURL"); }