public static object ValueCoerceValueCallBack(DependencyObject d, object baseValue) { float?value = baseValue as float?; NumericUpDownControl THIS = d as NumericUpDownControl; if (value > THIS.MaxValue) { return((float?)THIS.MaxValue); } else if (value < THIS.MinValue) { return((float?)THIS.MinValue); } else { return(value); } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.myUC = ((PLWPF.NumericUpDownControl)(target)); return; case 2: this.cmdDown = ((System.Windows.Controls.Button)(target)); #line 12 "..\..\NumericUpDownControl.xaml" this.cmdDown.Click += new System.Windows.RoutedEventHandler(this.cmdDown_Click); #line default #line hidden return; case 3: this.textNumber = ((System.Windows.Controls.TextBox)(target)); #line 13 "..\..\NumericUpDownControl.xaml" this.textNumber.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtNum_TextChanged); #line default #line hidden return; case 4: this.cmdUp = ((System.Windows.Controls.Button)(target)); #line 14 "..\..\NumericUpDownControl.xaml" this.cmdUp.Click += new System.Windows.RoutedEventHandler(this.cmdUp_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.AddGuestRequest_ = ((System.Windows.Controls.Grid)(target)); return; case 2: this.privatenameTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.familynameTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.mailaddressTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.entryDateDatePicker = ((System.Windows.Controls.DatePicker)(target)); return; case 6: this.ReleaseDateDatePicker = ((System.Windows.Controls.DatePicker)(target)); return; case 7: this.AreaComboBox = ((System.Windows.Controls.ComboBox)(target)); return; case 8: this.TypeComboBox = ((System.Windows.Controls.ComboBox)(target)); return; case 9: this.NumAdults = ((PLWPF.NumericUpDownControl)(target)); return; case 10: this.NumChildren = ((PLWPF.NumericUpDownControl)(target)); return; case 11: this.poolChoice = ((System.Windows.Controls.ComboBox)(target)); return; case 12: this.gardenChoice = ((System.Windows.Controls.ComboBox)(target)); return; case 13: this.jacuzziChoice = ((System.Windows.Controls.ComboBox)(target)); return; case 14: this.addButton = ((System.Windows.Controls.Button)(target)); #line 122 "..\..\GuestRequest.xaml" this.addButton.Click += new System.Windows.RoutedEventHandler(this.AddButton_Click); #line default #line hidden return; case 15: this.UpdateBeforePassword = ((System.Windows.Controls.Border)(target)); return; case 16: this.GRkey = ((System.Windows.Controls.PasswordBox)(target)); #line 134 "..\..\GuestRequest.xaml" this.GRkey.KeyDown += new System.Windows.Input.KeyEventHandler(this.Pass_KeyDown); #line default #line hidden return; case 17: #line 135 "..\..\GuestRequest.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BEnter_Click); #line default #line hidden #line 135 "..\..\GuestRequest.xaml" ((System.Windows.Controls.Button)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.Button_MouseEnter); #line default #line hidden #line 135 "..\..\GuestRequest.xaml" ((System.Windows.Controls.Button)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.Button_MouseLeave); #line default #line hidden return; case 18: this.UpdateAfterPassword = ((System.Windows.Controls.Border)(target)); return; case 19: this.UpdateGuestRequest_ = ((System.Windows.Controls.Grid)(target)); return; case 20: this.UprivatenameTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 21: this.UfamilynameTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 22: this.UmailaddressTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 23: this.UentryDateDatePicker = ((System.Windows.Controls.DatePicker)(target)); return; case 24: this.UReleaseDateDatePicker = ((System.Windows.Controls.DatePicker)(target)); return; case 25: this.UAreaComboBox = ((System.Windows.Controls.ComboBox)(target)); return; case 26: this.UTypeComboBox = ((System.Windows.Controls.ComboBox)(target)); return; case 27: this.UNumAdults = ((PLWPF.NumericUpDownControl)(target)); return; case 28: this.UNumChildren = ((PLWPF.NumericUpDownControl)(target)); return; case 29: this.UpoolChoice = ((System.Windows.Controls.ComboBox)(target)); return; case 30: this.UgardenChoice = ((System.Windows.Controls.ComboBox)(target)); return; case 31: this.UjacuzziChoice = ((System.Windows.Controls.ComboBox)(target)); return; case 32: this.UpdateButton = ((System.Windows.Controls.Button)(target)); #line 189 "..\..\GuestRequest.xaml" this.UpdateButton.Click += new System.Windows.RoutedEventHandler(this.UpdateButton_Click); #line default #line hidden return; case 33: this.LogOut = ((System.Windows.Controls.Button)(target)); #line 190 "..\..\GuestRequest.xaml" this.LogOut.Click += new System.Windows.RoutedEventHandler(this.LogOut_Click); #line default #line hidden #line 190 "..\..\GuestRequest.xaml" this.LogOut.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Button_MouseEnter); #line default #line hidden #line 190 "..\..\GuestRequest.xaml" this.LogOut.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Button_MouseLeave); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 8 "..\..\Nanny_Menu.xaml" ((PLWPF.Nanny_Menu)(target)).AddHandler(System.Windows.Controls.Validation.ErrorEvent, new System.EventHandler <System.Windows.Controls.ValidationErrorEventArgs>(this.Window_Error)); #line default #line hidden return; case 2: this.grid1 = ((System.Windows.Controls.Grid)(target)); return; case 3: this.checkBox1 = ((System.Windows.Controls.CheckBox)(target)); return; case 4: this.checkBox2 = ((System.Windows.Controls.CheckBox)(target)); return; case 5: this.checkBox3 = ((System.Windows.Controls.CheckBox)(target)); return; case 6: this.checkBox4 = ((System.Windows.Controls.CheckBox)(target)); return; case 7: this.checkBox5 = ((System.Windows.Controls.CheckBox)(target)); return; case 8: this.checkBox6 = ((System.Windows.Controls.CheckBox)(target)); return; case 9: this.end1 = ((System.Windows.Controls.TextBox)(target)); return; case 10: this.end2 = ((System.Windows.Controls.TextBox)(target)); return; case 11: this.end3 = ((System.Windows.Controls.TextBox)(target)); return; case 12: this.end4 = ((System.Windows.Controls.TextBox)(target)); return; case 13: this.end5 = ((System.Windows.Controls.TextBox)(target)); return; case 14: this.end6 = ((System.Windows.Controls.TextBox)(target)); return; case 15: this.start1 = ((System.Windows.Controls.TextBox)(target)); return; case 16: this.start2 = ((System.Windows.Controls.TextBox)(target)); return; case 17: this.start3 = ((System.Windows.Controls.TextBox)(target)); return; case 18: this.start4 = ((System.Windows.Controls.TextBox)(target)); return; case 19: this.start5 = ((System.Windows.Controls.TextBox)(target)); return; case 20: this.start6 = ((System.Windows.Controls.TextBox)(target)); return; case 21: this.firstNameTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 22: this.date_of_birthDatePicker = ((System.Windows.Controls.DatePicker)(target)); return; case 23: this.elevatorsCheckBox = ((System.Windows.Controls.CheckBox)(target)); return; case 24: this.addressTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 25: this.FloorUpDown = ((PLWPF.NumericUpDownControl)(target)); return; case 26: this.hourly_rateTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 27: this.idTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 28: this.lastNameTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 29: this.max_age = ((PLWPF.NumericUpDownControl)(target)); return; case 30: this.max_count = ((PLWPF.NumericUpDownControl)(target)); return; case 31: this.min_age = ((PLWPF.NumericUpDownControl)(target)); return; case 32: this.monthly_rateTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 33: this.per_hourCheckBox = ((System.Windows.Controls.CheckBox)(target)); return; case 34: this.phoneTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 35: this.recommendationsTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 36: this.tMTorEDUCheckBox = ((System.Windows.Controls.CheckBox)(target)); return; case 37: this.YearsUpDown = ((PLWPF.NumericUpDownControl)(target)); return; case 38: this.add_nanny = ((System.Windows.Controls.Button)(target)); #line 163 "..\..\Nanny_Menu.xaml" this.add_nanny.Click += new System.Windows.RoutedEventHandler(this.add_nanny_Click); #line default #line hidden return; case 39: this.update_nanny = ((System.Windows.Controls.Button)(target)); #line 189 "..\..\Nanny_Menu.xaml" this.update_nanny.Click += new System.Windows.RoutedEventHandler(this.update_nanny_Click); #line default #line hidden return; case 40: this.cancel = ((System.Windows.Controls.Button)(target)); #line 190 "..\..\Nanny_Menu.xaml" this.cancel.Click += new System.Windows.RoutedEventHandler(this.cancel_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ContactTitle = ((System.Windows.Controls.Label)(target)); return; case 2: this.updateButton = ((System.Windows.Controls.Button)(target)); #line 17 "..\..\updateContractWindow.xaml" this.updateButton.Click += new System.Windows.RoutedEventHandler(this.updateButton_Click); #line default #line hidden return; case 3: this.Back2Button = ((System.Windows.Controls.Button)(target)); #line 19 "..\..\updateContractWindow.xaml" this.Back2Button.Click += new System.Windows.RoutedEventHandler(this.Back2Button_Click); #line default #line hidden return; case 4: this.grid1 = ((System.Windows.Controls.Grid)(target)); return; case 5: this.contractNumLable = ((System.Windows.Controls.Label)(target)); return; case 6: this.contractNumComboBox = ((System.Windows.Controls.ComboBox)(target)); #line 40 "..\..\updateContractWindow.xaml" this.contractNumComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.contractNumComboBox_SelectionChanged); #line default #line hidden return; case 7: this.dateBegingEmployinDatePicker = ((System.Windows.Controls.DatePicker)(target)); return; case 8: this.dateEndEmployingDatePicker = ((System.Windows.Controls.DatePicker)(target)); return; case 9: this.employeeIdComboBox = ((System.Windows.Controls.ComboBox)(target)); return; case 10: this.employerIdComboBox = ((System.Windows.Controls.ComboBox)(target)); return; case 11: this.salaryNumUpDown = ((PLWPF.NumericUpDownControl)(target)); return; case 12: this.hourSalaryNTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 13: this.hoursNumTextBox = ((System.Windows.Controls.TextBox)(target)); #line 59 "..\..\updateContractWindow.xaml" this.hoursNumTextBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.hoursNumTextBox_TextChanged); #line default #line hidden return; case 14: this.isInterviewCheckBox = ((System.Windows.Controls.CheckBox)(target)); return; case 15: this.isSignCheckBox = ((System.Windows.Controls.CheckBox)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.title = ((System.Windows.Controls.Label)(target)); return; case 2: this.SelectNannyStackPanel = ((System.Windows.Controls.StackPanel)(target)); return; case 3: this.nannyComboBox = ((System.Windows.Controls.ComboBox)(target)); #line 27 "..\..\UpdateNannyUserControl.xaml" this.nannyComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.nannyComboBox_SelectionChanged); #line default #line hidden return; case 4: this.allNannyDetailsGrid = ((System.Windows.Controls.Grid)(target)); return; case 5: this.NannyDetailsGrid = ((System.Windows.Controls.Grid)(target)); return; case 6: this.idTextBlock = ((System.Windows.Controls.TextBlock)(target)); return; case 7: this.firstNameTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.lastNameTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 9: this.phoneNumberTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 10: this.birthDateDatePicker = ((System.Windows.Controls.DatePicker)(target)); return; case 11: this.AddressUC = ((PLWPF.PlaceAutoCompleteUC)(target)); return; case 12: this.floorUC = ((PLWPF.NumericUpDownControl)(target)); return; case 13: this.isElevatorCheckBox = ((System.Windows.Controls.CheckBox)(target)); return; case 14: this.ChildrenDetailsStackPanel = ((System.Windows.Controls.StackPanel)(target)); return; case 15: this.maxNumOfChildrenGrid = ((System.Windows.Controls.Grid)(target)); return; case 16: this.maxNumOfChildrenTextBox = ((PLWPF.NumericUpDownControl)(target)); return; case 17: this.agesStackPanel = ((System.Windows.Controls.StackPanel)(target)); return; case 18: this.ageTextBox = ((System.Windows.Controls.Label)(target)); return; case 19: this.MinAge = ((PLWPF.NumericUpDownControl)(target)); return; case 20: this.MaxAge = ((PLWPF.NumericUpDownControl)(target)); return; case 21: this.paymentDetailsStackPanel = ((System.Windows.Controls.StackPanel)(target)); return; case 22: this.MonthlyRateGrid = ((System.Windows.Controls.Grid)(target)); return; case 23: this.monthlyRateTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 24: this.IsEnablePayForHourGrid = ((System.Windows.Controls.Grid)(target)); return; case 25: this.enanblePayForHourCheckBox = ((System.Windows.Controls.CheckBox)(target)); #line 120 "..\..\UpdateNannyUserControl.xaml" this.enanblePayForHourCheckBox.Unchecked += new System.Windows.RoutedEventHandler(this.enanblePayForHourCheckBox_Unchecked); #line default #line hidden return; case 26: this.HourlyRateGrid = ((System.Windows.Controls.Grid)(target)); return; case 27: this.hourlyRateTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 28: this.professionalDetailsStackPanel = ((System.Windows.Controls.StackPanel)(target)); return; case 29: this.NumberOfExperienceYearsGrid = ((System.Windows.Controls.Grid)(target)); return; case 30: this.numberOfExperienceYearsNumUpDown = ((PLWPF.NumericUpDownControl)(target)); return; case 31: this.SpecialActivitiesExpander = ((System.Windows.Controls.Expander)(target)); return; case 32: this.AddSpecialActivityButton = ((System.Windows.Controls.Button)(target)); #line 152 "..\..\UpdateNannyUserControl.xaml" this.AddSpecialActivityButton.Click += new System.Windows.RoutedEventHandler(this.AddSpecialActivityButton_Click); #line default #line hidden return; case 33: this.SpecialActivityTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 34: this.SpecialActivitiesTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 35: this.RecommendationsExpander = ((System.Windows.Controls.Expander)(target)); return; case 36: this.AddRecommendationsButton = ((System.Windows.Controls.Button)(target)); #line 161 "..\..\UpdateNannyUserControl.xaml" this.AddRecommendationsButton.Click += new System.Windows.RoutedEventHandler(this.AddRecommendationsButton_Click); #line default #line hidden return; case 37: this.RecommendationTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 38: this.RecommendationsTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 39: this.nannyScheduleDataGrid = ((System.Windows.Controls.DataGrid)(target)); return; case 40: this.dayColumn = ((System.Windows.Controls.DataGridTextColumn)(target)); return; case 41: this.isWorkDayColumn = ((System.Windows.Controls.DataGridCheckBoxColumn)(target)); return; case 42: this.startHourColumn = ((System.Windows.Controls.DataGridTextColumn)(target)); return; case 43: this.endHourColumn = ((System.Windows.Controls.DataGridTextColumn)(target)); return; case 44: this.moreDetails = ((System.Windows.Controls.StackPanel)(target)); return; case 45: this.KosherFoodGrid = ((System.Windows.Controls.Grid)(target)); return; case 46: this.isKosherFoodCheckBox = ((System.Windows.Controls.CheckBox)(target)); return; case 47: this.ReligiousEducationGrid = ((System.Windows.Controls.Grid)(target)); return; case 48: this.isReligiousEducationCheckBox = ((System.Windows.Controls.CheckBox)(target)); return; case 49: this.VacationGrid = ((System.Windows.Controls.Grid)(target)); return; case 50: this.isVacationAsTMTCheckBox = ((System.Windows.Controls.CheckBox)(target)); return; case 51: this.CommentsGrid = ((System.Windows.Controls.Expander)(target)); return; case 52: this.AddCommentButton = ((System.Windows.Controls.Button)(target)); #line 220 "..\..\UpdateNannyUserControl.xaml" this.AddCommentButton.Click += new System.Windows.RoutedEventHandler(this.AddCommentButton_Click); #line default #line hidden return; case 53: this.CommentTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 54: this.CommentsTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 55: this.UpdateNannyButton = ((System.Windows.Controls.Button)(target)); #line 228 "..\..\UpdateNannyUserControl.xaml" this.UpdateNannyButton.Click += new System.Windows.RoutedEventHandler(this.UpdateNannyButton_Click); #line default #line hidden return; } this._contentLoaded = true; }
public static void PropertyChangedCallBack(DependencyObject d, DependencyPropertyChangedEventArgs e) { NumericUpDownControl THIS = d as NumericUpDownControl; THIS.textNumber.Text = THIS.Value == null ? "" : THIS.Value.ToString(); }