コード例 #1
0
 private void btnSecureDwnld_Click(object sender, RoutedEventArgs e)
 {
     ControlCenter.Applications.SecureDownload.Downloader dwnld = new ControlCenter.Applications.SecureDownload.Downloader();
     dwnld.Show();
     this.WindowState = WindowState.Minimized;
 }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DownloaderWindow = ((ControlCenter.Applications.SecureDownload.Downloader)(target));

            #line 4 "..\..\..\..\Applications\SecureDownload\Downloader.xaml"
                this.DownloaderWindow.Closing += new System.ComponentModel.CancelEventHandler(this.DownloaderWindow_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.txtURL = ((System.Windows.Controls.TextBox)(target));
                return;

            case 3:
                this.progressDownload = ((System.Windows.Controls.ProgressBar)(target));
                return;

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

            #line 14 "..\..\..\..\Applications\SecureDownload\Downloader.xaml"
                this.btnDownload.Click += new System.Windows.RoutedEventHandler(this.btnDownload_Click);

            #line default
            #line hidden
                return;

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

            #line 15 "..\..\..\..\Applications\SecureDownload\Downloader.xaml"
                this.btnCancel.Click += new System.Windows.RoutedEventHandler(this.btnCancel_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.lblProgress = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.txtURLSecure = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.progressDownloadSecure = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 9:
                this.btnDownloadSecure = ((System.Windows.Controls.Button)(target));

            #line 29 "..\..\..\..\Applications\SecureDownload\Downloader.xaml"
                this.btnDownloadSecure.Click += new System.Windows.RoutedEventHandler(this.btnDownloadSecure_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.btnCancelSecure = ((System.Windows.Controls.Button)(target));

            #line 30 "..\..\..\..\Applications\SecureDownload\Downloader.xaml"
                this.btnCancelSecure.Click += new System.Windows.RoutedEventHandler(this.btnCancelSecure_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.txtProgressSecure = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }