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(); }