void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.PersonInputForm = ((PresentationTier.FormInPerson)(target)); return; case 2: this.radioButton_Male = ((System.Windows.Controls.RadioButton)(target)); #line 40 "..\..\FormInPerson.xaml" this.radioButton_Male.Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Male_Checked); #line default #line hidden return; case 3: this.radioButton_Female = ((System.Windows.Controls.RadioButton)(target)); #line 43 "..\..\FormInPerson.xaml" this.radioButton_Female.Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Female_Checked); #line default #line hidden return; case 4: this.radioButton_Other = ((System.Windows.Controls.RadioButton)(target)); #line 46 "..\..\FormInPerson.xaml" this.radioButton_Other.Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Other_Checked); #line default #line hidden return; case 5: this.textBox_Id_Personal = ((System.Windows.Controls.TextBox)(target)); #line 73 "..\..\FormInPerson.xaml" this.textBox_Id_Personal.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_Id_Personal_TextChanged); #line default #line hidden return; case 6: this.textBox_FirstName = ((System.Windows.Controls.TextBox)(target)); #line 76 "..\..\FormInPerson.xaml" this.textBox_FirstName.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_FirstName_TextChanged); #line default #line hidden return; case 7: this.textBox_LastName = ((System.Windows.Controls.TextBox)(target)); #line 79 "..\..\FormInPerson.xaml" this.textBox_LastName.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_LastName_TextChanged); #line default #line hidden return; case 8: this.textBox_PAddress = ((System.Windows.Controls.TextBox)(target)); #line 82 "..\..\FormInPerson.xaml" this.textBox_PAddress.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.textbox_address); #line default #line hidden return; case 9: this.datePicker_DateOfBirth = ((System.Windows.Controls.DatePicker)(target)); return; case 10: this.textBlock_Message = ((System.Windows.Controls.TextBlock)(target)); return; case 11: this.button_InsertData = ((System.Windows.Controls.Button)(target)); #line 93 "..\..\FormInPerson.xaml" this.button_InsertData.Click += new System.Windows.RoutedEventHandler(this.Button_InsertData_Click); #line default #line hidden return; case 12: this.button_PersonList = ((System.Windows.Controls.Button)(target)); #line 96 "..\..\FormInPerson.xaml" this.button_PersonList.Click += new System.Windows.RoutedEventHandler(this.Button_PersonList_Click); #line default #line hidden return; case 13: this.Button_Back = ((System.Windows.Controls.Button)(target)); #line 99 "..\..\FormInPerson.xaml" this.Button_Back.Click += new System.Windows.RoutedEventHandler(this.Button_Back_Click); #line default #line hidden return; } this._contentLoaded = true; }
private void Button_Person_Click(object sender, RoutedEventArgs e) { FormInPerson formInPerson = new FormInPerson(); this.NavigationService.Navigate(formInPerson); }