示例#1
0
        public void UpdateTextFromFile()
        {
            var text = string.Join(Environment.NewLine, File.ReadLines(Conf.timespentFile).Reverse());

            Doc.Blocks.Clear();
            Doc.Blocks.Add(new Paragraph(new Run(text)));

            MainText.Focus();
            MainText.ScrollToHome();
        }