void btnDeleteLesion_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("是否删除?", "提示", MessageBoxButton.YesNoCancel) == MessageBoxResult.Yes)
            {
                listLesionControls = new List <LesionButtonUserControl>();
                List <LesionButtonUserControl> listDelete = new List <LesionButtonUserControl>();
                foreach (UIElement item in bb.Children)
                {
                    LesionButtonUserControl a = (LesionButtonUserControl)item;
                    if (!a.isSelect)
                    {
                        listLesionControls.Add(a);
                    }
                    else
                    {
                        listDelete.Add(a);
                    }
                }

                bb.Children.Clear();

                foreach (var item in listLesionControls)
                {
                    bb.Children.Add(item);
                }

                foreach (var item in listDelete)
                {
                    LesionEntities.Delete(BaseFolder, item._lesion);
                }
            }
            //throw new NotImplementedException();
        }
        public void AddLesionsSnapshotToPPT()
        {
            LesionEntities listLesion = LesionEntities.TestLoad(_baseFolder);

            if (listLesion != null)
            {
                for (int i = 0; i < listLesion.Count; i++)
                {
                    AddOneLesionSlice(listLesion[i]);
                }
            }
        }
 public AllLesionWindow(string baseFolder, AirwayPatient airwayPatient)
 {
     InitializeComponent();
     BaseFolder    = baseFolder;
     AirwayPatient = airwayPatient;
     listLesion    = LesionEntities.TestLoad(BaseFolder);
     if (listLesion != null)
     {
         for (int i = 0; i < listLesion.Count; i++)
         {
             AddNewLesion(listLesion[i]);
         }
     }
 }