Ejemplo n.º 1
0
 // saving settings after plugin selection
 private void SavePlugsSettings() {
     INIFile iniFile = new INIFile(Statics.iniFileName, iniPlugsTab, true);
     double temp;
     if (rbPlugsName.Checked) temp = 0;
     else if (rbPlugsType.Checked) temp = 1;
     else if (rbPlugsLoad.Checked) temp = 2;
     else temp = 1;
     iniFile.setKey("PlugSort", temp);
     iniFile.setSectList(iniDLWizardPlugDirs, pluginDirs.ToArray());
     List<string> tempList = new List<string>();
     foreach (string s in clbPlugsModList.CheckedItems) tempList.Add(s);
     iniFile.setSectList(iniDLWizardPlugs, tempList.ToArray());
     iniFile.save();
 }
Ejemplo n.º 2
0
 // saving settings after plugin selection
 private void SavePlugsSettings()
 {
     INIFile iniFile = new INIFile(Statics.iniFileName, iniPlugsTab, true);
     iniFile.setKey("PlugSort", rbPlugsName.Checked ? 0d : rbPlugsType.Checked ? 1d : rbPlugsLoad.Checked ? 2d : 2d);
     List<String> items = new List<String>(pluginDirs);
     for (int i = 0; i < items.Count; i++) if (String.Compare(Path.GetFullPath(items[i]), Path.GetFullPath(Statics.fn_statics), true, Statics.Culture) == 0) items.RemoveAt(i--);
     iniFile.setSectList(iniDLWizardPlugDirs, items.ToArray());
     List<String> checkeditems = new List<String>();
     foreach (String item in clbPlugsModList.CheckedItems) if (pluginList.Plugins[item.ToLower(Statics.Culture)].Checked == CheckState.Checked) checkeditems.Add(item);
     iniFile.setSectList(iniDLWizardPlugs, checkeditems.ToArray());
     iniFile.save();
 }