private void ButtonLoadConfig(object sender, RoutedEventArgs e) { if (File.Exists(Settings.ConfigName)) Settings = Settings.Deserialize(); else MessageBox.Show("No config found"); }
public Launcher(Settings settings) { _settings = settings; Addons = new ObservableCollection<Addon>(); UpdateAddons(); HandleCheckBoxChanged(); // really just a way to update the modline at the start }
public void Init() { Settings = File.Exists(Settings.ConfigName) ? Settings.Deserialize() : new Settings(); Launcher = new Launcher(Settings); Downloader = new Downloader(); }