public Int32 InsertNewItem(IListItemEx obj) {
if (!this._AddedItems.Contains(obj.PIDL) && !String.IsNullOrEmpty(obj.ParsingName) && obj.IsInCurrentFolder(this.CurrentFolder)) {
this.Items.Add(obj);
this._AddedItems.Add(obj.PIDL);
var col = this.AllAvailableColumns.FirstOrDefault(w => w.Value.ID == this.LastSortedColumnId).Value;
this.SetSortCollumn(true, col, this.LastSortOrder, false);
if (this.IsGroupsEnabled) this.SetGroupOrder(false);
var itemIndex = obj.ItemIndex;
return itemIndex;
}
return -1;
}