CounterBar.cs

(开头部分) 12KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections;
using System.Drawing;
using System.Drawing.Text;
using System.IO;
using System.Runtime.InteropServices;
using System.Threading;
using System.Windows.Forms;

namespace HiDesktop
{
    partial class CounterBar : Form
    {

        DateTime Latest;
        readonly DateTime Target;
        readonly string Path;
        readonly Hashtable AppConfig;
        readonly string days;
        readonly string hours;
        readonly string minutes;
        readonly string seconds;
        readonly string weekdays;
        readonly int refreshTime;
        public CounterBar(string Path)
        {
            TopMost = false;
            InitializeComponent();
            this.Path = Path;
            Hashtable htStandard = new Hashtable()
            {
                { "type", "CounterBar" },
                { "font", "auto" },
                { "fontSize", "30" },
                { "opacity", "1" },
                { "topMost", "true" },
                { "date", "2023.1.1" },
                { "event", "Configue your countBar in properties file.." },
                { "location", "auto" },
                { "enabled","true" },
                { "countdown_frontText","To" },
                { "countdown_middleText",",there are" },
                { "count_frontText","From" },
                { "count_middleText",",there are already" },
                { "days","day(s)" },
                { "hours","hour(s)" },
                { "minutes","minute(s)" },
                { "seconds","second(s)" },
                { "weekdays","weekday(s)" },
                { "refreshTime","500" },
                { "frontText_Color","#FFFFFF" },
                { "middleText_Color","#FFFFFF" },
                { "event_Color","#FF0000" },
                { "date_Color","#FF0000" },
                { "allowMove","true" }
            };
            if (!File.Exists(Path))
            {
                Hashtable Config = htStandard;
                PropertiesHelper.Save(Path, Config);
后面还有 283 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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