public void Start() { StopwatchSecurity.Start(); StopwatchTotal.Reset(); Stopwatch.Reset(); Processor.StartProcess0(); }
private void AddLog(ProcessorEntryLog le, bool forceScroll = false) { LogEntrys.Add(le); if (forceScroll || StopwatchSecurity.ElapsedMilliseconds > 100) { StopwatchSecurity.Restart(); _listViewLog.ScrollIntoView(le); // if (LogEntrys.Count > 1000) { for (int i = 0; i < LogEntrys.Count - 1000; i++) { LogEntrys.RemoveAt(i); } } } }