// Create bar graphs activates the appropriate pixels on two bargraph // Sets, horizontal and vertical: May need adjustments in future. private void CreateBarGraphs() { #region Horizontal Bargraph int largestColumn = 0; // Loop returns items in the order they were added to the ArrayList. for (int i = 0; i < m_hbgCharacters.Count; i++) { CyCustomCharacter character = (CyCustomCharacter)m_hbgCharacters[i]; for (int index = 0; index < largestColumn; index++) { character.SetColumn(index); } largestColumn++; if (largestColumn > character.Columns) { break; } } #endregion #region Vertical Bargraph // Does not leave an empty character in the Custom Fonts int lastRow = 7; for (int i = 0; i < m_vbgCharacters.Count; i++) { CyCustomCharacter character = (CyCustomCharacter)m_vbgCharacters[i]; for (int index = 7; index >= lastRow; index--) { character.SetRow(index); } lastRow--; } #endregion }