private void ButtonRemoveActionClick(object sender, EventArgs e)
{
int index = this.GetActionIndex();
if (this._enemy != null && index >= 0)
{
this._enemy.actions.RemoveAt(index);
this.RefreshActions();
this.listViewActions.Focus();
this.ListViewActionsSelectedIndexChanged(sender, e);
}
if (this.listViewActions.Items.Count > 0)
this.listViewActions.Items[index.Clamp(0, this.listViewActions.Items.Count - 1)].Selected = true;
}