Beispiel #1
0
        private void RemoveLastLogItem()
        {
            DataTablesLogEntity lastInLog = dataTablesLog.Last <DataTablesLogEntity>();

            dataTablesLog.Remove(lastInLog);
            _visualList.Items.Remove(lastInLog);
        }
Beispiel #2
0
        internal void AddNewEntry(string changeTime)
        {
            DataTablesLogEntity dataTablesLogEntity = new DataTablesLogEntity();

            dataTablesLogEntity.displayValue = changeTime;
            dataTablesLog.Add(dataTablesLogEntity);
            _visualList.Items.Add(dataTablesLogEntity);
            wasHighlighted = false;
        }
Beispiel #3
0
 private void _visualList_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (_visualList.SelectedIndex >= 0 && _visualList.Items.Count > 0)
     {
         DataTablesLogEntity logEntity = (DataTablesLogEntity)_visualList.Items[_visualList.SelectedIndex];
         indexOfPrevLogEntity = _visualList.SelectedIndex - 1;
         //if (indexOfPrevLogEntity < 0) indexOfPrevLogEntity = 0;
         showDataGridViews.Invoke(logEntity.dataTables, true);
         RemoveLastLogItem();
     }
 }
Beispiel #4
0
        internal void AddTable(DataTable dt)
        {
            DataTablesLogEntity lastInLog = dataTablesLog.Last <DataTablesLogEntity>();

            lastInLog.dataTables.Add(dt);
        }