public void ChangeProfile(DatabaseContext_Profile db)
 {
     _db = db;
     ModControls.Clear();
     _db.GetAll <Mod>("mods").ToList().ForEach(x =>
     {
         ModControls.Add(new Mod_Control(x, _db));
     });
 }
 public void AddModToGUI(Mod m)
 {
     _db.GetCollection <Mod>("mods").Insert(m);
     ModControls.Add(new Mod_Control(m, _db));
     Mods_View.Items.Refresh();
 }
 public void RemoveMod(string fileId, int index)
 {
     _db.GetCollection <Mod>("mods").Delete(x => x.FileId == fileId);
     ModControls.RemoveAt(index);
     Mods_View.Items.Refresh();
 }