Exemple #1
0
        ContextMenu Overview_ContextMenu(long rowIndex, int colIndex)
        {
            ListItem listItem = rowIndex >= 0 && rowIndex < Overview.DataSource.Count ? (ListItem)Overview.DataSource[rowIndex] : null;

            return(NodeUtil.FolderItemsContextMenu(Data.FolderItems,
                                                   listItem,
                                                   delegate()
            {
                if (listItem != null && !Overview.RowsSelection.Contains(rowIndex))
                {
                    Data.DeleteItem(listItem);
                }
                else
                {
                    DeleteSelectedItems();
                }
            }));
        }