private void OkBtn_Click(object sender, EventArgs e)
 {
     Ini.Write("Settings", "Language", LangSelectBox.GetItemText(LangSelectBox.SelectedItem));
     Ini.Write("Settings", "Architecture", ArchSelectBox.GetItemText(ArchSelectBox.SelectedItem));
     Ini.Write("Settings", "DoNotAskAgain", DoNotAskAgainCheck.Checked);
     Ini.WriteAll();
     DialogResult = DialogResult.OK;
 }
Exemplo n.º 2
0
        private void OkBtn_Click(object sender, EventArgs e)
        {
            var lang = LangSelectBox.GetItemText(LangSelectBox.SelectedItem);

            if (!lang.EqualsEx("English (US)"))
            {
                Ini.WriteDirect("Winamp", "langpack", $"{lang}.wlz", _configPath);
            }
            DialogResult = DialogResult.OK;
        }