private void SetSyncSettings()
 {
     syncButton.BackColor = Color.LightGreen;
     _isOldBuild          = LogsSynchronizer.SetStartEndTime(_tagsDictionary, _isOldBuild, out _END, out _START);
     SetTrackBarRange(_rangeMaxValue);
     if (!_isOldBuild)
     {
         _isOldBuild = LogsSynchronizer.SyncWithTime(_tagsDictionary, out _syncMap, out _startTick, out _endTick);
     }
     trackBar.Enabled = true;
 }
        private void trackBar_ScrollEvent(object sender, EventArgs e)
        {
            double rangeValsInterval         = 0.0;
            bool   normalLabel               = GetRangeValsInterval(out rangeValsInterval);
            string labelText                 = "";
            Dictionary <string, int> posTags = new Dictionary <string, int>();

            LogsSynchronizer.GetScrollPositionForCurrentVal(_tagsDictionary, _START, _END, _startTick, _endTick, _syncMap, _isOldBuild, trackBar.Value, out posTags, out labelText);
            ScrollToPosition(posTags);
            trackBarValueLabel.Text = labelText;
        }
Пример #3
0
 //Sets the syncSettings by setting up the range and enabling track bar
 private void SetSyncSettings()
 {
     syncLogsToolStripMenuItem.Checked = true;
     _isOldBuild = LogsSynchronizer.SetStartEndTime(_tagMap, _isOldBuild, out _END, out _START);
     SetTrackBarRange(_rangeMaxValue);
     if (!_isOldBuild)
     {
         _isOldBuild = LogsSynchronizer.SyncWithTime(_tagMap, out _syncMap, out _startTick, out _endTick);
     }
     timeTrackBar.Enabled = true;
 }