public static List <DBCaseSet> ListAllCaseSetsSummary() { Dictionary <string, string> args = new Dictionary <string, string>(); args.Add("currentPage", "1"); List <DBCaseSet> result = new List <DBCaseSet>(); int counter = 1; while (true) { string response = InvokeFunction("listCaseSet", args); XmlDocument doc = new XmlDocument(); doc.LoadXml(response); XmlNodeList list = doc.GetElementsByTagName("case_set"); if (list.Count == 0) { break; } foreach (XmlNode node in list) { string xml = node.OuterXml; DBCaseSet c = new DBCaseSet(xml); c.ParseCaseSet(); result.Add(c); } counter++; args["currentPage"] = counter.ToString(); } return(result); }
public static List <DBCase> ListAllCasesSummary() { List <DBCase> result = new List <DBCase>(); DBCaseSet dbset = new DBCaseSet(); dbset.LoadCasesSummary(); foreach (DBCase c in dbset.CaseSummaryList) { result.Add(c); } return(result); }