Exemple #1
0
        //initilaize Items
        public List <Item> InitializeItems(string path)
        {
            ItemProvider itemProvider = new ItemProvider();
            var          items        = itemProvider.GetItems(path);

            return(items);
        }
        public void NextImage(TreeView ItemTreeView, string path)
        {
            List <Item>  items        = new List <Item>();
            ItemProvider itemProvider = new ItemProvider();

            items = itemProvider.GetItems(path);
            int index = ItemTreeView.Items.IndexOf(ItemTreeView.SelectedItem);

            index++;

            if (items.Count > 0)
            {
                ItemTreeView.SelectItem(items[index]);
            }
        }