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(); } }
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; } } } } }
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); }
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]; //} }
protected override void OnRequestItem(int index, ItemRequestCallback callback) { MovieItem t = (MovieItem)this.internalArray[index];//ThumbnailData(this, index.ToString(CultureInfo.CurrentUICulture)); callback(this, index, t); }