private void buttonRemoveAttRule_Click(object sender, EventArgs e) { var index = dataGridViewEventTemplates.SelectedRows[0].Index; var actionTemp = LoadedAsset.GetAllActions().ElementAt(index).Item1; LoadedAsset.RemoveAction(actionTemp); SetModified(); RefreshEventList(); }