private void btnSearch_Click(object sender, RoutedEventArgs e) { try { SearchForPatient _searchForPatient = new SearchForPatient(); _searchForPatient.Show(); } catch { } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Search = ((DoctorStrange.SearchForPatient)(target)); return; case 2: this.txtPNum = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.btnFind = ((System.Windows.Controls.Button)(target)); #line 32 "..\..\SearchForPatient.xaml" this.btnFind.Click += new System.Windows.RoutedEventHandler(this.btnFind_Click); #line default #line hidden return; case 4: this.txtFind = ((System.Windows.Controls.TextBlock)(target)); return; case 5: this.txtID = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.btnFind1 = ((System.Windows.Controls.Button)(target)); #line 47 "..\..\SearchForPatient.xaml" this.btnFind1.Click += new System.Windows.RoutedEventHandler(this.btnFind_Click); #line default #line hidden return; case 7: this.txtFind1 = ((System.Windows.Controls.TextBlock)(target)); return; case 8: this.txtDateOfBirth = ((System.Windows.Controls.TextBox)(target)); return; case 9: this.btnFind2 = ((System.Windows.Controls.Button)(target)); #line 62 "..\..\SearchForPatient.xaml" this.btnFind2.Click += new System.Windows.RoutedEventHandler(this.btnFind_Click); #line default #line hidden return; case 10: this.txtFind2 = ((System.Windows.Controls.TextBlock)(target)); return; case 11: this.txtPName = ((System.Windows.Controls.TextBox)(target)); return; case 12: this.btnFind3 = ((System.Windows.Controls.Button)(target)); #line 77 "..\..\SearchForPatient.xaml" this.btnFind3.Click += new System.Windows.RoutedEventHandler(this.btnFind_Click); #line default #line hidden return; case 13: this.txtFind3 = ((System.Windows.Controls.TextBlock)(target)); return; case 14: this.grdResult = ((System.Windows.Controls.DataGrid)(target)); return; case 15: this.btnCancel = ((System.Windows.Controls.Button)(target)); #line 100 "..\..\SearchForPatient.xaml" this.btnCancel.Click += new System.Windows.RoutedEventHandler(this.btnCancel_Click); #line default #line hidden return; case 16: this.txtCancel = ((System.Windows.Controls.TextBlock)(target)); return; } this._contentLoaded = true; }