private void btnAddPatient_Click(object sender, RoutedEventArgs e) { patient = new AddPatientDialog(); patient.Parent = this; AddPatient child = new AddPatient(true); child.Close += new EventHandler(child_Close); patient.Content = child; patient.Show(); }
private void lblPatient_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { patient = new AddPatientDialog(); patient.Parent = this; AddPatient child = new AddPatient(false); child.Close += new EventHandler(child_Close); patient.Content = child; patient.Show(); }