Exemple #1
0
 private void ButtonLoadConfig(object sender, RoutedEventArgs e)
 {
     if (File.Exists(Settings.ConfigName))
         Settings = Settings.Deserialize();
     else
         MessageBox.Show("No config found");
 }
Exemple #2
0
        public Launcher(Settings settings)
        {
            _settings = settings;

            Addons = new ObservableCollection<Addon>();
            UpdateAddons();
            HandleCheckBoxChanged();    // really just a way to update the modline at the start
        }
Exemple #3
0
 public void Init()
 {
     Settings = File.Exists(Settings.ConfigName) ? Settings.Deserialize() : new Settings();
     Launcher = new Launcher(Settings);
     Downloader = new Downloader();
 }