Beispiel #1
0
        public void SetAppStatus(string text)
        {
            text ??= "";
            text = SingleLineConverter.Convert(text);

            Dispatcher.BeginInvoke(new Action(() =>
            {
                tssAppStatus.Text = text;
            }));
        }
Beispiel #2
0
        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;
            }));
        }