示例#1
0
        public static string[] getprovince()
        {
            myarea item = null;

            foreach (myarea i in Items)
            {
                if (i.Code == "0")
                {
                    item = i;
                }
            }
            if (item != null)
            {
                ps = item.Addr;
            }
            return(ps);
        }
示例#2
0
        public static string[] getcity(int pid)
        {
            string[] psc  = null;
            myarea   item = null;

            foreach (myarea i in Items)
            {
                if (i.Code == "0_" + pid)
                {
                    item = i;
                }
            }
            if (item != null)
            {
                psc = item.Addr;
            }
            return(psc);
        }
示例#3
0
        public static string[] getarea(int pid, int cid)
        {
            string[] psa  = null;
            myarea   item = null;

            foreach (myarea i in Items)
            {
                if (i.Code == "0_" + pid + "_" + cid)
                {
                    item = i;
                }
            }
            if (item != null)
            {
                psa = item.Addr;
            }
            return(psa);
        }