Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.addMotherPage = ((System.Windows.Controls.TabItem)(target));

            #line 16 "..\..\MothersWindow.xaml"
                this.addMotherPage.AddHandler(System.Windows.Controls.Validation.ErrorEvent, new System.EventHandler <System.Windows.Controls.ValidationErrorEventArgs>(this.AddMotherPage_Error));

            #line default
            #line hidden
                return;

            case 2:
                this.Sunday = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 3:
                this.Monday = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 4:
                this.Tuesday = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 5:
                this.Wednesday = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 6:
                this.Thursday = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 7:
                this.Friday = ((System.Windows.Controls.CheckBox)(target));
                return;

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

            #line 82 "..\..\MothersWindow.xaml"
                this.addButton.Click += new System.Windows.RoutedEventHandler(this.AddButton_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.grid1 = ((System.Windows.Controls.Grid)(target));
                return;

            case 10:
                this.addressTextBox = ((Wpf_UI.AutoCompleteAddressTextBox)(target));
                return;

            case 11:
                this.commentsTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.firstNameTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 13:
                this.idTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 15:
                this.locationForNannyTextBox = ((Wpf_UI.AutoCompleteAddressTextBox)(target));
                return;

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

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

            #line 153 "..\..\MothersWindow.xaml"
                this.removeButton.Click += new System.Windows.RoutedEventHandler(this.RemoveButton_Click);

            #line default
            #line hidden
                return;

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

            #line 164 "..\..\MothersWindow.xaml"
                this.removeMotherComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.RemoveMotherComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

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

            case 20:
                this.updateMotherPage = ((System.Windows.Controls.TabItem)(target));

            #line 170 "..\..\MothersWindow.xaml"
                this.updateMotherPage.AddHandler(System.Windows.Controls.Validation.ErrorEvent, new System.EventHandler <System.Windows.Controls.ValidationErrorEventArgs>(this.UpdateNannyPage_Error));

            #line default
            #line hidden
                return;

            case 21:
                this.Sunday_U = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 22:
                this.Monday_U = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 23:
                this.Tuesday_U = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 24:
                this.Wednesday_U = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 25:
                this.Thursday_U = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 26:
                this.Friday_U = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 27:
                this.updateButton = ((System.Windows.Controls.Button)(target));

            #line 237 "..\..\MothersWindow.xaml"
                this.updateButton.Click += new System.Windows.RoutedEventHandler(this.UpdateButton_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.UpdateDetails = ((System.Windows.Controls.Grid)(target));
                return;

            case 29:
                this.addressTextBox_U = ((Wpf_UI.AutoCompleteAddressTextBox)(target));
                return;

            case 30:
                this.commentsTextBox_U = ((System.Windows.Controls.TextBox)(target));
                return;

            case 31:
                this.firstNameTextBox_U = ((System.Windows.Controls.TextBox)(target));
                return;

            case 32:
                this.updateMotherComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 281 "..\..\MothersWindow.xaml"
                this.updateMotherComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.UpdateMotherComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 33:
                this.lastNameTextBox_U = ((System.Windows.Controls.TextBox)(target));
                return;

            case 34:
                this.locationForNannyTextBox_U = ((Wpf_UI.AutoCompleteAddressTextBox)(target));
                return;

            case 35:
                this.phonNumberTextBox_U = ((System.Windows.Controls.TextBox)(target));
                return;

            case 36:
                this.nanniesByDistanceFromMother = ((System.Windows.Controls.TabItem)(target));
                return;

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

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

            case 39:
                this.PossibleDistancesComboBox1 = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 40:
                this.CalculateDistanceButton = ((System.Windows.Controls.Button)(target));

            #line 302 "..\..\MothersWindow.xaml"
                this.CalculateDistanceButton.Click += new System.Windows.RoutedEventHandler(this.CalculateDistanceButton_Click);

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

            #line 22 "..\..\NanniesWindow.xaml"
                this.addNannyPage.AddHandler(System.Windows.Controls.Validation.ErrorEvent, new System.EventHandler <System.Windows.Controls.ValidationErrorEventArgs>(this.AddNannyPage_Error));

            #line default
            #line hidden
                return;

            case 2:
                this.Sunday = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 3:
                this.Monday = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 4:
                this.Tuesday = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 5:
                this.Wednesday = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 6:
                this.Thursday = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 7:
                this.Friday = ((System.Windows.Controls.CheckBox)(target));
                return;

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

            #line 88 "..\..\NanniesWindow.xaml"
                this.addButton.Click += new System.Windows.RoutedEventHandler(this.AddButton_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.grid1 = ((System.Windows.Controls.Grid)(target));
                return;

            case 10:
                this.addressTextBox = ((Wpf_UI.AutoCompleteAddressTextBox)(target));
                return;

            case 11:
                this.dateOfBirthDatePicker = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 12:
                this.elevatorCheckBox = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 13:
                this.firstNameTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 15:
                this.hourlyRateTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 17:
                this.lastNameTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 19:
                this.maximumAgeOfChildTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 21:
                this.monthlyRateTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 23:
                this.recommendationsTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 24:
                this.typeOfPaymentComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 25:
                this.vacationDaysComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

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

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

            #line 197 "..\..\NanniesWindow.xaml"
                this.removeButton.Click += new System.Windows.RoutedEventHandler(this.RemoveButton_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.removeNannyComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 208 "..\..\NanniesWindow.xaml"
                this.removeNannyComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.RemoveNannyCombobox_SelectionChanged);

            #line default
            #line hidden
                return;

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

            case 30:
                this.updateNannyPage = ((System.Windows.Controls.TabItem)(target));

            #line 214 "..\..\NanniesWindow.xaml"
                this.updateNannyPage.AddHandler(System.Windows.Controls.Validation.ErrorEvent, new System.EventHandler <System.Windows.Controls.ValidationErrorEventArgs>(this.UpdateNannyPage_Error));

            #line default
            #line hidden
                return;

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

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

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

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

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

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

            case 37:
                this.updateButton = ((System.Windows.Controls.Button)(target));

            #line 279 "..\..\NanniesWindow.xaml"
                this.updateButton.Click += new System.Windows.RoutedEventHandler(this.UpdateButton_Click);

            #line default
            #line hidden
                return;

            case 38:
                this.UpdateDetails = ((System.Windows.Controls.Grid)(target));
                return;

            case 39:
                this.addressTextBox_U = ((Wpf_UI.AutoCompleteAddressTextBox)(target));
                return;

            case 40:
                this.dateOfBirthDatePicker_U = ((System.Windows.Controls.DatePicker)(target));
                return;

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

            case 42:
                this.firstNameTextBox_U = ((System.Windows.Controls.TextBox)(target));
                return;

            case 43:
                this.floorTextBox_U = ((System.Windows.Controls.TextBox)(target));
                return;

            case 44:
                this.hourlyRateTextBox_U = ((System.Windows.Controls.TextBox)(target));
                return;

            case 45:
                this.updateNannyComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 346 "..\..\NanniesWindow.xaml"
                this.updateNannyComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.UpdateNannyComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 46:
                this.lastNameTextBox_U = ((System.Windows.Controls.TextBox)(target));
                return;

            case 47:
                this.maxChildrenTextBox_U = ((System.Windows.Controls.TextBox)(target));
                return;

            case 48:
                this.maximumAgeOfChildTextBox_U = ((System.Windows.Controls.TextBox)(target));
                return;

            case 49:
                this.minimumAgeOfChildTextBox_U = ((System.Windows.Controls.TextBox)(target));
                return;

            case 50:
                this.monthlyRateTextBox_U = ((System.Windows.Controls.TextBox)(target));
                return;

            case 51:
                this.phonNumberTextBox_U = ((System.Windows.Controls.TextBox)(target));
                return;

            case 52:
                this.recommendationsTextBox_U = ((System.Windows.Controls.TextBox)(target));
                return;

            case 53:
                this.typeOfPaymentComboBox_U = ((System.Windows.Controls.ComboBox)(target));
                return;

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

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

            case 56:
                this.yearsOfExperienceTextBox_U = ((System.Windows.Controls.TextBox)(target));
                return;

            case 57:
                this.nanniesGroupingPage = ((System.Windows.Controls.TabItem)(target));
                return;

            case 58:
                this.minAge = ((System.Windows.Controls.RadioButton)(target));

            #line 382 "..\..\NanniesWindow.xaml"
                this.minAge.Click += new System.Windows.RoutedEventHandler(this.GroupingRadioButton_Click);

            #line default
            #line hidden
                return;

            case 59:
                this.maxAge = ((System.Windows.Controls.RadioButton)(target));

            #line 383 "..\..\NanniesWindow.xaml"
                this.maxAge.Click += new System.Windows.RoutedEventHandler(this.GroupingRadioButton_Click);

            #line default
            #line hidden
                return;

            case 60:
                this.Grouping = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 61:
                this.nanniesByVacationDaysPage = ((System.Windows.Controls.TabItem)(target));
                return;

            case 62:
                this.official = ((System.Windows.Controls.RadioButton)(target));

            #line 506 "..\..\NanniesWindow.xaml"
                this.official.Click += new System.Windows.RoutedEventHandler(this.NanniesByVacationDays_Button_Click);

            #line default
            #line hidden
                return;

            case 63:
                this.tamat = ((System.Windows.Controls.RadioButton)(target));

            #line 507 "..\..\NanniesWindow.xaml"
                this.tamat.Click += new System.Windows.RoutedEventHandler(this.NanniesByVacationDays_Button_Click);

            #line default
            #line hidden
                return;

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

            #line 509 "..\..\NanniesWindow.xaml"
                this.nanniesByVacationDays_Button.Click += new System.Windows.RoutedEventHandler(this.NanniesByVacationDays_Button_Click);

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