void cbLangTwo_SelectedIndexChanged(object sender, EventArgs e) { foreach (Locales.Locale lc in MMain.locales) { if (cbLangTwo.Text == lc.Lang + "(" + lc.uId + ")") { tempLoc2 = new Locales.Locale { Lang = lc.Lang, uId = lc.uId }; } } }
void tempRestore() //Restores temporary variables from settings { //This creates(silently) new config file if existed one disappeared o_O IfNotExist(); // Restores temps tempCLKey = MMain.MyConfs.ReadInt("Hotkeys", "HKCLKey"); tempCSKey = MMain.MyConfs.ReadInt("Hotkeys", "HKCSKey"); tempCLineKey = MMain.MyConfs.ReadInt("Hotkeys", "HKCLineKey"); tempCLMods = MMain.MyConfs.Read("Hotkeys", "HKCLMods"); tempCSMods = MMain.MyConfs.Read("Hotkeys", "HKCSMods"); tempCLineMods = MMain.MyConfs.Read("Hotkeys", "HKCLineMods"); tempLoc1 = tempLoc2 = new Locales.Locale { Lang = "dummy", uId = 0 }; }