Form1.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
namespace HSAR {
public partial class HSAR : Form {
Pictures pictures = new Pictures();
DateTime lastTime = DateTime.Now;
System.Threading.Timer timer;
private delegate void DelegateFunc(Control control, object value);
public void SetControlText(Control control, object value)
{
if (control.InvokeRequired) {
DelegateFunc delegateFunc = new DelegateFunc(SetControlText);
this.Invoke(delegateFunc, new object[] { control, value });
} else {
control.Text = value as string;
}
}
private void SetTime()
{
lastTime = DateTime.Now;
}
public HSAR()
{
InitializeComponent();
timer = new System.Threading.Timer(TimerUp, null, 0, 1000);
}
private void TimerUp(object value)
{
TimeSpan timeSpan = DateTime.Now - lastTime;
string str = string.Format("{0:d2}:{1:d2}:{2:d2}", timeSpan.Hours, timeSpan.Minutes, timeSpan.Seconds);
SetControlText(lblTimeSpan, str);
}
private void PnlGiteeMouseClick(object sender, MouseEventArgs e)
{
Process.Start("https://www.51aspx.com/");
}
private void CbbxWinSelectedIndexChanged(object sender, System.EventArgs e)
{
int winNum = Convert.ToInt32(cbbxWin.Text);
pnlWin.BackgroundImage = pictures.ImgaeWin[winNum];
SetTime();
}
private void SetFailPicture(int f1, int f2, int f3)
{
pnlFail1.BackgroundImage = pictures.ImageFail[f1];
pnlFail2.BackgroundImage = pictures.ImageFail[f2];
pnlFail3.BackgroundImage = pictures.ImageFail[f3];
}
后面还有 101 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。