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

            #line 5 "..\..\MainWindow.xaml"
                this.WindowMain.AddHandler(System.Windows.Input.Mouse.MouseMoveEvent, new System.Windows.Input.MouseEventHandler(this.WindowMain_MouseMove));

            #line default
            #line hidden
                return;

            case 2:
                this.TitleBar = ((System.Windows.Controls.TextBlock)(target));

            #line 31 "..\..\MainWindow.xaml"
                this.TitleBar.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.titleBar_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

            #line 34 "..\..\MainWindow.xaml"
                this.ButtonPageSettings.Click += new System.Windows.RoutedEventHandler(this.ButtonPageSettings_Click);

            #line default
            #line hidden
                return;

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

            #line 35 "..\..\MainWindow.xaml"
                this.ButtonPageHome.Click += new System.Windows.RoutedEventHandler(this.ButtonPageHome_Click);

            #line default
            #line hidden
                return;

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

            #line 36 "..\..\MainWindow.xaml"
                this.ButtonPageBackTrack.Click += new System.Windows.RoutedEventHandler(this.ButtonPageBackTrack_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.ButtonMinimise = ((System.Windows.Controls.Button)(target));

            #line 37 "..\..\MainWindow.xaml"
                this.ButtonMinimise.Click += new System.Windows.RoutedEventHandler(this.ButtonMinimise_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.viewList = ((System.Windows.Controls.ListBox)(target));

            #line 44 "..\..\MainWindow.xaml"
                this.viewList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.viewList_SelectionChanged);

            #line default
            #line hidden
                return;

            case 9:
                this.bordervisual = ((System.Windows.Controls.Border)(target));
                return;

            case 10:
                this.rectanglevisual = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 11:
                this.viewer = ((System.Windows.Controls.ItemsControl)(target));
                return;

            case 12:
                this.ButtonSideTabLeft = ((System.Windows.Controls.Button)(target));

            #line 77 "..\..\MainWindow.xaml"
                this.ButtonSideTabLeft.Click += new System.Windows.RoutedEventHandler(this.ButtonSideTabLeft_Click);

            #line default
            #line hidden
                return;

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

            #line 78 "..\..\MainWindow.xaml"
                this.ButtonSideTabRight.Click += new System.Windows.RoutedEventHandler(this.ButtonSideTabRight_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.ButtonTesting = ((System.Windows.Controls.Button)(target));

            #line 79 "..\..\MainWindow.xaml"
                this.ButtonTesting.Click += new System.Windows.RoutedEventHandler(this.ButtonTesting_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.WindowMain = ((nsync.MainWindow)(target));
     
     #line 5 "..\..\MainWindow.xaml"
     this.WindowMain.AddHandler(System.Windows.Input.Mouse.MouseMoveEvent, new System.Windows.Input.MouseEventHandler(this.WindowMain_MouseMove));
     
     #line default
     #line hidden
     return;
     case 2:
     this.TitleBar = ((System.Windows.Controls.TextBlock)(target));
     
     #line 31 "..\..\MainWindow.xaml"
     this.TitleBar.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.titleBar_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 3:
     this.ButtonClose = ((System.Windows.Controls.Button)(target));
     
     #line 32 "..\..\MainWindow.xaml"
     this.ButtonClose.Click += new System.Windows.RoutedEventHandler(this.ButtonClose_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.ButtonPageSettings = ((System.Windows.Controls.Button)(target));
     
     #line 34 "..\..\MainWindow.xaml"
     this.ButtonPageSettings.Click += new System.Windows.RoutedEventHandler(this.ButtonPageSettings_Click);
     
     #line default
     #line hidden
     
     #line 34 "..\..\MainWindow.xaml"
     this.ButtonPageSettings.MouseEnter += new System.Windows.Input.MouseEventHandler(this.ButtonPageSettings_MouseEnter);
     
     #line default
     #line hidden
     
     #line 34 "..\..\MainWindow.xaml"
     this.ButtonPageSettings.MouseLeave += new System.Windows.Input.MouseEventHandler(this.ButtonPage_MouseLeave);
     
     #line default
     #line hidden
     return;
     case 5:
     this.ButtonPageHome = ((System.Windows.Controls.Button)(target));
     
     #line 35 "..\..\MainWindow.xaml"
     this.ButtonPageHome.Click += new System.Windows.RoutedEventHandler(this.ButtonPageHome_Click);
     
     #line default
     #line hidden
     
     #line 35 "..\..\MainWindow.xaml"
     this.ButtonPageHome.MouseEnter += new System.Windows.Input.MouseEventHandler(this.ButtonPageHome_MouseEnter);
     
     #line default
     #line hidden
     
     #line 35 "..\..\MainWindow.xaml"
     this.ButtonPageHome.MouseLeave += new System.Windows.Input.MouseEventHandler(this.ButtonPage_MouseLeave);
     
     #line default
     #line hidden
     return;
     case 6:
     this.ButtonPageTrackBack = ((System.Windows.Controls.Button)(target));
     
     #line 36 "..\..\MainWindow.xaml"
     this.ButtonPageTrackBack.Click += new System.Windows.RoutedEventHandler(this.ButtonPageTrackBack_Click);
     
     #line default
     #line hidden
     
     #line 36 "..\..\MainWindow.xaml"
     this.ButtonPageTrackBack.MouseEnter += new System.Windows.Input.MouseEventHandler(this.ButtonPageTrackBack_MouseEnter);
     
     #line default
     #line hidden
     
     #line 36 "..\..\MainWindow.xaml"
     this.ButtonPageTrackBack.MouseLeave += new System.Windows.Input.MouseEventHandler(this.ButtonPage_MouseLeave);
     
     #line default
     #line hidden
     return;
     case 7:
     this.ButtonMinimise = ((System.Windows.Controls.Button)(target));
     
     #line 37 "..\..\MainWindow.xaml"
     this.ButtonMinimise.Click += new System.Windows.RoutedEventHandler(this.ButtonMinimise_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.viewList = ((System.Windows.Controls.ListBox)(target));
     
     #line 44 "..\..\MainWindow.xaml"
     this.viewList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.viewList_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 9:
     this.bordervisual = ((System.Windows.Controls.Border)(target));
     return;
     case 10:
     this.rectanglevisual = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 11:
     this.viewer = ((System.Windows.Controls.ItemsControl)(target));
     return;
     case 12:
     this.ButtonSideTabLeft = ((System.Windows.Controls.Button)(target));
     
     #line 77 "..\..\MainWindow.xaml"
     this.ButtonSideTabLeft.Click += new System.Windows.RoutedEventHandler(this.ButtonSideTabLeft_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.ButtonSideTabRight = ((System.Windows.Controls.Button)(target));
     
     #line 78 "..\..\MainWindow.xaml"
     this.ButtonSideTabRight.Click += new System.Windows.RoutedEventHandler(this.ButtonSideTabRight_Click);
     
     #line default
     #line hidden
     return;
     case 14:
     this.PageToolTip = ((System.Windows.Controls.Border)(target));
     return;
     case 15:
     this.PageToolTipText = ((System.Windows.Controls.TextBlock)(target));
     return;
     }
     this._contentLoaded = true;
 }