Esempio n. 1
0
        public List<Citizenship> GetCitizenList()
        {
            citizen = new Citizenship("United States");
            cList.Add(citizen);
            citizen = new Citizenship("United Kingdom");
            cList.Add(citizen);
            citizen = new Citizenship("New Zealand");
            cList.Add(citizen);
            citizen = new Citizenship("Ireland");
            cList.Add(citizen);
            citizen = new Citizenship("Canada");
            cList.Add(citizen);
            citizen = new Citizenship("Australia");
            cList.Add(citizen);
            citizen = new Citizenship("South of Africa");
            cList.Add(citizen);
            citizen = new Citizenship("VietNam");
            cList.Add(citizen);
            citizen = new Citizenship("Japan");
            cList.Add(citizen);
            citizen = new Citizenship("China");
            cList.Add(citizen);
            citizen = new Citizenship("France");
            cList.Add(citizen);
            citizen = new Citizenship("Russia");
            cList.Add(citizen);
            citizen = new Citizenship("Thailand");
            cList.Add(citizen);
            citizen = new Citizenship("Others");
            cList.Add(citizen);

            return cList;
        }
Esempio n. 2
0
 public List<Citizenship> GetAllCitizenship()
 {
     List<Citizenship> cList = new List<Citizenship>();
     DataTable tbl = facade.GetAllCitizenship();
     foreach (DataRow r in tbl.Rows)
     {
         Citizenship ct = new Citizenship(Convert.ToInt32(r[0].ToString()), r[1].ToString(),r[2].ToString());
         cList.Add(ct);
     }
     return cList;
 }