Example #1
0
        private void TrackView_ItemClicked(object sender, ClearUC.ItemClickedEventArgs e)
        {
            PageItemCollection PageItems = CurrentItems;
            OrderManager       om        = new OrderManager();

            LAPP.IO.FileItem playF = null;
            int index = TrackView.Items.IndexOf(e.Item);

            for (int i = 0; PageItems.Count > i; i++)
            {
                if (PageItems[i].ListItem == TrackView.Items[index])
                {
                    playF = (LAPP.IO.FileItem)PageItems[i];
                    break;
                }
            }

            if (playF != null)
            {
                om.Scan(PageItems);

                PlayFile?.Invoke(this, new PlayFileEventArgs()
                {
                    Manager = om, File = playF
                });
            }
        }