Пример #1
0
        private void Log(string text)
        {
            int oldStart  = LogText.SelectionStart;
            int oldLength = LogText.SelectionLength;

            if (LogText.TextLength == 0)
            {
                LogText.Text = text;
            }
            else
            {
                LogText.AppendText(Environment.NewLine + text);
            }

            LogText.Select(LogText.TextLength, 0);
            LogText.ScrollToCaret();

            LogText.Select(oldStart, oldLength);
        }
Пример #2
0
 public MetadataMerger()
 {
     InitializeComponent();
     LogText.Select(LogText.TextLength, 0);
 }