예제 #1
0
 /******************************************************
  * 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();
 }
예제 #2
0
 /******************************************************
  * 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();
 }