コード例 #1
0
ファイル: MainWindow.g.cs プロジェクト: bzaragoz/ElevatorApp
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.winMain = ((ElevatorWPFApp.MainWindow)(target));
     return;
     case 2:
     this.btnOne = ((System.Windows.Controls.Button)(target));
     
     #line 6 "..\..\MainWindow.xaml"
     this.btnOne.Click += new System.Windows.RoutedEventHandler(this.btn_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.btnTwo = ((System.Windows.Controls.Button)(target));
     
     #line 7 "..\..\MainWindow.xaml"
     this.btnTwo.Click += new System.Windows.RoutedEventHandler(this.btn_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.btnThree = ((System.Windows.Controls.Button)(target));
     
     #line 8 "..\..\MainWindow.xaml"
     this.btnThree.Click += new System.Windows.RoutedEventHandler(this.btn_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.btnFour = ((System.Windows.Controls.Button)(target));
     
     #line 9 "..\..\MainWindow.xaml"
     this.btnFour.Click += new System.Windows.RoutedEventHandler(this.btn_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.btnFive = ((System.Windows.Controls.Button)(target));
     
     #line 10 "..\..\MainWindow.xaml"
     this.btnFive.Click += new System.Windows.RoutedEventHandler(this.btn_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.btnSix = ((System.Windows.Controls.Button)(target));
     
     #line 11 "..\..\MainWindow.xaml"
     this.btnSix.Click += new System.Windows.RoutedEventHandler(this.btn_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.btnSeven = ((System.Windows.Controls.Button)(target));
     
     #line 12 "..\..\MainWindow.xaml"
     this.btnSeven.Click += new System.Windows.RoutedEventHandler(this.btn_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.btnEight = ((System.Windows.Controls.Button)(target));
     
     #line 13 "..\..\MainWindow.xaml"
     this.btnEight.Click += new System.Windows.RoutedEventHandler(this.btn_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.btnNine = ((System.Windows.Controls.Button)(target));
     
     #line 14 "..\..\MainWindow.xaml"
     this.btnNine.Click += new System.Windows.RoutedEventHandler(this.btn_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     this.btnTen = ((System.Windows.Controls.Button)(target));
     
     #line 15 "..\..\MainWindow.xaml"
     this.btnTen.Click += new System.Windows.RoutedEventHandler(this.btn_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     this.lblKoneFloor = ((System.Windows.Controls.Label)(target));
     return;
     case 13:
     this.lblOtisFloor = ((System.Windows.Controls.Label)(target));
     return;
     case 14:
     this.lblThyssenKruppFloor = ((System.Windows.Controls.Label)(target));
     return;
     case 15:
     this.lblSchindlerFloor = ((System.Windows.Controls.Label)(target));
     return;
     case 16:
     this.cboxElevator = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 17:
     this.lblKoneStop = ((System.Windows.Controls.Label)(target));
     
     #line 26 "..\..\MainWindow.xaml"
     this.lblKoneStop.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lblStop_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 18:
     this.lblOtisStop = ((System.Windows.Controls.Label)(target));
     
     #line 27 "..\..\MainWindow.xaml"
     this.lblOtisStop.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lblStop_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 19:
     this.lblSchindlerStop = ((System.Windows.Controls.Label)(target));
     
     #line 28 "..\..\MainWindow.xaml"
     this.lblSchindlerStop.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lblStop_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 20:
     this.lblThyssenKruppStop = ((System.Windows.Controls.Label)(target));
     
     #line 29 "..\..\MainWindow.xaml"
     this.lblThyssenKruppStop.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lblStop_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 21:
     this.lblKoneStatus = ((System.Windows.Controls.Label)(target));
     
     #line 30 "..\..\MainWindow.xaml"
     this.lblKoneStatus.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lblStop_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 22:
     this.lblOtisStatus = ((System.Windows.Controls.Label)(target));
     
     #line 31 "..\..\MainWindow.xaml"
     this.lblOtisStatus.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lblStop_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 23:
     this.lblSchindlerStatus = ((System.Windows.Controls.Label)(target));
     
     #line 32 "..\..\MainWindow.xaml"
     this.lblSchindlerStatus.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lblStop_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 24:
     this.lblThyssenKruppStatus = ((System.Windows.Controls.Label)(target));
     
     #line 33 "..\..\MainWindow.xaml"
     this.lblThyssenKruppStatus.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lblStop_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 25:
     this.btnOpen = ((System.Windows.Controls.Button)(target));
     
     #line 34 "..\..\MainWindow.xaml"
     this.btnOpen.Click += new System.Windows.RoutedEventHandler(this.btnOpen_Click);
     
     #line default
     #line hidden
     return;
     case 26:
     this.btnClose = ((System.Windows.Controls.Button)(target));
     
     #line 35 "..\..\MainWindow.xaml"
     this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);
     
     #line default
     #line hidden
     return;
     case 27:
     this.lblKobe = ((System.Windows.Controls.Label)(target));
     return;
     case 28:
     this.lblOtis = ((System.Windows.Controls.Label)(target));
     return;
     case 29:
     this.lblSchindler = ((System.Windows.Controls.Label)(target));
     return;
     case 30:
     this.lblThyssen = ((System.Windows.Controls.Label)(target));
     return;
     case 31:
     this.lblKrupp = ((System.Windows.Controls.Label)(target));
     return;
     case 32:
     this.btnAlarm = ((System.Windows.Controls.Button)(target));
     
     #line 41 "..\..\MainWindow.xaml"
     this.btnAlarm.Click += new System.Windows.RoutedEventHandler(this.btnAlarm_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.winMain = ((ElevatorWPFApp.MainWindow)(target));
                return;

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

            #line 6 "..\..\MainWindow.xaml"
                this.btnOne.Click += new System.Windows.RoutedEventHandler(this.btn_Click);

            #line default
            #line hidden
                return;

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

            #line 7 "..\..\MainWindow.xaml"
                this.btnTwo.Click += new System.Windows.RoutedEventHandler(this.btn_Click);

            #line default
            #line hidden
                return;

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

            #line 8 "..\..\MainWindow.xaml"
                this.btnThree.Click += new System.Windows.RoutedEventHandler(this.btn_Click);

            #line default
            #line hidden
                return;

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

            #line 9 "..\..\MainWindow.xaml"
                this.btnFour.Click += new System.Windows.RoutedEventHandler(this.btn_Click);

            #line default
            #line hidden
                return;

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

            #line 10 "..\..\MainWindow.xaml"
                this.btnFive.Click += new System.Windows.RoutedEventHandler(this.btn_Click);

            #line default
            #line hidden
                return;

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

            #line 11 "..\..\MainWindow.xaml"
                this.btnSix.Click += new System.Windows.RoutedEventHandler(this.btn_Click);

            #line default
            #line hidden
                return;

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

            #line 12 "..\..\MainWindow.xaml"
                this.btnSeven.Click += new System.Windows.RoutedEventHandler(this.btn_Click);

            #line default
            #line hidden
                return;

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

            #line 13 "..\..\MainWindow.xaml"
                this.btnEight.Click += new System.Windows.RoutedEventHandler(this.btn_Click);

            #line default
            #line hidden
                return;

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

            #line 14 "..\..\MainWindow.xaml"
                this.btnNine.Click += new System.Windows.RoutedEventHandler(this.btn_Click);

            #line default
            #line hidden
                return;

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

            #line 15 "..\..\MainWindow.xaml"
                this.btnTen.Click += new System.Windows.RoutedEventHandler(this.btn_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.lblKoneFloor = ((System.Windows.Controls.Label)(target));
                return;

            case 13:
                this.lblOtisFloor = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.lblThyssenKruppFloor = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.lblSchindlerFloor = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.cboxElevator = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 17:
                this.lblKoneStop = ((System.Windows.Controls.Label)(target));

            #line 26 "..\..\MainWindow.xaml"
                this.lblKoneStop.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lblStop_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 18:
                this.lblOtisStop = ((System.Windows.Controls.Label)(target));

            #line 27 "..\..\MainWindow.xaml"
                this.lblOtisStop.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lblStop_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 19:
                this.lblSchindlerStop = ((System.Windows.Controls.Label)(target));

            #line 28 "..\..\MainWindow.xaml"
                this.lblSchindlerStop.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lblStop_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 20:
                this.lblThyssenKruppStop = ((System.Windows.Controls.Label)(target));

            #line 29 "..\..\MainWindow.xaml"
                this.lblThyssenKruppStop.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lblStop_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 21:
                this.lblKoneStatus = ((System.Windows.Controls.Label)(target));

            #line 30 "..\..\MainWindow.xaml"
                this.lblKoneStatus.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lblStop_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 22:
                this.lblOtisStatus = ((System.Windows.Controls.Label)(target));

            #line 31 "..\..\MainWindow.xaml"
                this.lblOtisStatus.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lblStop_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 23:
                this.lblSchindlerStatus = ((System.Windows.Controls.Label)(target));

            #line 32 "..\..\MainWindow.xaml"
                this.lblSchindlerStatus.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lblStop_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 24:
                this.lblThyssenKruppStatus = ((System.Windows.Controls.Label)(target));

            #line 33 "..\..\MainWindow.xaml"
                this.lblThyssenKruppStatus.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lblStop_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 25:
                this.btnOpen = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

            case 26:
                this.btnClose = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

            case 27:
                this.lblKobe = ((System.Windows.Controls.Label)(target));
                return;

            case 28:
                this.lblOtis = ((System.Windows.Controls.Label)(target));
                return;

            case 29:
                this.lblSchindler = ((System.Windows.Controls.Label)(target));
                return;

            case 30:
                this.lblThyssen = ((System.Windows.Controls.Label)(target));
                return;

            case 31:
                this.lblKrupp = ((System.Windows.Controls.Label)(target));
                return;

            case 32:
                this.btnAlarm = ((System.Windows.Controls.Button)(target));

            #line 41 "..\..\MainWindow.xaml"
                this.btnAlarm.Click += new System.Windows.RoutedEventHandler(this.btnAlarm_Click);

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