Beispiel #1
0
        public void AddCheck()
        {
            int lim = 500;

            for (int i = 0; i <= lim; i++)
            {
                lp.Add(jm.DeserializeFromParentNode <Person>(repo.Add(p), new RESULT().Text).Select(s => s.id.Replace(@"#", "")).FirstOrDefault());
                lu.Add(jm.DeserializeFromParentNode <Unit>(repo.Add(u), new RESULT().Text).Select(s => s.id.Replace(@"#", "")).FirstOrDefault());
            }
            for (int i = 0; i <= lim / 2; i++)
            {
                repo.Add(m, new TextToken()
                {
                    Text = lp[i]
                }, new TextToken()
                {
                    Text = lp[i + 1]
                });
            }
            for (int i = 0; i <= lim / 2; i++)
            {
                repo.Add(s, new TextToken()
                {
                    Text = lu[i]
                }, new TextToken()
                {
                    Text = lu[i + 1]
                });
            }
        }