public void importPreset(String filename) { sweetConfig newp = new sweetConfig(filename); String presetname = Path.GetFileNameWithoutExtension(filename); configPreset npreset = new configPreset(presetname, game, newp); npreset.savePreset(); game.presets.Add(npreset); refreshUI(); }
private void button6_Click(object sender, EventArgs e) { if (textBox3.Text != "") { activePreset.name = textBox3.Text; activePreset.savePreset(); } refreshUI(); }
public void importPreset(String filename) { sweetConfig newp = new sweetConfig(filename); String presetname = Path.GetFileNameWithoutExtension(filename); configPreset npreset = new configPreset(presetname, game, newp); npreset.savePreset(); game.presets.Add(npreset); refreshUI(); }