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();
 }
示例#2
0
        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();
        }