/// <summary>
 /// 判断是否是第一次修改性别、年纪、学院
 /// </summary>
 /// <param name="p"></param>
 void canModify(PersonInfo p)
 {
     if (p.Gender != "")
     {
         Gbox.Visibility = Visibility.Collapsed;
     }
     if (p.Grade != "")
     {
         Grbox.Visibility = Visibility.Collapsed;
     }
     if (p.Academy != "")
     {
         Acabox.Visibility = Visibility.Collapsed;
     }
 }
        private void SetHead(PersonInfo p)
        {
            if (appSetting.Values.ContainsKey("IsHeadExistOffline") && bool.Parse(appSetting.Values["IsHeadExistOffline"].ToString()))
            {
                SetHeadPage();
            }
            else
            {
                sethead(p);
            }

        }
 void sethead(PersonInfo pi)
 {
     img.ImageSource = new BitmapImage(new Uri(pi.Head));
 }