Bomb.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Collections.Generic;
namespace DrinkWaterReminder
{
public partial class Bomb : Form
{
[DllImport("user32")]
private static extern bool AnimateWindow(IntPtr hwnd, int dwTime, int dwFlags);
private const int AW_HOR_POSITIVE = 0x0001;
private const int AW_HOR_NEGATIVE = 0x0002;
private const int AW_VER_POSITIVE = 0x0004;
private const int AW_VER_NEGATIVE = 0x0008;
private const int AW_CENTER = 0x0010;
private const int AW_HIDE = 0x10000;
private const int AW_ACTIVE = 0x20000;
private const int AW_SLIDE = 0x40000;
private const int AW_BLEND = 0x80000;
private string[] showInfo = GetShowInfo();
private static string[] GetShowInfo()
{
List<string> showList = new List<string>();
for(int i = 0; i < 7; i++)
{
showList.Add("该喝水啦!!!");
}
showList.Add("你猜我找你干啥?");
showList.Add("水乃生命之源。");
showList.Add("吨吨吨吨吨吨吨。");
showList.Add("卤子吃咸了,给来碗水。");
showList.Add("举杯邀明月,对影成三人。");
showList.Add("一杯敬朝阳,一杯敬月光。");
showList.Add("一杯敬故乡,一杯敬远方。");
showList.Add("一杯敬明天,一杯敬过往。");
showList.Add("一杯敬自由,一杯敬死亡。");
showList.Add("滴水之恩,涌泉相报。");
return showList.ToArray();
}
public Bomb()
{
InitializeComponent();
}
private void Bomb_Load(object sender, EventArgs e)
{
int x = Screen.PrimaryScreen.WorkingArea.Right - this.Width;
int y = Screen.PrimaryScreen.WorkingArea.Bottom - this.Height;
this.Location = new Point(x, y);
Random random = new Random();
int index = random.Next(0, showInfo.Length);
label1.Text = showInfo[index];
AnimateWindow(this.Handle, 1000, AW_ACTIVE);
后面还有 8 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。