Exemple #1
0
 public void Start()
 {
     StopwatchSecurity.Start();
     StopwatchTotal.Reset();
     Stopwatch.Reset();
     Processor.StartProcess0();
 }
Exemple #2
0
 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);
             }
         }
     }
 }