private void openFileDialogAddMod_FileOk(object sender, CancelEventArgs e) { Sims3ModFile modFile = new Sims3ModFile(openFileDialogMods.FileName, Application.StartupPath); ModList.Add(modFile); comboBoxMods.Items.Add(modFile.ModName); comboBoxMods.SelectedIndex++; richTextBox1.Text = modFile.Description; }
private void LoadModList() { if (File.Exists("Mods.modlist")) { string[] mods = File.ReadAllLines("Mods.modlist"); foreach (string mod in mods) { Sims3ModFile modFile = new Sims3ModFile(mod, Application.StartupPath); ModList.Add(modFile); comboBoxMods.Items.Add(modFile.ModName); comboBoxMods.SelectedIndex++; richTextBox1.Text = modFile.Description; } } }