闹钟/Program.cs
(完整代码) 1KBusing AlarmClock.BLL;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace AlarmClock.UI
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
////查找状态中的窗口名称来查看目标程序是否在运行运行则前置否则打开
//IntPtr findPtr = WinApiHelper.FindWindow(null,"闹钟");
//if(findPtr.ToInt32()!=0)
//{
// //将窗口还原,如果不用此方法,缩小的窗口不能激活
// WinApiHelper.ShowWindow(findPtr,WinApiHelper.SW_RESTORE);
// //将指定的窗口选中(激活)
// WinApiHelper.SetForegroundWindow(findPtr);
// return;
//}
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new FrmClock());
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
