public MangaInfoControl(MangaEplision.Base.Manga info)
        {
            InitializeComponent();

            this.DataContext = info;
            //Application.Current.ShutdownMode = ShutdownMode.OnExplicitShutdown;
            this.Loaded += new RoutedEventHandler(MangaInfoControl_Loaded);
            this.Unloaded += new RoutedEventHandler(MangaInfoControl_Unloaded);
        }
Exemplo n.º 2
0
        internal void AddToQueue(BookEntry bookEntry, MangaEplision.Base.Manga manga)
        {
            if (DlQueue != null)
            {
                QueueItem qi = new QueueItem(bookEntry, manga);
                if (!DlQueue.Contains(qi) && !Global.GetBookExist(qi.Manga, qi.Book))
                {
                    DlQueue.Add(qi);
                    DlQueueList.ItemsSource = DlQueue;
                    DlQueueList.Items.Refresh();

                    if (isQueueRunning == false)
                        QueueStatuslbl.Content = string.Format("There are currently {0} items in your queue.", DlQueue.Count);
                }
            }
        }