Пример #1
0
        public void Init()
        {
            List <Job> jobList = new List <Job>();

            jobList.Add(a = new Job("编码", "购物车板块"));
            jobList.Add(b = new Job("测试", "给购物车板块做测试"));
            SE se = new SE(23, Gender.男, "101", "艾编程", 100, jobList);

            PM pm = new PM(23, Gender.男, "102", "Boos", 1000, jobList);

            list.Add(se);
            list.Add(pm);
        }
Пример #2
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            //	sb.AppendFormat("{{X={0},Y={1},Z={2}", X, Y, Z);
            sb.AppendFormat("{{Row={0},Column={1},Count={2}", Row, Column, Count);
            if (E != null)
            {
                sb.AppendFormat(",E={0}", E.GetHashCode());
            }
            if (W != null)
            {
                sb.AppendFormat(",W={0}", W.GetHashCode());
            }
            if (N != null)
            {
                sb.AppendFormat(",N={0}", N.GetHashCode());
                if (NE != null)
                {
                    sb.AppendFormat(",NE={0}", NE.GetHashCode());
                }
                if (NW != null)
                {
                    sb.AppendFormat(",NW={0}", NW.GetHashCode());
                }
            }
            if (S != null)
            {
                sb.AppendFormat(",S={0}", S.GetHashCode());
                if (SE != null)
                {
                    sb.AppendFormat(",SE={0}", SE.GetHashCode());
                }
                if (SW != null)
                {
                    sb.AppendFormat(",SW={0}", SW.GetHashCode());
                }
            }
            sb.Append("}");
            return(sb.ToString());
        }