private void GetVotesFromBill(BillMonitor bm, Hashtable votes) { XPathNavigator bill = Bills.LoadBill(bm.Session, bm.Type, bm.Number); string title = Bills.DisplayString(bill.Select("*"), 10000); string statusstr = Bills.GetStatusSource(bill.Select("*")); ArrayList rolls = new ArrayList(); XPathNodeIterator votesiter = bill.Select("bill/actions/vote"); while (votesiter.MoveNext()) { string roll = votesiter.Current.GetAttribute("roll", ""); string date = votesiter.Current.GetAttribute("datetime", ""); string where = votesiter.Current.GetAttribute("where", ""); if (roll != null && roll != "" && date != null && date != "") { rolls.Add(date + ":" + where + Util.DTToYearString(date) + "-" + roll); } } AddBillInfo(EnumsConv.BillTypeToString(bm.Type), bm.Session, bm.Number, (string[])rolls.ToArray(typeof(string)), title, statusstr, votes); }