예제 #1
0
 void viewPlayCmd_Invoked(object sender, EventArgs e)
 {
     OMLApplication.Current.CatchMoreInfo();
     if (this.Owner is GalleryPage && ((GalleryPage)this.Owner).SelectedItemCommand is MovieItem)
     {
         GalleryPage page  = this.Owner as GalleryPage;
         MovieItem   movie = page.SelectedItemCommand as MovieItem;
         movie.PlayAllDisks();
     }
 }
예제 #2
0
 void Current_TitleWatched(object sender, TitleEventArgs e)
 {
     if (this.titles != null && this.titles.IndexOf(e.Title) > -1)
     {
         this.titles.Remove(e.Title);
         foreach (Object o in this.m_listContent)
         {
             if (o is MovieItem)
             {
                 MovieItem item = o as MovieItem;
                 if (item.TitleObject == e.Title)
                 {
                     this.m_listContent.Remove(item);
                     break;
                 }
             }
         }
     }
 }
예제 #3
0
        private void StoreSlowData(object args)
        {
            SlowDataResult result = (SlowDataResult)args;

            _pendingPictureAcquires.Remove(result.Index);

            if (IsDisposed || !IsItemAvailable(result.Index))
            {
                if (result.PicturePath != null)
                {
                    ////File.Delete(result.PicturePath);
                }

                return;
            }

            MovieItem t = (MovieItem)this[result.Index];

            t.DefaultImage = new Image("file://" + result.PicturePath);
            //t.SetPicture(result.PicturePath);
        }
예제 #4
0
        void Current_TitleDeleted(object sender, TitleEventArgs e)
        {
            if (this.titles != null && this.titles.IndexOf(e.Title) > -1)
            {
                this.titles.Remove(e.Title);
                foreach (Object o in this.m_listContent)
                {
                    if (o is MovieItem)
                    {
                        MovieItem item = o as MovieItem;
                        if (item.TitleObject == e.Title)
                        {
                            this.m_listContent.Remove(item);
                            break;
                        }
                    }
                }
            }

            //if (((VirtualList)this.m_listContent).IndexOf(.IsItemAvailable(idx))
            //{
            //    commandForItem = this.m_listContent[idx];
            //}
        }
예제 #5
0
        protected override void OnRequestItem(int index, ItemRequestCallback callback)
        {
            MovieItem t = (MovieItem)this.internalArray[index];//ThumbnailData(this, index.ToString(CultureInfo.CurrentUICulture));

            callback(this, index, t);
        }