public void SetAppStatus(string text) { text ??= ""; text = SingleLineConverter.Convert(text); Dispatcher.BeginInvoke(new Action(() => { tssAppStatus.Text = text; })); }
public void SetStatus(string text, bool error) { text ??= ""; text = SingleLineConverter.Convert(text); Dispatcher.BeginInvoke(new Action(() => { tssStatus.Text = text; tssStatus.Foreground = error ? new SolidColorBrush(UIColors.ErrorColor) : SystemColors.WindowTextBrush; })); }