private void flushExecuteQueue(object sender, EventArgs e) { IdleStop(IdleReason.ExecuteAsync); while (executeQueue.Count > 0) { string command = executeQueue.Dequeue(); if (!string.IsNullOrEmpty(command)) Execute(command); } }