/****************************************************** * CALL: userMsg("I want to display this to the user"); * TASK: Displays msg on screen in TextBoxMsg. *****************************************************/ private void userMsg(String userMsg) { TextBlock_MessageBox.Inlines.Add(new Run(userMsg + "\n") { Foreground = Brushes.Blue }); ScrollViewer_MessageBox.ScrollToEnd(); }
/****************************************************** * CALL: errorCode("I want to display this to the user"); * TASK: Displays msg on screen in TextBoxError. *****************************************************/ private void errorCode(String errorMsg) { TextBlock_MessageBox.Inlines.Add(new Run(errorMsg + "\n") { Foreground = Brushes.Red }); ScrollViewer_MessageBox.ScrollToEnd(); }