Program.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Threading;
using System.Windows.Forms;
namespace HiDesktop
{
internal class Program
{
const string productName = "HiDesktop";
readonly Hashtable widgets = new Hashtable();
string nowFile;
void StartView()
{
if (!((CounterBar)widgets[nowFile]).IsDisposed)
{
((CounterBar)widgets[nowFile]).ShowDialog();
}
}
public static void MainProcess()
{
Directory.CreateDirectory("./Properties/");
string[] properties = Directory.GetFiles("./Properties/");
foreach (string localFile in properties)
{
if (localFile.Contains(".properties"))
{
Hashtable config = PropertiesHelper.Load(localFile);
switch ((string)config["type"])
{
case "CounterBar":
Program p = new Program();
if ((string)config["enabled"] == "true")
{
CounterBar textBar = new CounterBar(localFile)
{
BackColor = Color.SkyBlue,
TransparencyKey = Color.SkyBlue
};
p.widgets.Add(localFile, textBar);
p.nowFile = localFile;
Thread Counter = new Thread(new ThreadStart(p.StartView));
Counter.Start();
Log.SaveLog($"Lanunched {localFile}");
}
else
{
Log.SaveLog($"Program:\"{localFile}\" is not enabled.");
}
break;
default:
Log.SaveLog($"Unknown program type:{localFile}");
break;
}
}
后面还有 52 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。