Пример #1
0
 protected virtual void OnTitleWatched(TitleEventArgs e)
 {
     if (this.TitleWatched != null)
     {
         this.TitleWatched(this, e);
     }
 }
Пример #2
0
 protected virtual void OnTitleDeleted(TitleEventArgs e)
 {
     if (TitleDeleted != null)
     {
         TitleDeleted(this, e);
     }
 }
Пример #3
0
        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);
        }
Пример #4
0
 protected virtual void OnTitleWatched(TitleEventArgs e)
 {
     if (this.TitleWatched != null)
         this.TitleWatched(this, e);
 }
Пример #5
0
 public void WatchTitle(OMLEngine.Title item)
 {
     TitleEventArgs t = new TitleEventArgs(item);
     this.OnTitleWatched(t);
 }
Пример #6
0
 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);
 }
Пример #7
0
 protected virtual void OnTitleDeleted(TitleEventArgs e)
 {
     if (TitleDeleted != null)
         TitleDeleted(this, e);
 }
Пример #8
0
        public void WatchTitle(OMLEngine.Title item)
        {
            TitleEventArgs t = new TitleEventArgs(item);

            this.OnTitleWatched(t);
        }