예제 #1
0
        /// <summary>
        /// Clears the output window of all text
        /// </summary>
        public void ClearOutputWindow()
        {
            OutputTextWindow.Text = " ";

            OutputScrollWindow.UpdateLayout();
            OutputScrollWindow.ScrollToVerticalOffset(double.MaxValue);
        }
예제 #2
0
        /// <summary>
        /// Adds a line of text to the output window. This must be called from
        /// the main thread.
        /// </summary>
        /// <param name="instrText"></param>
        public void WriteLineToOutput(string instrText)
        {
            OutputTextWindow.Text += instrText + "\n";

            OutputScrollWindow.UpdateLayout();
            OutputScrollWindow.ScrollToVerticalOffset(double.MaxValue);
        }