public int[] GetCurrentCount() { List <string> voteKeys = QuickPollAggregator.GetVoteStringsFromStyle(m_Style); Dictionary <string, int> voteCounts = new Dictionary <string, int>(); foreach (string k in voteKeys) { voteCounts.Add(k, 0); } foreach (string v in m_Votes.Values) { if (voteCounts.ContainsKey(v)) { voteCounts[v]++; } else { Debug.WriteLine("**Vote does not match style! " + v); } } int[] ret = new int[voteCounts.Count]; voteCounts.Values.CopyTo(ret, 0); return(ret); }
private Dictionary <Guid, SizeF> customSlideBounds; //XPS decks use non-standard slide bounds. Map deckID to bounds. public CP3StateCache() { currentPresentationId = Guid.Empty; currentDeckId = Guid.Empty; previousTabletProperties = null; currentSlideId = Guid.Empty; realTimeStrokesPending = new Dictionary <int, RTStrokeData>(); sheetToSlideLookup = new Hashtable(); sheetToDrawingAttributesLookup = new Hashtable(); strokeCountsBySlideId = new Dictionary <Guid, int>(); toc = new TableOfContents(); pendingInk = new Dictionary <Guid, List <Ink> >(); m_QuickPollAggregator = new QuickPollAggregator(); customSlideBounds = new Dictionary <Guid, SizeF>(); }