public bool LoadConfig() { OpenConfigDialog OCD = new OpenConfigDialog(Settings); if (OCD.ShowDialog() == DialogResult.OK) { if (Pinball != null) { Pinball.Finish(); } Pinball = new Pinball(); Pinball.Init(OCD.GlobalConfigFilename, OCD.TableFilename, OCD.RomName); DisplayTableElements(); return(true); } else { return(false); } }
public bool LoadConfig() { OpenConfigDialog OCD = new OpenConfigDialog(Settings); if (OCD.ShowDialog() == DialogResult.OK) { if (Pinball != null) { Pinball.Finish(); } Pinball = new Pinball(); Pinball.Init(OCD.GlobalConfigFilename, OCD.TableFilename, OCD.RomName); DisplayTableElements(); return true; } else { return false; } }