public BusinessTab()
 {
     mainWindow = (MainWindow)Application.Current.MainWindow;
 }   // End constructor
Beispiel #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.yelpGUI = ((RepTeam5_YelpApp.MainWindow)(target));
                return;

            case 2:
                this.yelpTabControl = ((System.Windows.Controls.TabControl)(target));
                return;

            case 3:
                this.userTabItem = ((System.Windows.Controls.TabItem)(target));
                return;

            case 4:
                this.UserInfoPanel = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:
                this.lblLoginName = ((System.Windows.Controls.Label)(target));
                return;

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

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

            #line 23 "..\..\MainWindow.xaml"
                this.btnLoginSearch.Click += new System.Windows.RoutedEventHandler(this.btnLoginSearch_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.lblLoginPasswd = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.pwdLoginPassword = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 10:
                this.lstLoginUserID = ((System.Windows.Controls.ListBox)(target));
                return;

            case 11:
                this.lblLoginMessage = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.btnLogin = ((System.Windows.Controls.Button)(target));

            #line 36 "..\..\MainWindow.xaml"
                this.btnLogin.Click += new System.Windows.RoutedEventHandler(this.btnLogin_Click);

            #line default
            #line hidden
                return;

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

            case 14:
                this.txtInfoName = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 16:
                this.txtInfoYelpSince = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 18:
                this.txtInfoRevCount = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 20:
                this.txtInfoAvgStars = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 22:
                this.txtInfoVoteCool = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 24:
                this.txtInfoVoteFunny = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 26:
                this.txtInfoVoteUseful = ((System.Windows.Controls.TextBox)(target));
                return;

            case 27:
                this.pwdCurrentPassword = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 28:
                this.pwdNewPassword = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 29:
                this.pwdRepeatPassword = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 30:
                this.btnUpdatePassword = ((System.Windows.Controls.Button)(target));

            #line 95 "..\..\MainWindow.xaml"
                this.btnUpdatePassword.Click += new System.Windows.RoutedEventHandler(this.btnUpdatePassword_Click);

            #line default
            #line hidden
                return;

            case 31:
                this.grdFriendsList = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 32:
                this.grdFriendReviews = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 33:
                this.businessTabItem = ((System.Windows.Controls.TabItem)(target));
                return;

            case 34:
                this.businessSearchPanel = ((System.Windows.Controls.Grid)(target));
                return;

            case 35:
                this.selectLocationGroupBox = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 36:
                this.SelectLocationGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 37:
                this.stateLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 38:
                this.stateComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 151 "..\..\MainWindow.xaml"
                this.stateComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.stateComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 39:
                this.cityLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 40:
                this.cityListBox = ((System.Windows.Controls.ListBox)(target));

            #line 153 "..\..\MainWindow.xaml"
                this.cityListBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cityListBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 41:
                this.zipcodeLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 42:
                this.zipcodeListBox = ((System.Windows.Controls.ListBox)(target));

            #line 155 "..\..\MainWindow.xaml"
                this.zipcodeListBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.zipcodeListBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 43:
                this.businessCatLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 44:
                this.categoriesListBox = ((System.Windows.Controls.ListBox)(target));

            #line 157 "..\..\MainWindow.xaml"
                this.categoriesListBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.categoriesListBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 45:
                this.addButton = ((System.Windows.Controls.Button)(target));

            #line 158 "..\..\MainWindow.xaml"
                this.addButton.Click += new System.Windows.RoutedEventHandler(this.addButton_Click);

            #line default
            #line hidden
                return;

            case 46:
                this.removeButton = ((System.Windows.Controls.Button)(target));

            #line 159 "..\..\MainWindow.xaml"
                this.removeButton.Click += new System.Windows.RoutedEventHandler(this.removeButton_Click);

            #line default
            #line hidden
                return;

            case 47:
                this.categoryListBox = ((System.Windows.Controls.ListBox)(target));
                return;

            case 48:
                this.searchButton = ((System.Windows.Controls.Button)(target));

            #line 161 "..\..\MainWindow.xaml"
                this.searchButton.Click += new System.Windows.RoutedEventHandler(this.searchButton_Click);

            #line default
            #line hidden
                return;

            case 49:
                this.searchResultsPanel = ((System.Windows.Controls.Grid)(target));
                return;

            case 50:
                this.OpenBusinesses_GroupBox = ((System.Windows.Controls.GroupBox)(target));
                return;

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

            case 52:
                this.dayComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 183 "..\..\MainWindow.xaml"
                this.dayComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dayComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 53:
                this.fromLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 54:
                this.fromComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 185 "..\..\MainWindow.xaml"
                this.fromComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.fromComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 55:
                this.toLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 56:
                this.toComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 187 "..\..\MainWindow.xaml"
                this.toComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.toComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 57:
                this.resultsGroupBox = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 58:
                this.resultsDataGrid = ((System.Windows.Controls.DataGrid)(target));

            #line 191 "..\..\MainWindow.xaml"
                this.resultsDataGrid.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.resultsDataGrid_SelectionChanged);

            #line default
            #line hidden
                return;

            case 59:
                this.selectedBusinessGroupBox = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 60:
                this.selectBusinessGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 61:
                this.businessNameLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 62:
                this.lblReviewErrorMessage = ((System.Windows.Controls.Label)(target));
                return;

            case 63:
                this.tipTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 64:
                this.checkinButton = ((System.Windows.Controls.Button)(target));
                return;

            case 65:
                this.addTipButton = ((System.Windows.Controls.Button)(target));

            #line 209 "..\..\MainWindow.xaml"
                this.addTipButton.Click += new System.Windows.RoutedEventHandler(this.addTipButton_Click);

            #line default
            #line hidden
                return;

            case 66:
                this.businessDetailsGroupBox = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 67:
                this.businessDetailGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 68:
                this.showCheckinButton = ((System.Windows.Controls.Button)(target));

            #line 222 "..\..\MainWindow.xaml"
                this.showCheckinButton.Click += new System.Windows.RoutedEventHandler(this.showCheckinButton_Click);

            #line default
            #line hidden
                return;

            case 69:
                this.showTipsButton = ((System.Windows.Controls.Button)(target));

            #line 223 "..\..\MainWindow.xaml"
                this.showTipsButton.Click += new System.Windows.RoutedEventHandler(this.showTipsButton_Click);

            #line default
            #line hidden
                return;

            case 70:
                this.numBusinessesButton = ((System.Windows.Controls.Button)(target));
                return;

            case 71:
                this.viewMapButton = ((System.Windows.Controls.Button)(target));

            #line 225 "..\..\MainWindow.xaml"
                this.viewMapButton.Click += new System.Windows.RoutedEventHandler(this.viewMapButton_Click);

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