Exemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\MainWindow.xaml"
                ((WPF_UI_Fucker.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.UninitXunlei);

            #line default
            #line hidden
                return;

            case 2:
                this.listbox = ((System.Windows.Controls.ListBox)(target));
                return;

            case 3:
                this.Loading = ((WPF_UI_Fucker.Loading)(target));
                return;

            case 4:
                this.rectangle = ((System.Windows.Shapes.Rectangle)(target));

            #line 91 "..\..\MainWindow.xaml"
                this.rectangle.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.shit);

            #line default
            #line hidden
                return;

            case 5:
                this.Sidebar = ((System.Windows.Controls.Grid)(target));
                return;

            case 6:
                this.Avat = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 7:
                this.Username = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 8:
                this.btnlogout = ((System.Windows.Controls.Button)(target));

            #line 129 "..\..\MainWindow.xaml"
                this.btnlogout.Click += new System.Windows.RoutedEventHandler(this.logout);

            #line default
            #line hidden
                return;

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

            #line 135 "..\..\MainWindow.xaml"
                this.btnexit.Click += new System.Windows.RoutedEventHandler(this.Exit);

            #line default
            #line hidden
                return;

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

            #line 141 "..\..\MainWindow.xaml"
                this.Ranking.Click += new System.Windows.RoutedEventHandler(this.ChangeMode);

            #line default
            #line hidden
                return;

            case 11:
                this.textRanking = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 12:
                this.iconRanking = ((MaterialDesignThemes.Wpf.PackIcon)(target));
                return;

            case 13:
                this.MyFavoriteWorks = ((System.Windows.Controls.Button)(target));

            #line 147 "..\..\MainWindow.xaml"
                this.MyFavoriteWorks.Click += new System.Windows.RoutedEventHandler(this.ChangeMode);

            #line default
            #line hidden
                return;

            case 14:
                this.textMyFavoriteWorks = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 15:
                this.iconMyFavoriteWorks = ((MaterialDesignThemes.Wpf.PackIcon)(target));
                return;

            case 16:
                this.CallSideBar = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 161 "..\..\MainWindow.xaml"
                this.CallSideBar.Click += new System.Windows.RoutedEventHandler(this.Toggle);

            #line default
            #line hidden
                return;

            case 17:
                this.textBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 18:
                this.ModeText = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 19:

            #line 164 "..\..\MainWindow.xaml"
                ((System.Windows.Shapes.Rectangle)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.DragMove);

            #line default
            #line hidden
                return;

            case 20:
                this.button = ((System.Windows.Controls.Button)(target));

            #line 166 "..\..\MainWindow.xaml"
                this.button.Click += new System.Windows.RoutedEventHandler(this.Exit);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }