private void button1_Click(object sender, EventArgs e) // Duplicate Effect { var index = dataGridViewEventTemplates.SelectedRows[0].Index; var eventTemp = LoadedAsset.GetAllActions().ElementAt(index).Item1; var index2 = dataGridViewEffects.SelectedRows[0].Index; var effect = LoadedAsset.GetAllEventEffects()[eventTemp].ElementAt(index2); LoadedAsset.AddActionEffect(eventTemp, effect.ToDTO()); SetModified(); dataGridViewEventTemplates_SelectionChanged(sender, e); }