Example #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.主界面 = ((WpfApplication1.Page1)(target));
                return;

            case 2:

            #line 14 "..\..\Page1.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 3:

            #line 15 "..\..\Page1.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_4);

            #line default
            #line hidden
                return;

            case 4:

            #line 16 "..\..\Page1.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);

            #line default
            #line hidden
                return;

            case 5:

            #line 17 "..\..\Page1.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_2);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.完成界面 = ((WpfApplication1.Page1)(target));
                return;

            case 2:
                this.AwardImage = ((System.Windows.Controls.Image)(target));
                return;

            case 3:
                this.CaptionText = ((System.Windows.Controls.Label)(target));
                return;

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

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

            #line 23 "..\..\CongratulationPage.xaml"
                this.ContinueButton.Click += new System.Windows.RoutedEventHandler(this.ContinueOrRestart);

            #line default
            #line hidden
                return;

            case 6:

            #line 28 "..\..\CongratulationPage.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Example #3
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Page = ((WpfApplication1.Page1)(target));
     return;
     case 2:
     this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
     return;
     }
     this._contentLoaded = true;
 }