Esempio n. 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Window = ((OptionsMenu.MainWindow)(target));
                return;

            case 2:
                this.Menu_Window = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 3:
                this.Title_Bar = ((System.Windows.Shapes.Rectangle)(target));

            #line 136 "..\..\MainWindow.xaml"
                this.Title_Bar.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Title_Bar_MouseDown);

            #line default
            #line hidden
                return;

            case 4:
                this.Title = ((System.Windows.Controls.Label)(target));

            #line 137 "..\..\MainWindow.xaml"
                this.Title.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Title_MouseDown);

            #line default
            #line hidden
                return;

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

            #line 138 "..\..\MainWindow.xaml"
                this.Exit_Button.Click += new System.Windows.RoutedEventHandler(this.Exit_Button_Click);

            #line default
            #line hidden
                return;

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

            #line 139 "..\..\MainWindow.xaml"
                this.Return_Main_Menu.Click += new System.Windows.RoutedEventHandler(this.Return_Main_Menu_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.Sound_Text = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.Toggle_Panel = ((System.Windows.Controls.WrapPanel)(target));
                return;

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

            #line 142 "..\..\MainWindow.xaml"
                this.Sound_On_Button.Click += new System.Windows.RoutedEventHandler(this.Sound_On_Button_Click);

            #line default
            #line hidden
                return;

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

            #line 143 "..\..\MainWindow.xaml"
                this.Sound_Off_Button.Click += new System.Windows.RoutedEventHandler(this.Sound_Off_Button_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.Save_Button = ((System.Windows.Controls.Button)(target));
                return;

            case 12:
                this.Bgm = ((System.Windows.Controls.MediaElement)(target));

            #line 146 "..\..\MainWindow.xaml"
                this.Bgm.MediaEnded += new System.Windows.RoutedEventHandler(this.Bgm_MediaEnded);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Window = ((OptionsMenu.MainWindow)(target));
     return;
     case 2:
     this.Menu_Window = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 3:
     this.Title_Bar = ((System.Windows.Shapes.Rectangle)(target));
     
     #line 136 "..\..\MainWindow.xaml"
     this.Title_Bar.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Title_Bar_MouseDown);
     
     #line default
     #line hidden
     return;
     case 4:
     this.Title = ((System.Windows.Controls.Label)(target));
     
     #line 137 "..\..\MainWindow.xaml"
     this.Title.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Title_MouseDown);
     
     #line default
     #line hidden
     return;
     case 5:
     this.Exit_Button = ((System.Windows.Controls.Button)(target));
     
     #line 138 "..\..\MainWindow.xaml"
     this.Exit_Button.Click += new System.Windows.RoutedEventHandler(this.Exit_Button_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.Return_Main_Menu = ((System.Windows.Controls.Button)(target));
     
     #line 139 "..\..\MainWindow.xaml"
     this.Return_Main_Menu.Click += new System.Windows.RoutedEventHandler(this.Return_Main_Menu_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.Sound_Text = ((System.Windows.Controls.Label)(target));
     return;
     case 8:
     this.Toggle_Panel = ((System.Windows.Controls.WrapPanel)(target));
     return;
     case 9:
     this.Sound_On_Button = ((System.Windows.Controls.Button)(target));
     
     #line 142 "..\..\MainWindow.xaml"
     this.Sound_On_Button.Click += new System.Windows.RoutedEventHandler(this.Sound_On_Button_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.Sound_Off_Button = ((System.Windows.Controls.Button)(target));
     
     #line 143 "..\..\MainWindow.xaml"
     this.Sound_Off_Button.Click += new System.Windows.RoutedEventHandler(this.Sound_Off_Button_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     this.Save_Button = ((System.Windows.Controls.Button)(target));
     return;
     case 12:
     this.Bgm = ((System.Windows.Controls.MediaElement)(target));
     
     #line 146 "..\..\MainWindow.xaml"
     this.Bgm.MediaEnded += new System.Windows.RoutedEventHandler(this.Bgm_MediaEnded);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }