/// <summary> /// Процедура таймера /// </summary> /// <param name="state">Не используется</param> private void CallBack(object state) { bool blocked = false; try { if (mutex.WaitOne(0, false)) { blocked = true; lock (input) { if (input.Length > 0) { output.Append(input.ToString()); } input.Remove(0, input.Length); } translater.BeginInvoke(null, null); } } finally { if (blocked) { mutex.ReleaseMutex(); } } }