public ListViewCommandEventArgs(ListViewItem item, object commandSource, CommandEventArgs originalArgs) : base(originalArgs) { _item = item; _commandSource = commandSource; string cmdName = originalArgs.CommandName; if (String.Compare(cmdName, ListView.SelectCommandName, true, CultureInfo.InvariantCulture) == 0) { _commandType = ListViewCommandType.Select; } else if (String.Compare(cmdName, ListView.EditCommandName, true, CultureInfo.InvariantCulture) == 0) { _commandType = ListViewCommandType.Edit; } else if (String.Compare(cmdName, ListView.UpdateCommandName, true, CultureInfo.InvariantCulture) == 0) { _commandType = ListViewCommandType.Update; } else if (String.Compare(cmdName, ListView.CancelEditCommandName, true, CultureInfo.InvariantCulture) == 0) { _commandType = ListViewCommandType.CancelEdit; } else if (String.Compare(cmdName, ListView.DeleteCommandName, true, CultureInfo.InvariantCulture) == 0) { _commandType = ListViewCommandType.Delete; } else { _commandType = ListViewCommandType.Custom; } }