Exemple #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWin = ((myThunder.MainWindow)(target));

            #line 8 "..\..\..\MainWindow.xaml"
                this.mainWin.MouseMove += new System.Windows.Input.MouseEventHandler(this.myf_DragWindow);

            #line default
            #line hidden
                return;

            case 2:
                this.row1 = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.Setting = ((myWPFCustomControls.myImageButton)(target));

            #line 60 "..\..\..\MainWindow.xaml"
                this.Setting.Click += new System.Windows.RoutedEventHandler(this.myf_ResizeWindow);

            #line default
            #line hidden
                return;

            case 4:
                this.ResizeWindow_min = ((myWPFCustomControls.myImageButton)(target));

            #line 71 "..\..\..\MainWindow.xaml"
                this.ResizeWindow_min.Click += new System.Windows.RoutedEventHandler(this.myf_ResizeWindow);

            #line default
            #line hidden
                return;

            case 5:
                this.ResizeWindow_mxn = ((myWPFCustomControls.myImageButton)(target));

            #line 82 "..\..\..\MainWindow.xaml"
                this.ResizeWindow_mxn.Click += new System.Windows.RoutedEventHandler(this.myf_ResizeWindow);

            #line default
            #line hidden
                return;

            case 6:
                this.ResizeWindow_xn = ((myWPFCustomControls.myImageButton)(target));

            #line 93 "..\..\..\MainWindow.xaml"
                this.ResizeWindow_xn.Click += new System.Windows.RoutedEventHandler(this.myf_ResizeWindow);

            #line default
            #line hidden
                return;

            case 7:
                this.NewUrl = ((myWPFCustomControls.myImageButton)(target));

            #line 114 "..\..\..\MainWindow.xaml"
                this.NewUrl.Click += new System.Windows.RoutedEventHandler(this.myf_Task);

            #line default
            #line hidden
                return;

            case 8:
                this.Pause_Play = ((myWPFCustomControls.myImageButton)(target));

            #line 125 "..\..\..\MainWindow.xaml"
                this.Pause_Play.Click += new System.Windows.RoutedEventHandler(this.myf_Task);

            #line default
            #line hidden
                return;

            case 9:
                this.Stop = ((myWPFCustomControls.myImageButton)(target));

            #line 136 "..\..\..\MainWindow.xaml"
                this.Stop.Click += new System.Windows.RoutedEventHandler(this.myf_Task);

            #line default
            #line hidden
                return;

            case 10:
                this.ctrl_download_list = ((System.Windows.Controls.ListBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.mainWin = ((myThunder.MainWindow)(target));
     
     #line 8 "..\..\..\MainWindow.xaml"
     this.mainWin.MouseMove += new System.Windows.Input.MouseEventHandler(this.myf_DragWindow);
     
     #line default
     #line hidden
     return;
     case 2:
     this.row1 = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.Setting = ((myWPFCustomControls.myImageButton)(target));
     
     #line 60 "..\..\..\MainWindow.xaml"
     this.Setting.Click += new System.Windows.RoutedEventHandler(this.myf_ResizeWindow);
     
     #line default
     #line hidden
     return;
     case 4:
     this.ResizeWindow_min = ((myWPFCustomControls.myImageButton)(target));
     
     #line 71 "..\..\..\MainWindow.xaml"
     this.ResizeWindow_min.Click += new System.Windows.RoutedEventHandler(this.myf_ResizeWindow);
     
     #line default
     #line hidden
     return;
     case 5:
     this.ResizeWindow_mxn = ((myWPFCustomControls.myImageButton)(target));
     
     #line 82 "..\..\..\MainWindow.xaml"
     this.ResizeWindow_mxn.Click += new System.Windows.RoutedEventHandler(this.myf_ResizeWindow);
     
     #line default
     #line hidden
     return;
     case 6:
     this.ResizeWindow_xn = ((myWPFCustomControls.myImageButton)(target));
     
     #line 93 "..\..\..\MainWindow.xaml"
     this.ResizeWindow_xn.Click += new System.Windows.RoutedEventHandler(this.myf_ResizeWindow);
     
     #line default
     #line hidden
     return;
     case 7:
     this.NewUrl = ((myWPFCustomControls.myImageButton)(target));
     
     #line 114 "..\..\..\MainWindow.xaml"
     this.NewUrl.Click += new System.Windows.RoutedEventHandler(this.myf_Task);
     
     #line default
     #line hidden
     return;
     case 8:
     this.Pause_Play = ((myWPFCustomControls.myImageButton)(target));
     
     #line 125 "..\..\..\MainWindow.xaml"
     this.Pause_Play.Click += new System.Windows.RoutedEventHandler(this.myf_Task);
     
     #line default
     #line hidden
     return;
     case 9:
     this.Stop = ((myWPFCustomControls.myImageButton)(target));
     
     #line 136 "..\..\..\MainWindow.xaml"
     this.Stop.Click += new System.Windows.RoutedEventHandler(this.myf_Task);
     
     #line default
     #line hidden
     return;
     case 10:
     this.ctrl_download_list = ((System.Windows.Controls.ListBox)(target));
     return;
     }
     this._contentLoaded = true;
 }