private void Error(int i, string error) { if (InvokeRequired) { myCallbackIteration d = new myCallbackIteration(Error); Invoke(d, new object[] { i, error }); } else { if (_errorsHistory[i].ContainsKey(error)) _errorsHistory[i][error]++; else _errorsHistory[i].Add(error, 1); _allClientFields[i].ChangeCountOfErrors(++_countErrors[i]); _allClientFields[i].Error = error; Beep(); if (_chkErrorStop.Checked) _isStopThread = true; } }
private void Current(int i, string error) { if (InvokeRequired) { myCallbackIteration d = new myCallbackIteration(Current); Invoke(d, new object[] { i, error }); } else { for (int j = 0; j < _allClientFields.Count; j++) _allClientFields[j].Current = false; _allClientFields[i].Current = true; _pnlData.ScrollControlIntoView(_allClientFields[i]); Update(); } }