public List <LopSH> GetAllLopSH() { List <LopSH> listLopSH = new List <LopSH>(); foreach (DataRow drLopSH in CSDL.Instance.GetAllLopSH().Rows) { LopSH lopSH = ParseLopSH(drLopSH); listLopSH.Add(lopSH); } return(listLopSH); }
public LopSH FindLopSHById(int id) { foreach (DataRow drLopSH in CSDL.Instance.GetAllLopSH().Rows) { LopSH lopSH = ParseLopSH(drLopSH); if (lopSH.Id == id) { return(lopSH); } } return(null); }
public LopSH(LopSH lop) { this.Id = lop.Id; this.Ten = lop.Ten; }