public DetailsOfMedicineWindow(AppointmentPatientHistoryPage p) { InitializeComponent(); obj = p; contact_no = obj.b.ToString(); date = obj.c.ToString(); load_details(); }
private void btnPatientRecord_Click(object sender, RoutedEventArgs e) { AppointmentPatientHistoryPage objAppointmentPatientHistoryPage = new AppointmentPatientHistoryPage(); objAppointmentPatientHistoryPage.textbox.Text = this.loginAsDoctor.Text; try { string sql1 = "select distinct pat_name,pat_contact_no,pat_age from appointment where doc_id='" + loginAsDoctor.Text.ToString() + "' and appointment_status='" + "Checked" + "';";// /////ekhane disease ta ante hobe DataSet ds1 = new DataSet(); MySqlDataAdapter da1 = new MySqlDataAdapter(sql1, conn); da1.Fill(ds1); objAppointmentPatientHistoryPage.datagrid1.ItemsSource = ds1.Tables[0].DefaultView; } catch (Exception show) { MessageBox.Show(show.Message.ToString()); } doctorFrame.NavigationService.Navigate(objAppointmentPatientHistoryPage); }