layouts/framework/FrameConsole.xaml.cs

(完整代码) 825B

using System;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Media;

namespace tablegen2.layouts
{
    /// <summary>
    /// FrameConsole.xaml 的交互逻辑
    /// </summary>
    public partial class FrameConsole : UserControl
    {
        public FrameConsole()
        {
            InitializeComponent();
        }

        public void addMessage(string msg, Color color)
        {
            Run run = new Run()
            {
                Text = string.Format("{0}    {1}\n", DateTime.Now.ToString("HH:mm:ss"), msg),
                Foreground = new SolidColorBrush(color),
            };
            phMessage.Inlines.Add(run);
            rtxt.ScrollToEnd();
        }

        public void clearMessage()
        {
            phMessage.Inlines.Clear();
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。