private void tbSave_Click(object sender, EventArgs e) { var lo = (List <BattletoadsGameObject>)dgvGameObjects.DataSource; loader.save(romdata, new GameObjectList(lo.ConvertAll(x => x as GameObject))); saveRom(); tbSave.Enabled = false; }