Ejemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.groupStation = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 2:
                this.tb_startStation = ((_12306BySelfService.UserControls.AutoCompleteTextBox)(target));
                return;

            case 3:
                this.popStartStation = ((System.Windows.Controls.Primitives.Popup)(target));
                return;

            case 4:
                this.tb_endStation = ((_12306BySelfService.UserControls.AutoCompleteTextBox)(target));
                return;

            case 5:
                this.popEndStation = ((System.Windows.Controls.Primitives.Popup)(target));
                return;

            case 6:
                this.imgSwitch = ((System.Windows.Controls.Image)(target));

            #line 130 "..\..\..\SubPages\TrainWindow.xaml"
                this.imgSwitch.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.imgSwitch_MouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 7:
                this.wrapTrainType = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 8:
                this.selectAllTrainType = ((System.Windows.Controls.CheckBox)(target));

            #line 132 "..\..\..\SubPages\TrainWindow.xaml"
                this.selectAllTrainType.Click += new System.Windows.RoutedEventHandler(this.selectAllTrainType_Checked);

            #line default
            #line hidden
                return;

            case 9:
                this.stackpAllTrainType = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 10:

            #line 134 "..\..\..\SubPages\TrainWindow.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Click += new System.Windows.RoutedEventHandler(this.cbSelectTrainType_Checked);

            #line default
            #line hidden
                return;

            case 11:

            #line 135 "..\..\..\SubPages\TrainWindow.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Click += new System.Windows.RoutedEventHandler(this.cbSelectTrainType_Checked);

            #line default
            #line hidden
                return;

            case 12:

            #line 136 "..\..\..\SubPages\TrainWindow.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Click += new System.Windows.RoutedEventHandler(this.cbSelectTrainType_Checked);

            #line default
            #line hidden
                return;

            case 13:

            #line 137 "..\..\..\SubPages\TrainWindow.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Click += new System.Windows.RoutedEventHandler(this.cbSelectTrainType_Checked);

            #line default
            #line hidden
                return;

            case 14:

            #line 138 "..\..\..\SubPages\TrainWindow.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Click += new System.Windows.RoutedEventHandler(this.cbSelectTrainType_Checked);

            #line default
            #line hidden
                return;

            case 15:

            #line 139 "..\..\..\SubPages\TrainWindow.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Click += new System.Windows.RoutedEventHandler(this.cbSelectTrainType_Checked);

            #line default
            #line hidden
                return;

            case 16:

            #line 140 "..\..\..\SubPages\TrainWindow.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Click += new System.Windows.RoutedEventHandler(this.cbSelectTrainType_Checked);

            #line default
            #line hidden
                return;

            case 17:
                this.dateTake = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 18:
                this.combTimeSection = ((System.Windows.Controls.ComboBox)(target));

            #line 152 "..\..\..\SubPages\TrainWindow.xaml"
                this.combTimeSection.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CombTimeSection_SelectionChanged);

            #line default
            #line hidden
                return;

            case 19:
                this.dateTakeMore = ((System.Windows.Controls.DatePicker)(target));

            #line 160 "..\..\..\SubPages\TrainWindow.xaml"
                this.dateTakeMore.SelectedDateChanged += new System.EventHandler <System.Windows.Controls.SelectionChangedEventArgs>(this.dateTakeMore_SelectedDateChanged);

            #line default
            #line hidden

            #line 160 "..\..\..\SubPages\TrainWindow.xaml"
                this.dateTakeMore.MouseEnter += new System.Windows.Input.MouseEventHandler(this.dateTakeMore_MouseEnter);

            #line default
            #line hidden
                return;

            case 20:
                this.popMoreDate = ((System.Windows.Controls.Primitives.Popup)(target));
                return;

            case 21:
                this.groupPassenger = ((System.Windows.Controls.Grid)(target));
                return;

            case 22:
                this.scrollViewer = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 23:
                this.stackPassengers = ((System.Windows.Controls.StackPanel)(target));
                return;

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

            case 25:
                this.LatestQueryTime = ((System.Windows.Controls.Label)(target));
                return;

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

            #line 189 "..\..\..\SubPages\TrainWindow.xaml"
                this.btnSearch.Click += new System.Windows.RoutedEventHandler(this.BtnSearch_Click);

            #line default
            #line hidden
                return;

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

            case 28:
                this.stackPanelAllSeat = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 29:
                this.cbSelectAllSeat = ((System.Windows.Controls.CheckBox)(target));

            #line 195 "..\..\..\SubPages\TrainWindow.xaml"
                this.cbSelectAllSeat.Click += new System.Windows.RoutedEventHandler(this.CbSelectAllSeat_Click);

            #line default
            #line hidden
                return;

            case 30:
                this.stackpAllSeatType = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 31:
                this.swz = ((System.Windows.Controls.CheckBox)(target));

            #line 197 "..\..\..\SubPages\TrainWindow.xaml"
                this.swz.Click += new System.Windows.RoutedEventHandler(this.CbSelectSeatType_Click);

            #line default
            #line hidden
                return;

            case 32:
                this.ydz = ((System.Windows.Controls.CheckBox)(target));

            #line 198 "..\..\..\SubPages\TrainWindow.xaml"
                this.ydz.Click += new System.Windows.RoutedEventHandler(this.CbSelectSeatType_Click);

            #line default
            #line hidden
                return;

            case 33:
                this.edz = ((System.Windows.Controls.CheckBox)(target));

            #line 199 "..\..\..\SubPages\TrainWindow.xaml"
                this.edz.Click += new System.Windows.RoutedEventHandler(this.CbSelectSeatType_Click);

            #line default
            #line hidden
                return;

            case 34:
                this.gjrw = ((System.Windows.Controls.CheckBox)(target));

            #line 200 "..\..\..\SubPages\TrainWindow.xaml"
                this.gjrw.Click += new System.Windows.RoutedEventHandler(this.CbSelectSeatType_Click);

            #line default
            #line hidden
                return;

            case 35:
                this.rw = ((System.Windows.Controls.CheckBox)(target));

            #line 201 "..\..\..\SubPages\TrainWindow.xaml"
                this.rw.Click += new System.Windows.RoutedEventHandler(this.CbSelectSeatType_Click);

            #line default
            #line hidden
                return;

            case 36:
                this.dw = ((System.Windows.Controls.CheckBox)(target));

            #line 202 "..\..\..\SubPages\TrainWindow.xaml"
                this.dw.Click += new System.Windows.RoutedEventHandler(this.CbSelectSeatType_Click);

            #line default
            #line hidden
                return;

            case 37:
                this.yw = ((System.Windows.Controls.CheckBox)(target));

            #line 203 "..\..\..\SubPages\TrainWindow.xaml"
                this.yw.Click += new System.Windows.RoutedEventHandler(this.CbSelectSeatType_Click);

            #line default
            #line hidden
                return;

            case 38:
                this.rz = ((System.Windows.Controls.CheckBox)(target));

            #line 204 "..\..\..\SubPages\TrainWindow.xaml"
                this.rz.Click += new System.Windows.RoutedEventHandler(this.CbSelectSeatType_Click);

            #line default
            #line hidden
                return;

            case 39:
                this.yz = ((System.Windows.Controls.CheckBox)(target));

            #line 205 "..\..\..\SubPages\TrainWindow.xaml"
                this.yz.Click += new System.Windows.RoutedEventHandler(this.CbSelectSeatType_Click);

            #line default
            #line hidden
                return;

            case 40:
                this.wz = ((System.Windows.Controls.CheckBox)(target));

            #line 206 "..\..\..\SubPages\TrainWindow.xaml"
                this.wz.Click += new System.Windows.RoutedEventHandler(this.CbSelectSeatType_Click);

            #line default
            #line hidden
                return;

            case 41:
                this.qt = ((System.Windows.Controls.CheckBox)(target));

            #line 207 "..\..\..\SubPages\TrainWindow.xaml"
                this.qt.Click += new System.Windows.RoutedEventHandler(this.CbSelectSeatType_Click);

            #line default
            #line hidden
                return;

            case 42:
                this.wp = ((System.Windows.Controls.CheckBox)(target));

            #line 209 "..\..\..\SubPages\TrainWindow.xaml"
                this.wp.Click += new System.Windows.RoutedEventHandler(this.CbSelectSeatType_Click);

            #line default
            #line hidden
                return;

            case 43:
                this.dataGridTrainList = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 44:
                this.menuDelete = ((System.Windows.Controls.MenuItem)(target));

            #line 237 "..\..\..\SubPages\TrainWindow.xaml"
                this.menuDelete.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 45:
                this.menuRefresh = ((System.Windows.Controls.MenuItem)(target));

            #line 238 "..\..\..\SubPages\TrainWindow.xaml"
                this.menuRefresh.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 46:
                this.menuGetDetails = ((System.Windows.Controls.MenuItem)(target));

            #line 239 "..\..\..\SubPages\TrainWindow.xaml"
                this.menuGetDetails.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 49:
                this.borderShowSetting = ((System.Windows.Controls.Border)(target));

            #line 313 "..\..\..\SubPages\TrainWindow.xaml"
                this.borderShowSetting.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Border_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 50:
                this.down1 = ((System.Windows.Controls.Image)(target));
                return;

            case 51:
                this.lblBor = ((System.Windows.Controls.Label)(target));
                return;

            case 52:
                this.down2 = ((System.Windows.Controls.Image)(target));
                return;

            case 53:
                this.wrapSetting = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 54:
                this.dataGridPassenger = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 55:
                this.psengDelete = ((System.Windows.Controls.MenuItem)(target));

            #line 326 "..\..\..\SubPages\TrainWindow.xaml"
                this.psengDelete.Click += new System.Windows.RoutedEventHandler(this.psengDelete_Click);

            #line default
            #line hidden
                return;

            case 56:
                this.psengRefresh = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 58:
                this.listCheckedSeat = ((System.Windows.Controls.ListBox)(target));
                return;

            case 59:

            #line 346 "..\..\..\SubPages\TrainWindow.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Click += new System.Windows.RoutedEventHandler(this.CbxCheckSeatType_Click);

            #line default
            #line hidden
                return;

            case 60:

            #line 349 "..\..\..\SubPages\TrainWindow.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Click += new System.Windows.RoutedEventHandler(this.CbxCheckSeatType_Click);

            #line default
            #line hidden
                return;

            case 61:

            #line 352 "..\..\..\SubPages\TrainWindow.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Click += new System.Windows.RoutedEventHandler(this.CbxCheckSeatType_Click);

            #line default
            #line hidden
                return;

            case 62:

            #line 355 "..\..\..\SubPages\TrainWindow.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Click += new System.Windows.RoutedEventHandler(this.CbxCheckSeatType_Click);

            #line default
            #line hidden
                return;

            case 63:

            #line 358 "..\..\..\SubPages\TrainWindow.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Click += new System.Windows.RoutedEventHandler(this.CbxCheckSeatType_Click);

            #line default
            #line hidden
                return;

            case 64:

            #line 361 "..\..\..\SubPages\TrainWindow.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Click += new System.Windows.RoutedEventHandler(this.CbxCheckSeatType_Click);

            #line default
            #line hidden
                return;

            case 65:

            #line 364 "..\..\..\SubPages\TrainWindow.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Click += new System.Windows.RoutedEventHandler(this.CbxCheckSeatType_Click);

            #line default
            #line hidden
                return;

            case 66:

            #line 367 "..\..\..\SubPages\TrainWindow.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Click += new System.Windows.RoutedEventHandler(this.CbxCheckSeatType_Click);

            #line default
            #line hidden
                return;

            case 67:

            #line 370 "..\..\..\SubPages\TrainWindow.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Click += new System.Windows.RoutedEventHandler(this.CbxCheckSeatType_Click);

            #line default
            #line hidden
                return;

            case 68:

            #line 373 "..\..\..\SubPages\TrainWindow.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Click += new System.Windows.RoutedEventHandler(this.CbxCheckSeatType_Click);

            #line default
            #line hidden
                return;

            case 69:

            #line 376 "..\..\..\SubPages\TrainWindow.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Click += new System.Windows.RoutedEventHandler(this.CbxCheckSeatType_Click);

            #line default
            #line hidden
                return;

            case 70:
                this.dataGridCheckedTrain = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 72:
                this.dataGridCheckedDate = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 74:
                this.listBoxNote = ((System.Windows.Controls.ListBox)(target));

            #line 417 "..\..\..\SubPages\TrainWindow.xaml"
                this.listBoxNote.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.listBoxNote_PreviewMouseDown);

            #line default
            #line hidden
                return;

            case 75:
                this.listLog = ((System.Windows.Controls.ListBox)(target));
                return;

            case 76:
                this.btnStop = ((System.Windows.Controls.Button)(target));

            #line 453 "..\..\..\SubPages\TrainWindow.xaml"
                this.btnStop.Click += new System.Windows.RoutedEventHandler(this.BtnStop_Click);

            #line default
            #line hidden
                return;

            case 77:
                this.btnSubmit = ((System.Windows.Controls.Button)(target));

            #line 454 "..\..\..\SubPages\TrainWindow.xaml"
                this.btnSubmit.Click += new System.Windows.RoutedEventHandler(this.BtnSubmit_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.cbQueryItem = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 2:
                this.stackStation = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 3:
                this.tb_SaleStation = ((_12306BySelfService.UserControls.AutoCompleteTextBox)(target));
                return;

            case 4:
                this.popStartStation = ((System.Windows.Controls.Primitives.Popup)(target));
                return;

            case 5:
                this.stackSaleTime = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 6:
                this.cbxSaleTime = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 7:
                this.StackTrainNo = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 8:
                this.tb_TrainNo = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.stackQuery = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 10:

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

            #line default
            #line hidden
                return;

            case 11:
                this.stackStationText = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 12:
                this.tkStationText = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 13:
                this.stackSaleTimeText = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 14:
                this.stackSaleTimeTextCont = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 15:
                this.stackTrainNumberInfo = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 16:
                this.webBrowser = ((System.Windows.Controls.WebBrowser)(target));
                return;

            case 17:
                this.WrapPanelNote = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 18:
                this.tkCurDate = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 19:
                this.tkDeadDate = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }