private int GetActionIndex() { if (this.listViewActions.SelectedIndices.Count > 0) return this.listViewActions.SelectedIndices[0]; return -1; }