private void SetTextProperty() { var text = "TAStudio"; if (CurrentTasMovie != null) { text += $" - {CurrentTasMovie.Name}{(CurrentTasMovie.Changes ? "*" : "")}"; } if (InvokeRequired) { this.Invoke(() => Text = text); } else { Text = text; } }