protected virtual void OnTitleWatched(TitleEventArgs e) { if (this.TitleWatched != null) { this.TitleWatched(this, e); } }
protected virtual void OnTitleDeleted(TitleEventArgs e) { if (TitleDeleted != null) { TitleDeleted(this, e); } }
public void DeleteTitle(OMLEngine.Title item) { foreach (Disk d in item.Disks) { string status = deleteDisk(d); if (!string.IsNullOrEmpty(status)) { this.MediaCenterEnvironment.Dialog( string.Format("Unable to delete this movie: {0}", status), "Failed", DialogButtons.Ok, 5, false); return; } else { TitleCollectionManager.DeleteTitle(item); } } TitleEventArgs t = new TitleEventArgs(item); this.OnTitleDeleted(t); }
protected virtual void OnTitleWatched(TitleEventArgs e) { if (this.TitleWatched != null) this.TitleWatched(this, e); }
public void WatchTitle(OMLEngine.Title item) { TitleEventArgs t = new TitleEventArgs(item); this.OnTitleWatched(t); }
protected virtual void OnTitleDeleted(TitleEventArgs e) { if (TitleDeleted != null) TitleDeleted(this, e); }