private static void setText(ProjectTextBox textBox, string project, string task, bool evenIfFocused) { if (evenIfFocused || !textBox.IsKeyboardFocused) { textBox.SetText(project, task); } }