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

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

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

            #line 17 "..\..\ExperimentForm.xaml"
                this.btn_StartStory.Click += new System.Windows.RoutedEventHandler(this.StartStory_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.can_Shape = ((System.Windows.Controls.Canvas)(target));
                return;

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

            #line 22 "..\..\ExperimentForm.xaml"
                this.btn_StopStory.Click += new System.Windows.RoutedEventHandler(this.StopTelling_Click);

            #line default
            #line hidden
                return;

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

            #line 23 "..\..\ExperimentForm.xaml"
                this.btn_DrawGraphics.Click += new System.Windows.RoutedEventHandler(this.DrawGraphics_Click);

            #line default
            #line hidden
                return;

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

            #line 24 "..\..\ExperimentForm.xaml"
                this.btn_StopDrawGraphics.Click += new System.Windows.RoutedEventHandler(this.StopDrawing_Click);

            #line default
            #line hidden
                return;

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

            case 9:
                this.txtRandomStory = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ExperimetnForm = ((Threading_project.MainWindow)(target));
                return;

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

            case 3:
                this.lstStory = ((System.Windows.Controls.ListBox)(target));
                return;

            case 4:
                this.can_Shape = ((System.Windows.Controls.Canvas)(target));
                return;

            case 5:
                this.imgRotation = ((System.Windows.Controls.Image)(target));
                return;

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

            #line 28 "..\..\MainWindow.xaml"
                this.btn_StopStory.Click += new System.Windows.RoutedEventHandler(this.StopTelling_Click);

            #line default
            #line hidden
                return;

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

            #line 29 "..\..\MainWindow.xaml"
                this.btn_DrawGraphics.Click += new System.Windows.RoutedEventHandler(this.DrawGraphics_Click);

            #line default
            #line hidden
                return;

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

            #line 30 "..\..\MainWindow.xaml"
                this.btn_StopDrawGraphics.Click += new System.Windows.RoutedEventHandler(this.StopDrawing_Click);

            #line default
            #line hidden
                return;

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

            #line 31 "..\..\MainWindow.xaml"
                this.btnQuit.Click += new System.Windows.RoutedEventHandler(this.Quit_Click);

            #line default
            #line hidden
                return;

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

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

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