Пример #1
0
        void ChangeSetting(string key, string message)
        {
            Tools.INI configFile = new Tools.INI(configFilePath);
            string    defVal     = configFile.GetValue(key);

            Tools.InputBox inputBox = new Tools.InputBox(message, defVal);
            inputBox.Key            = key;
            inputBox.OKButtonEvent += ChangeSettingComplete;

            inputBox.ShowDialog();
        }
Пример #2
0
 void ChangeSettingComplete(string key, string value)
 {
     Tools.INI configFile = new Tools.INI(configFilePath);
     configFile.SetValue(key, value);
 }