/// <summary>
 /// Initializes a new instance of the <see cref="Configuration"/> class.
 /// </summary>
 public Configuration()
 {
     if (File.Exists("musicpicker.json"))
     {
         Load();
     }
     else
     {
         Model = new ConfigurationModel()
         {
             Paths = new List<string>()
         };
         Save();
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="LibraryPathsForm"/> class.
 /// </summary>
 /// <param name="configuration">The configuration.</param>
 /// <param name="callback">The callback.</param>
 public LibraryPathsForm(ConfigurationModel configuration, LibraryPathsEvent callback)
 {
     this.callback = callback;
     this.configuration = configuration;
     InitializeComponent();
 }
 /// <summary>
 /// Loads this instance from a json file.
 /// </summary>
 public void Load()
 {
     Model = JsonConvert.DeserializeObject<ConfigurationModel>(File.ReadAllText("musicpicker.json"));
 }