public JiNengInfo(List <JiNengTable> list_jiNengTable)
        {
            InitializeComponent();
            int i = 0;

            foreach (JiNengTable item in list_jiNengTable)
            {
                i++;
                string[] s = item.Detail.Split("等级".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
                // Debug.WriteLine("");
                JiNengVm jinengVm = new JiNengVm();
                jinengVm.NameAndShort = item.Name + "(" + item.ShortKey + ")";
                jinengVm.Intro        = item.Intro;
                jinengVm.Src          = item.AvatarUri;
                jinengVm.Gread1       = s[0];
                jinengVm.Gread2       = s[1];
                jinengVm.Gread3       = s[2];
                if (i != 4)
                {
                    jinengVm.Gread4 = s[3];
                }
                else
                {
                    jinengVm.Gread4 = "";
                }
                vm.Add(jinengVm);
            }
            lb_Jineng.ItemsSource = vm;
        }
 public JiNengInfo(List<JiNengTable> list_jiNengTable)
 {
     InitializeComponent();
     int i = 0;
     foreach (JiNengTable item in list_jiNengTable)
     {
         i++;
        string[] s= item.Detail.Split("等级".ToCharArray(),StringSplitOptions.RemoveEmptyEntries);
       // Debug.WriteLine("");
        JiNengVm jinengVm = new JiNengVm();
        jinengVm.NameAndShort = item.Name + "(" + item.ShortKey + ")";
        jinengVm.Intro = item.Intro;
        jinengVm.Src = item.AvatarUri;
        jinengVm.Gread1 = s[0];
        jinengVm.Gread2 = s[1];
        jinengVm.Gread3 = s[2];
        if (i != 4)
        {
            jinengVm.Gread4 = s[3];
        }
        else
            jinengVm.Gread4 = "";
        vm.Add(jinengVm);
     }
     lb_Jineng.ItemsSource = vm;
 }