Exemplo n.º 1
0
        public CycleViewer(IItemDatabase database, long uniqueID, IDictionary <string, Color> colorMap)
        {
            InitializeComponent();

            m_Database             = database;
            m_ColorMap             = colorMap;
            m_List.VirtualListSize = m_Database.Count;

            int index = database.GetRowIndex(uniqueID);

            if (index >= 0)
            {
                var item = m_List.Items[index];
                m_List.TopItem     = item;
                m_List.FocusedItem = item;
                m_List.EnsureVisible(index);
            }

            m_StartTime = ((LogRowData)m_List.TopItem.Tag).OaTimeStamp;
        }