public DownloadTaskElement(BookInfo book, DownloadTaskList downloadmanager)
        {
            InitializeComponent();
            _book                = book;
            _downloadmanager     = downloadmanager;
            _download            = new Download(book, Setting.downloadPath);
            _download.Finish    += new Download.FinishedEventHandler(_download_Finish);
            _download.Exception += new Download.ExceptionEventHandler(_download_Exception);
            _download.Progress  += new Download.ProgressEventHandler(_download_Progress);


            this.Exception += new ExceptionEventHandler(downloadmanager.Exception);
            this.Finish    += new FinishEventHandler(downloadmanager.Finish);
            this.Status     = TaskStatus.Waiting;
            initUI();
        }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.userControl = ((eReading.DownloadTaskList)(target));
                return;

            case 2:
                this.taskList = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 3:
                this.close = ((System.Windows.Controls.Button)(target));

            #line 35 "..\..\..\DownloadTaskList.xaml"
                this.close.Click += new System.Windows.RoutedEventHandler(this.close_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Example #3
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 2 "..\..\..\MainWindow.xaml"
     ((eReading.MainWindow)(target)).Closed += new System.EventHandler(this.Window_Closed);
     
     #line default
     #line hidden
     
     #line 2 "..\..\..\MainWindow.xaml"
     ((eReading.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);
     
     #line default
     #line hidden
     return;
     case 2:
     this.searchScroll = ((System.Windows.Controls.ScrollViewer)(target));
     return;
     case 3:
     this.searchResult = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 4:
     this.downloadList = ((System.Windows.Controls.Button)(target));
     
     #line 32 "..\..\..\MainWindow.xaml"
     this.downloadList.Click += new System.Windows.RoutedEventHandler(this.downloadList_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.helpButton = ((System.Windows.Controls.Button)(target));
     
     #line 52 "..\..\..\MainWindow.xaml"
     this.helpButton.Click += new System.Windows.RoutedEventHandler(this.helpButton_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.settings = ((System.Windows.Controls.Button)(target));
     
     #line 72 "..\..\..\MainWindow.xaml"
     this.settings.Click += new System.Windows.RoutedEventHandler(this.settings_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.help = ((eReading.Help)(target));
     return;
     case 8:
     this.loadingLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 9:
     this.searchBox = ((eReading.SearchBox)(target));
     return;
     case 10:
     this.downloadTaskList = ((eReading.DownloadTaskList)(target));
     return;
     case 11:
     this.bookDetail1 = ((eReading.BookDetail)(target));
     return;
     case 12:
     this.message = ((System.Windows.Controls.Label)(target));
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.userControl = ((eReading.DownloadTaskList)(target));
     return;
     case 2:
     this.taskList = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 3:
     this.close = ((System.Windows.Controls.Button)(target));
     
     #line 35 "..\..\..\DownloadTaskList.xaml"
     this.close.Click += new System.Windows.RoutedEventHandler(this.close_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
        public DownloadTaskElement(BookInfo book, DownloadTaskList downloadmanager)
        {
            InitializeComponent();
            _book = book;
            _downloadmanager = downloadmanager;
            _download = new Download(book, Setting.downloadPath);
            _download.Finish += new Download.FinishedEventHandler(_download_Finish);
            _download.Exception += new Download.ExceptionEventHandler(_download_Exception);
            _download.Progress += new Download.ProgressEventHandler(_download_Progress);


            this.Exception += new ExceptionEventHandler(downloadmanager.Exception);
            this.Finish += new FinishEventHandler(downloadmanager.Finish);
            this.Status = TaskStatus.Waiting;
            initUI();
        }
Example #6
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 2 "..\..\..\MainWindow.xaml"
                ((eReading.MainWindow)(target)).Closed += new System.EventHandler(this.Window_Closed);

            #line default
            #line hidden

            #line 2 "..\..\..\MainWindow.xaml"
                ((eReading.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.searchScroll = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 3:
                this.searchResult = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 4:
                this.downloadList = ((System.Windows.Controls.Button)(target));

            #line 32 "..\..\..\MainWindow.xaml"
                this.downloadList.Click += new System.Windows.RoutedEventHandler(this.downloadList_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.helpButton = ((System.Windows.Controls.Button)(target));

            #line 52 "..\..\..\MainWindow.xaml"
                this.helpButton.Click += new System.Windows.RoutedEventHandler(this.helpButton_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.settings = ((System.Windows.Controls.Button)(target));

            #line 72 "..\..\..\MainWindow.xaml"
                this.settings.Click += new System.Windows.RoutedEventHandler(this.settings_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.help = ((eReading.Help)(target));
                return;

            case 8:
                this.loadingLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.searchBox = ((eReading.SearchBox)(target));
                return;

            case 10:
                this.downloadTaskList = ((eReading.DownloadTaskList)(target));
                return;

            case 11:
                this.bookDetail1 = ((eReading.BookDetail)(target));
                return;

            case 12:
                this.message = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }