/// <summary>
        /// 取得所有患者
        /// </summary>
        /// <returns></returns>
        private ICollection<Patient> getAllPatient()
        {
            using (PatientBLL patientBLL = new PatientBLL())
            {

                var tmpList = patientBLL.SelectByDoctorId(SelectedDoctor.Id);
                if (tmpList != null && tmpList.Count() > 0)
                {
                    AllPatientListVisibility = Visibility.Visible;
                    PatientCount = ResourceHelper.LoadString("PatientCount") + tmpList.Count();
                }
                else
                {
                    AllPatientListVisibility = Visibility.Collapsed;
                }
                return tmpList;
            }
        }
 protected override void DisposeManagedResources()
 {
     base.DisposeManagedResources();
     patientBLL.Dispose();
     patientBLL = null;
 }