示例#1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ThisWindow = ((Lab1_Sec.MainWindow)(target));
                return;

            case 2:
                this.StartBtn = ((System.Windows.Controls.Button)(target));

            #line 19 "..\..\..\..\View\MainWindow.xaml"
                this.StartBtn.Click += new System.Windows.RoutedEventHandler(this.StartBtn_Click);

            #line default
            #line hidden
                return;

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

            #line 20 "..\..\..\..\View\MainWindow.xaml"
                this.StopBtn.Click += new System.Windows.RoutedEventHandler(this.StopBtn_Click);

            #line default
            #line hidden
                return;

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

            #line 21 "..\..\..\..\View\MainWindow.xaml"
                this.ResetBtn.Click += new System.Windows.RoutedEventHandler(this.ResetBtn_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.TimerText = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ThisWindow = ((Lab1_Sec.MainWindow)(target));
                return;

            case 2:
                this.PlusBtn = ((System.Windows.Controls.Button)(target));

            #line 19 "..\..\..\..\View\MainWindow.xaml"
                this.PlusBtn.Click += new System.Windows.RoutedEventHandler(this.Btn_Click);

            #line default
            #line hidden
                return;

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

            #line 20 "..\..\..\..\View\MainWindow.xaml"
                this.MinusBtn.Click += new System.Windows.RoutedEventHandler(this.Btn_Click);

            #line default
            #line hidden
                return;

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

            #line 21 "..\..\..\..\View\MainWindow.xaml"
                this.MultBtn.Click += new System.Windows.RoutedEventHandler(this.Btn_Click);

            #line default
            #line hidden
                return;

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

            #line 22 "..\..\..\..\View\MainWindow.xaml"
                this.DivideBtn.Click += new System.Windows.RoutedEventHandler(this.Btn_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.A = ((System.Windows.Controls.TextBox)(target));

            #line 23 "..\..\..\..\View\MainWindow.xaml"
                this.A.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.NumberValidationTextBox);

            #line default
            #line hidden
                return;

            case 7:
                this.B = ((System.Windows.Controls.TextBox)(target));

            #line 24 "..\..\..\..\View\MainWindow.xaml"
                this.B.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.NumberValidationTextBox);

            #line default
            #line hidden
                return;

            case 8:
                this.AnswerLabel = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }